-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
52 additions
and
5 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Keras to MDF example: IRIS dataset | ||
|
||
**For more details on Keras and the current state of the Keras->MDF mapping see the [MNIST example](../MNIST).** | ||
|
||
This model uses the [IRIS dataset](https://en.wikipedia.org/wiki/Iris_flower_data_set) in the [trained Keras model](keras_model.py) and the MDF equivalent. | ||
|
||
### Summarize Model | ||
|
||
Below is the summary image of the trained Keras model. We can clearly see the output shape and number of weights in each layer: | ||
|
||
 | ||
|
||
|
||
### Keras Model | ||
|
||
Visualization of the model from Keras: | ||
|
||
<p align="center"><img src="model_on_iris_plot.png"/></p> | ||
<br> | ||
|
||
### MDF Model | ||
|
||
Graphviz is used to generate visualization for the MDF graph. Below is the visualization of the MDF graph after converting the keras model to MDF. | ||
|
||
 | ||
|
||
More detailed graphical representation of the MDF: | ||
|
||
<p align="center"><img src="keras_to_MDF.png" width="400"/></p> | ||
|
||
##### Netron | ||
Below is the visualization of this model using netron | ||
|
||
 |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ set -ex | |
|
||
# Script to regenerate and test the examples | ||
|
||
cd MNIST | ||
cd MNIST | ||
|
||
python keras_model.py -nogui | ||
|
||
|