Overview
Overview of model import.
Deeplearning4j: Keras model import
Getting started: Import a Keras model in 60 seconds
from keras.models import Sequential
from keras.layers import Dense
model = Sequential()
model.add(Dense(units=64, activation='relu', input_dim=100))
model.add(Dense(units=10, activation='softmax'))
model.compile(loss='categorical_crossentropy',optimizer='sgd', metrics=['accuracy'])
model.save('simple_mlp.h5')Project setup
Backend
Popular models and applications
Troubleshooting and support
Why Keras model import?
Last updated
Was this helpful?