Skip to content

Commit

Permalink
use sparse_categorical_crossentropy
Browse files Browse the repository at this point in the history
  • Loading branch information
Yusuke Uchida committed Aug 18, 2020
1 parent bd90265 commit 98460fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ def __getitem__(self, idx):
ages.append(row["ages"])

imgs = np.asarray(imgs)
genders = to_categorical(genders, 2)
ages = to_categorical(ages, 101)
genders = np.asarray(genders)
ages = np.asarray(ages)

return imgs, (genders, ages)

Expand Down

0 comments on commit 98460fd

Please sign in to comment.