This commit is contained in:
AWieczarek 2024-05-05 19:34:42 +02:00
parent 29e4a67c43
commit 22d93bb82e

View File

@ -23,6 +23,6 @@ model.compile(optimizer='adam',
loss='binary_crossentropy', loss='binary_crossentropy',
metrics=['accuracy']) metrics=['accuracy'])
model.fit(X_train_pad, y_train, epochs=sys.argv[1], batch_size=sys.argv[2], validation_split=0.1) model.fit(X_train_pad, y_train, epochs=int(sys.argv[1]), batch_size=int(sys.argv[2]), validation_split=0.1)
model.save('beer_review_sentiment_model.h5') model.save('beer_review_sentiment_model.h5')