-
Notifications
You must be signed in to change notification settings - Fork 49
Added partial train and cluster commands #452
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: partial
Are you sure you want to change the base?
Conversation
…ity to use different options. Work in progress.
…onality so it makes more sense
jakobnissen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good progress - let's have a meeting about this.
…ses instead of strings for mode checking.
jakobnissen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! A few changes but overall it looks good
| class RunDefault: | ||
| pass | ||
|
|
||
|
|
||
| class RunTrain: | ||
| pass | ||
|
|
||
|
|
||
| class RunCluster: | ||
| def __init__(self, latent: Path): | ||
| self.latent = latent |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sgalkina I suggested this pattern, to mimick an ADT (or enum, in Rust parlance). My idea is to 1) statically check that the argument is the correct type, and 2) make it easier to catch errors if a new partial mode is added. Is there a better way in Python to make ADTs that can be caught by the type checker?
Added a command that trains and returns latent.npz. Still in testing …