Skip to content

Commit

Permalink
hi
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaloney111 committed Apr 1, 2024
1 parent bf60dc8 commit 2227d99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/Neural_Network2.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def create_and_train_model(train_texts, train_labels, name, epochs=5, batch_size
try:
progress_callback = TrainingProgressCallback()

history = model.fit(train_dataset, epochs=epochs, batch_size=batch_size, callbacks=[progress_callback])
history = model.fit(train_dataset, epochs=epochs, batch_size=batch_size)

model_filename = f"api/models/{str(num_classes)}-Trained-Model-{name}.weights.h5"
model.save_weights(model_filename)
Expand Down

0 comments on commit 2227d99

Please sign in to comment.