Jacob-Stevens-Haas / mitosis

Reproduce Machine Learning experiments easily.
MIT License
3 stars 2 forks source link

ENH: Add _load_trial_params #53

Closed Jacob-Stevens-Haas closed 2 days ago

Jacob-Stevens-Haas commented 2 days ago

Sometimes its useful to load the exact parameters used in a function.

This function is provisional, as it relies on a hack: dependence between the specific ordering of cells in a created trial source and where to stop executing a trial's source if just loading its parameters. That's a bit of spooky action at a distance.

It also has all the uncertainty of unpickling an object in a different environment/version of python. A better implementation would be to actually pickle the parameters rather than search through the source for the code that creates them.

Thus, this is a WIP