Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • D DeepPavlov
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 18
    • Issues 18
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 22
    • Merge requests 22
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • DeepPavlov
  • DeepPavlov
  • Issues
  • #1247
Closed
Open
Issue created Jun 11, 2020 by Andrei Glinskii@glinskii.avDeveloper

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

Created by: prhbrt

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.

Assignee
Assign to
Time tracking