Skip to content

Commit

Permalink
Implement new abstract lephare functions (#27)
Browse files Browse the repository at this point in the history
* Started work on updating rail to reflect abstracted classes

We would liek the option to run autoadapt either on the inform training set or on each chunk

* Updated params to take lephare config object

* Implemented abstract prepare and process methods

Still to implement autoadapt in inform stage. We need to convert the config key map to a dictionary for it to be pickled. It can easily be converted back
by looping over the keys and replacing the values with lephare.keyword objects

* Implementing offsets in inform stage

* Undo notebook changes

* Add run naming functionality

This depends on the changes to DataManager in lephare being merged and published. There may be situations where the user wants to default to imed runs but currently they have to do this via the name of the inform stage

---------

Co-authored-by: Raphael Shirley <rshirley@mpe.mpg.de>
  • Loading branch information
raphaelshirley and Raphael Shirley committed May 13, 2024
1 parent ab0394a commit 6de7e74
Show file tree
Hide file tree
Showing 2 changed files with 179 additions and 128 deletions.
15 changes: 12 additions & 3 deletions examples/small_demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@
"testdata_io = tables_io.read(testFile)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"traindata_io"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -180,7 +189,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "new_rail",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -194,9 +203,9 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.3"
"version": "3.11.6"
}
},
"nbformat": 4,
"nbformat_minor": 2
"nbformat_minor": 4
}

0 comments on commit 6de7e74

Please sign in to comment.