Skip to content

Commit

Permalink
refactor: more robust model
Browse files Browse the repository at this point in the history
  • Loading branch information
marcpinet committed Apr 24, 2024
1 parent 535499b commit 95eac25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neuralnetlib/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def fit(self, x_train: np.ndarray, y_train: np.ndarray, epochs: int, batch_size:
callbacks: List of callback objects (e.g., EarlyStopping)
"""
x_train = np.array(x_train)
x_test = np.array(x_test)
y_train = np.array(y_train)

if validation_data is not None:
x_test, y_test = validation_data
Expand Down

0 comments on commit 95eac25

Please sign in to comment.