Skip to content

Commit

Permalink
Fix bug in MLPClassifer dataset split.
Browse files Browse the repository at this point in the history
  • Loading branch information
tymorrow committed Oct 30, 2024
1 parent b4ddd1a commit c2756bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion riid/models/neural_nets/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def fit(self, ss: SampleSet, batch_size: int = 200, epochs: int = 20,
training_dataset = tf.data.Dataset.from_tensor_slices((spectra_tensor, labels_tensor))
training_dataset, validation_dataset = split_dataset(
training_dataset,
left_size=validation_split,
right_size=validation_split,
shuffle=True
)
training_dataset = training_dataset.batch(batch_size=batch_size)
Expand Down

0 comments on commit c2756bf

Please sign in to comment.