Skip to content
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

Train command option --prepare-only #583

Open
osma opened this issue Mar 21, 2022 · 0 comments
Open

Train command option --prepare-only #583

osma opened this issue Mar 21, 2022 · 0 comments
Assignees
Milestone

Comments

@osma
Copy link
Member

osma commented Mar 21, 2022

For many backends, training consists of two distinctive steps: preparing the training data, then training a ML model. It is possible to reuse the prepared training data using the --cached option and just retrain the ML model. But there is no support for the inverse operation: just preparing the data without training the model. This could be useful for DVC workflows (allowing more granular pipeline stages) and in situations where you intend to perform hyperparameter optimization.

The proposal is to add a --prepare-only option to the annif train command, which skips the model training part in those backends where there is a separate preparation step (i.e. those backends that currently support the --cached option).

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

No branches or pull requests

1 participant