Skip to content

Commit

Permalink
#3287: dataset.py, validate 'error' key
Browse files Browse the repository at this point in the history
  • Loading branch information
jeff1evesque committed Oct 12, 2018
1 parent 3cbe7c0 commit afed9d2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions brain/validator/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def validate_classification(self, data):
Required('independent-variables'): [{
Required(All(string_types[0], Length(min=1))): Coerce(float),
}],
Required('error'): Any(None, string_types[0]),
})

for instance in data:
Expand Down Expand Up @@ -72,6 +73,7 @@ def validate_regression(self, data):
Required('independent-variables'): [{
Required(All(string_types[0], Length(min=1))): Coerce(float),
}],
Required('error'): Any(None, string_types[0]),
})

for instance in data:
Expand Down

0 comments on commit afed9d2

Please sign in to comment.