Ludwig: hyperopts overtraining

Created on 2 Dec 2020  路  2Comments  路  Source: ludwig-ai/ludwig

Is it possible to tune hyperopts based on test or validation loss? I'm getting overtraining due to good params for train but it's moving crazy on test

train stats:

Screen Shot 2020-12-02 at 21 22 39

test stats:

Screen Shot 2020-12-02 at 21 20 54

waiting for answer

Most helpful comment

What does your configuration look like?
Under the hyperopt section you can specify the split that you want to use
Also, I think hyperopt and train should normally use validation metrics by default

config = {
    'hyperopt': {
        'split': 'validation',   # this should be set to 'validation' by default, but you can also select 'training' or 'test'
        'goal': 'minimize',
        'output_feature': 'label',
        'metric': 'loss',
        'parameters': {
...

Hope this helps!

All 2 comments

What does your configuration look like?
Under the hyperopt section you can specify the split that you want to use
Also, I think hyperopt and train should normally use validation metrics by default

config = {
    'hyperopt': {
        'split': 'validation',   # this should be set to 'validation' by default, but you can also select 'training' or 'test'
        'goal': 'minimize',
        'output_feature': 'label',
        'metric': 'loss',
        'parameters': {
...

Hope this helps!

@michaelbzhu 's answer is correct. let me know if that soulds your issue @ifokeev .
You cal also set what validation metric to use for determining early stopping within each single run of the hyperopt (for early stopping purposes).

Was this page helpful?
0 / 5 - 0 ratings