Created
February 20, 2022 23:00
-
-
Save shayaf84/0593b2e15de2e7f2c5d1f50bbf3ffcb1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Compile model on adam optimizer, binary_crossentropy loss, and accuracy metrics | |
model.compile(optimizer='adam',loss='binary_crossentropy',metrics=['accuracy']) | |
#Train model on 5 epochs | |
model.fit(title_train,y_train,epochs=5) | |
#Evaluate model on test data | |
model.evaluate(title_test,y_test) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment