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
Working on memoizing timecorr—need to have hashable parameters (then we can simply use Python's @lru_cache).
I've written a function that converts np.array and lists of np.array (non-hashable) into tuples (hashable when data is static) and back, but still can't think of a good way to hash any functions that may be passed in as parameters.
The text was updated successfully, but these errors were encountered:
Working on memoizing
timecorr
—need to have hashable parameters (then we can simply use Python's@lru_cache
).I've written a function that converts np.array and lists of np.array (non-hashable) into tuples (hashable when data is static) and back, but still can't think of a good way to hash any functions that may be passed in as parameters.
The text was updated successfully, but these errors were encountered: