lenetOnMnistExportImportToJson
fun lenetOnMnistExportImportToJson()
Content copied to clipboard
This examples demonstrates model and model weights export and import back:
Model is exported in Keras-style JSON format; weights are exported in custom (TXT) format.
Model is trained on Mnist dataset.
It saves all the data to the project root directory.
Sequential model is created via JSON configuration and weights loading.
After loading model is trained again with another optimizer with frozen Conv2D layers. Only weights in Dense layers can be updated.