Replies: 1 comment
-
|
Most HARK solution objects are serializable via |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In a downstream application (SHARKFin), we are running into a situation where we need to export a HARK solution to disk memory and import it again later. (This is so that solutions can be computed in one job on the cloud, and then used in simulations in a different job.)
It's not clear whether HARK currently supports this. HARK Solutions are currently Python objects whose attributes are other, function-like objects (interpolations, I believe). It may be possible to simply
picklethese solutions and unpickle them.@alanlujan91 and I have both been working on different solution architectures based on
xarraythat are maybe more promising. In these designs (Alan's and mine are slightly different, IIRC), the solution object has a more accessible representation of the underlying data from which functions (e.g. consumption, value, marginal value, etc.) are interpolated. This underlying data structure would be easier to export/import, as xarray has broad support for this sort of thing.Beta Was this translation helpful? Give feedback.
All reactions