-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Incremental Training inside Rasa Open Source #7498
Conversation
Co-authored-by: Joe Juzl <[email protected]>
describe `--epoch-fraction` usage
Okay, so this turned out to be a large PR as well but all the smaller PRs were peer reviewed between @joejuzl @wochinge and @dakshvar22. @alwx Can you please review the following files - @Ghostvv Would be great if you could glance over - |
* Add migration guide for policies * spelling fix * changelog
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.
looks good from my side. left a couple of comments
rasa/nlu/featurizers/sparse_featurizer/count_vectors_featurizer.py
Outdated
Show resolved
Hide resolved
def add_force_param( | ||
parser: Union[argparse.ArgumentParser, argparse._ActionsContainer] | ||
) -> None: | ||
"""Specifies if the model should be trained from scratch.""" |
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.
Args
section is missing in the docstring but that's something CI would probably complain about.
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.
It's missing on purpose because I don't see any value in having full docstrings for these helper functions. The CI actually allows one-line docstrings 😁 What do you think?
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.
the files that I was assigned to look good
@@ -419,7 +422,8 @@ def test_train_core_help(run: Callable[..., RunResult]): | |||
[--augmentation AUGMENTATION] [--debug-plots] [--force] | |||
[--fixed-model-name FIXED_MODEL_NAME] | |||
[--percentages [PERCENTAGES [PERCENTAGES ...]]] | |||
[--runs RUNS]""" | |||
[--runs RUNS] [--finetune [FINETUNE]] | |||
[--epoch-fraction EPOCH_FRACTION]""" |
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.
There are no tests for the command itself, right? I think it makes sense to add them.
(something with run_in_simple_project("train", "--finetune")
)
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.
I've done a basic cli test with the command (which just tests the arg is actually passed down). And I've changed test_model_finetuning
to not mock the train methods and actually run the second training.
* add the marking * add missing import Co-authored-by: Tobias Wochinger <[email protected]>
A final run of model regression tests before merge is running here |
Proposed changes:
Individual PRs:
MINIMUM_COMPATIBLE_VERSION
of currently installed Rasa Open Source version.Status (please check what you already did):
black
(please check Readme for instructions)