You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the context of a pset, we wouldn't care what the type is, as long as it is some kind of int. But the type sensitivity can cause problems if we read back params from a database, e.g. when repeating workloads for failed psets.
If we pass in ints as in
>>>params=ps.plist("a", [1,2,3])
pandas will cast them such that in a DataFrame, df.a.values will be a numpy array
joblib.hash
may be too specific for our purposes in some cases, since it is type-sensitive:In the context of a
pset
, we wouldn't care what the type is, as long as it is some kind of int. But the type sensitivity can cause problems if we read backparams
from a database, e.g. when repeating workloads for failed psets.If we pass in ints as in
pandas
will cast them such that in aDataFrame
,df.a.values
will be a numpy arraywith each entry being int64, but
to_dict()
inwill cast back to Python ints.
The text was updated successfully, but these errors were encountered: