A Library for visualizing Neural Networks.
Project description
Neural Plot
Neural Plot is a python library for visualizing Neural Networks. It helps to plot Keras/Tensorflow model with matplotlib backend.
Installation
Run the following to install:
pip install neuralplot
Example
# Importing Libraries
from neuralplot import ModelPlot
import tensorflow as tf
import numpy as np
# Uncomment while using Colab.
# %matplotlib inline
# Uncomment while using jupyter notebook. This feature is not working in colab.
%matplotlib notebook
#Creating Model
X_input = tf.keras.layers.Input(shape=(32,32,3))
X = tf.keras.layers.Conv2D(4, 3, activation='relu')(X_input)
X = tf.keras.layers.MaxPool2D(2,2)(X)
X = tf.keras.layers.Conv2D(16, 3, activation='relu')(X)
X = tf.keras.layers.MaxPool2D(2,2)(X)
X = tf.keras.layers.Conv2D(8, 3, activation='relu')(X)
X = tf.keras.layers.MaxPool2D(2,2)(X)
X = tf.keras.layers.Flatten()(X)
X = tf.keras.layers.Dense(10, activation='relu')(X)
X = tf.keras.layers.Dense(2, activation='softmax')(X)
model = tf.keras.models.Model(inputs=X_input, outputs=X)
modelplot = ModelPlot(model=model, grid=True, connection=True, linewidth=0.1)
modelplot.show()
.. image:: https://github.com/Rajsoni03/Neural-Plot/blob/master/Screenshot/Image-011.png
modelplot = ModelPlot(model=model, grid=False, connection=True, linewidth=0.1)
modelplot.show()
.. image:: https://github.com/Rajsoni03/Neural-Plot/blob/master/Screenshot/Image-010.png
License
MIT
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
neuralplot-0.0.4.tar.gz
(3.8 kB
view details)
Built Distribution
File details
Details for the file neuralplot-0.0.4.tar.gz
.
File metadata
- Download URL: neuralplot-0.0.4.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26e0cf0d07a7b6970ced6d5eaad2198944e0be4632a9845abca31d0cd397871c |
|
MD5 | 06048fbfbcefc9b6496e891e0c986ed4 |
|
BLAKE2b-256 | 4743d12023d807135642f7aebed3ca3693cdd5de427af5c80d15be8cc9252f79 |
File details
Details for the file neuralplot-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: neuralplot-0.0.4-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3ae98ef21f29551f1f860a15805e59ff21213919bce84c66f7456d59d215b9c |
|
MD5 | ab7aba4c3f295d0bf10dc9645fe1958a |
|
BLAKE2b-256 | 866cd4160140e2a4daa31349c03700ba15854515f2ea2642ae1695e0c7ae3dfd |