# Install the neural-net-drawer package via pip
pip install neural-net-drawer
# Import necessary libraries
import matplotlib.pyplot as plt
from neural_net_drawer.drawer import NeuralNetworkDiagram
# Example usage
fig = plt.figure(figsize=(9, 9))
ax = fig.gca()
ax.axis('off')
# Create an instance of the NeuralNetworkDiagram class
nn_diagram = NeuralNetworkDiagram()
# Call the method to draw the neural network diagram
nn_diagram.draw_neural_net(ax, [7, 5, 4, 3, 4, 2, 1])
plt.show()
# Example usage with customizations
fig = plt.figure(figsize=(9, 9))
ax = fig.gca()
ax.axis('off')
# Create an instance of the NeuralNetworkDiagram class
nn_diagram = NeuralNetworkDiagram()
# Set maximum number of layers to display
nn_diagram.max_n_layers_size = 3
# Set maximum number of neurons per layer to display
nn_diagram.max_layer_size = 10
# Call the method to draw the neural network diagram
nn_diagram.draw_neural_net(ax, [7, 5, 4, 3, 4, 2, 1])
plt.show()
# Example usage with further customizations
fig = plt.figure(figsize=(9, 9))
ax = fig.gca()
ax.axis('off')
# Create an instance of the NeuralNetworkDiagram class
nn_diagram = NeuralNetworkDiagram()
# Set maximum number of layers to display
nn_diagram.max_n_layers_size = 3
# Hide neuron numbers
nn_diagram.show_neuron_numbers = False
# Call the method to draw the neural network diagram
nn_diagram.draw_neural_net(ax, [7, 5, 4, 3, 4, 2, 1])
plt.show()
Metadata
Release files for neural-net-drawer 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| neural_net_drawer-0.0.4.tar.gz | 3.6 kB | Without provenance | Details |
Release files / neural_net_drawer-0.0.4.tar.gz
| Download URL | neural_net_drawer-0.0.4.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
68317c595480fd58437972b13a571da347c1d16fe8aa530d2c7b1534ef9fb5df
|
|
BLAKE2b-256 checksum How to use checksums |
fba782113ba3073ca290dcc7b8da7ec50c2a4dab4c26d2696df7b8b87e87d395
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.1
|
Security for neural-net-drawer 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.