Keras models as ASCII diagrams
Project description
Print ASCII diagrams of your Keras models to visualize the layers and their shapes.
InputLayer (None, 50, 300)
Reshape (None, 1, 50, 300)
Convolution2D (None, 250, 48, 1)
Relu (None, 250, 48, 1)
MaxPooling2D (None, 250, 1, 1)
Flatten (None, 250)
Dropout (None, 250)
Dense (None, 7)
Softmax (None, 7)
A more complex model from babi_rnn.py:
InputLayer (None, 5)
Embedding (None, 5, 50)
InputLayer (None, 552) Dropout (None, 5, 50)
Embedding (None, 552, 50) LSTM (None, 50)
Dropout (None, 552, 50) RepeatVector (None, 552, 50)
\______________________________/
|
Merge (None, 552, 50)
LSTM (None, 50)
Dropout (None, 50)
Dense (None, 36)
To install
pip install keras_diagram
Note for Conda installation (Python 3.5): pip install pypandoc
To use
from keras_diagram import ascii model = Sequential() model.add(...) print(ascii(model))
Developing
./test.py # run tests via docker ./publish.py # build distributions and publish to pypi ./shell.py # run bash above docker container with current folder mounted
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
keras_diagram-1.0.5.tar.gz
(4.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file keras_diagram-1.0.5.tar.gz.
File metadata
- Download URL: keras_diagram-1.0.5.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cdc0b6e49a6d513b70a0b50edac3d90b40d0a6d6a2c3acd4b808e0cea406adcd
|
|
| MD5 |
45508cdc77839537add74d1782d15ed5
|
|
| BLAKE2b-256 |
363a9dc3c802cee7770845565608a2a28cf74da1aa340b6a0e3b2eeebfe37cb7
|
File details
Details for the file keras_diagram-1.0.5-py2-none-any.whl.
File metadata
- Download URL: keras_diagram-1.0.5-py2-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cbd93daf5832dddfcdbe928079b26e7ab5e240076c5adc2056ded4bc8ade3a3b
|
|
| MD5 |
6ee2bd44208d63f3efd8c41b6ce0ed55
|
|
| BLAKE2b-256 |
2685bfca9575ba6ad205f217ba1773327121cb3ef306db521ebfd547197ea432
|