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

AttributeError raised when validating with an empty validation set or a missing valid.csv #1247

Closed
prhbrt opened this issue Jun 11, 2020 · 0 comments · Fixed by #1659
Closed
Assignees
Labels

Comments

@prhbrt
Copy link

prhbrt commented Jun 11, 2020

DeepPavlov 0.5.0, Python 3.7.6, Ubuntu 20.04

When the validation set is empty, this error

 AttributeError: 'NoneType' object has no attribute 'items'

is raised by

metrics = list(report['metrics'].items())

because the value for "metrics" is set to None here.

I would suggest the training to proceed with nan-values for the metrics or a clearer error to be raised when the validation set is empty but "val_every_n_epochs" or "val_every_n_batches" are set.

@prhbrt prhbrt added the bug label Jun 11, 2020
@IgnatovFedor IgnatovFedor self-assigned this Jul 3, 2020
@vaskonov vaskonov assigned Kolpnick and avglinsky and unassigned IgnatovFedor and Kolpnick Jul 7, 2023
avglinsky added a commit that referenced this issue Jul 11, 2023
This was referenced Aug 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants