Skip to content

Commit

Permalink
assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
harvitronix committed Nov 20, 2017
1 parent 952ab7c commit fa9492a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions data.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ def get_class_one_hot(self, class_str):
# Now one-hot it.
label_hot = to_categorical(label_encoded, len(self.classes))

assert len(label_hot) == len(self.classes)

return label_hot

def split_train_test(self):
Expand Down

0 comments on commit fa9492a

Please sign in to comment.