Skip to content

Conversation

@ElekLamoureux
Copy link

Added a command that trains and returns latent.npz. Still in testing …

…ity to use different options. Work in progress.
Copy link
Member

@jakobnissen jakobnissen left a 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.

@ElekLamoureux ElekLamoureux changed the title Added a command that trains and returns latent.npz. Still in testing … Added partial train and cluster commands Aug 13, 2025
Copy link
Member

@jakobnissen jakobnissen left a 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

Comment on lines +1452 to +1462
class RunDefault:
pass


class RunTrain:
pass


class RunCluster:
def __init__(self, latent: Path):
self.latent = latent
Copy link
Member

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants