Skip to content

Commit

Permalink
Update caliban_toolbox/dataset_splitter.py
Browse files Browse the repository at this point in the history
Co-authored-by: willgraf <7930703+willgraf@users.noreply.github.com>
  • Loading branch information
ngreenwald and willgraf committed Sep 30, 2020
1 parent 16bfd86 commit e1bd4f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion caliban_toolbox/dataset_splitter.py
Expand Up @@ -55,7 +55,7 @@ def __init__(self, seed=0, splits=None):
self.splits = splits

def _validate_dict(self, train_dict):
if 'X' not in train_dict.keys() or 'y' not in train_dict.keys():
if 'X' not in train_dict or 'y' not in train_dict:
raise ValueError('X and y must be keys in the training dictionary')

def split(self, train_dict):
Expand Down

0 comments on commit e1bd4f9

Please sign in to comment.