-
Notifications
You must be signed in to change notification settings - Fork 41
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
Issue250 support backend param option in train and learn commands #289
Issue250 support backend param option in train and learn commands #289
Conversation
A few question on the way backend parameters are handled. Here https://github.com/NatLibFi/Annif/blob/master/annif/backend/backend.py#L42 the Also However, the Is the intention that Overall, is passing |
Codecov Report
@@ Coverage Diff @@
## master #289 +/- ##
==========================================
- Coverage 99.37% 99.37% -0.01%
==========================================
Files 59 59
Lines 3532 3656 +124
==========================================
+ Hits 3510 3633 +123
- Misses 22 23 +1
Continue to review full report at Codecov.
|
This pull request introduces 2 alerts when merging f23417c into 2ea1130 - view on LGTM.com new alerts:
|
You found some genuine inconsistencies there :) A few thoughts about how parameter handling in backends should be done, and a comparison with the current (somewhat broken) situation.
More generally, I think it would be helpful if backend classes explicitly defined the backend-specific (hyper)parameters they need. This information could be used e.g. for hyperparameter optimization (see #240). fasttext, vw_multi and vw_ensemble already sort of do this in their own way, but the parameter definitions should be standardized and probably hyperopt would need more information about the parameters - for example the minimum and maximum values. This can be left for later, but it's probably useful to keep in mind when parameter handling code is modified. |
This pull request introduces 1 alert when merging 53bf269 into 2ea1130 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging f4fc1d0 into 2ea1130 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging 954a1e7 into 26540e0 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging 3ec8d7f into 26540e0 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging 3d35f33 into 6f4cbef - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging 272f453 into 6f4cbef - view on LGTM.com new alerts:
|
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.
Sorry about the conflict, most likely caused by adding the collapse_every_n_layers
hyperparameter to Omikuji in PR #371. It should be simple to fix.
This looks very good. My only issue is the cli_params
parameter name that is used for AnnifProject methods. The parameters could come from another source than the CLI (for example, REST API methods could provide a way to override some parameters in the future), so I suggest renaming it to something more neutral such as be_params
.
This pull request introduces 1 alert and fixes 1 when merging 74c8690 into 3ec36c8 - view on LGTM.com new alerts:
fixed alerts:
|
This pull request introduces 1 alert and fixes 1 when merging fc967b9 into 3ec36c8 - view on LGTM.com new alerts:
fixed alerts:
|
This pull request introduces 1 alert and fixes 1 when merging 5b4bb73 into 3ec36c8 - view on LGTM.com new alerts:
fixed alerts:
|
This closes #250.