Skip to content

Instantly share code, notes, and snippets.

@quantra-go-algo
Created July 19, 2023 07:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save quantra-go-algo/2192ba6e24ebb416a0f55ee28a31a488 to your computer and use it in GitHub Desktop.
Save quantra-go-algo/2192ba6e24ebb416a0f55ee28a31a488 to your computer and use it in GitHub Desktop.
# Compile and train the model
model.compile(optimizer='adam',
loss='sparse_categorical_crossentropy',
metrics=['accuracy'])
model.fit(X_train, y_train, epochs=10, batch_size=32)
# Use the trained model to make predictions on new images
predictions = model.predict(X_test)
model.fit(X_train, y_train, epochs=10, batch_size=32)
# Use the trained model to make predictions on new images
predictions = model.predict(X_test)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment