<div class="cell code" collapsed="false">
``` python
# Install the neural-net-drawer package via pip
pip install neural-net-drawer
```
</div>
<div class="cell code" collapsed="false">
``` python
# Import necessary libraries
import matplotlib.pyplot as plt
from neural_net_drawer.drawer import NeuralNetworkDiagram
```
</div>
<div class="cell code" execution_count="5"
ExecuteTime="{"end_time":"2024-02-07T08:56:55.425789900Z","start_time":"2024-02-07T08:56:55.153634700Z"}"
collapsed="false">
``` python
# 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()
```
<div class="output display_data">
![](https://raw.githubusercontent.com/EvgeniBondarev/Neural-Network-Drawer/master/img/1.png)
</div>
</div>
<div class="cell code" execution_count="13"
ExecuteTime="{"end_time":"2024-02-07T09:03:39.420467900Z","start_time":"2024-02-07T09:03:39.268470Z"}"
collapsed="false">
``` python
# 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()
```
<div class="output display_data">
![](https://raw.githubusercontent.com/EvgeniBondarev/Neural-Network-Drawer/master/img/2.png)
</div>
</div>
<div class="cell code" execution_count="12"
ExecuteTime="{"end_time":"2024-02-07T09:01:57.191557900Z","start_time":"2024-02-07T09:01:56.936069200Z"}"
collapsed="false">
``` python
# 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()
```
<div class="output display_data">
![](https://raw.githubusercontent.com/EvgeniBondarev/Neural-Network-Drawer/master/img/3.png)
</div>
</div>
Raw data
{
"_id": null,
"home_page": "https://github.com/EvgeniBondarev/Neural-Network-Drawer.git",
"name": "neural-net-drawer",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "",
"keywords": "neural network display visual",
"author": "EvgeniBondarev",
"author_email": "bondareff7@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/fb/a7/82113ba3073ca290dcc7b8da7ec50c2a4dab4c26d2696df7b8b87e87d395/neural_net_drawer-0.0.4.tar.gz",
"platform": null,
"description": "<div class=\"cell code\" collapsed=\"false\">\r\n\r\n``` python\r\n# Install the neural-net-drawer package via pip\r\npip install neural-net-drawer\r\n\r\n```\r\n\r\n</div>\r\n\r\n<div class=\"cell code\" collapsed=\"false\">\r\n\r\n``` python\r\n# Import necessary libraries\r\nimport matplotlib.pyplot as plt\r\nfrom neural_net_drawer.drawer import NeuralNetworkDiagram\r\n\r\n```\r\n\r\n</div>\r\n\r\n<div class=\"cell code\" execution_count=\"5\"\r\nExecuteTime=\"{"end_time":"2024-02-07T08:56:55.425789900Z","start_time":"2024-02-07T08:56:55.153634700Z"}\"\r\ncollapsed=\"false\">\r\n\r\n``` python\r\n# Example usage\r\nfig = plt.figure(figsize=(9, 9))\r\nax = fig.gca()\r\nax.axis('off')\r\n\r\n# Create an instance of the NeuralNetworkDiagram class\r\nnn_diagram = NeuralNetworkDiagram()\r\n\r\n# Call the method to draw the neural network diagram\r\nnn_diagram.draw_neural_net(ax, [7, 5, 4, 3, 4, 2, 1])\r\n\r\nplt.show()\r\n\r\n```\r\n\r\n<div class=\"output display_data\">\r\n\r\n![](https://raw.githubusercontent.com/EvgeniBondarev/Neural-Network-Drawer/master/img/1.png)\r\n\r\n</div>\r\n\r\n</div>\r\n\r\n<div class=\"cell code\" execution_count=\"13\"\r\nExecuteTime=\"{"end_time":"2024-02-07T09:03:39.420467900Z","start_time":"2024-02-07T09:03:39.268470Z"}\"\r\ncollapsed=\"false\">\r\n\r\n``` python\r\n# Example usage with customizations\r\nfig = plt.figure(figsize=(9, 9))\r\nax = fig.gca()\r\nax.axis('off')\r\n\r\n# Create an instance of the NeuralNetworkDiagram class\r\nnn_diagram = NeuralNetworkDiagram()\r\n\r\n# Set maximum number of layers to display\r\nnn_diagram.max_n_layers_size = 3\r\n\r\n# Set maximum number of neurons per layer to display\r\nnn_diagram.max_layer_size = 10\r\n\r\n# Call the method to draw the neural network diagram\r\nnn_diagram.draw_neural_net(ax, [7, 5, 4, 3, 4, 2, 1])\r\n\r\nplt.show()\r\n```\r\n\r\n<div class=\"output display_data\">\r\n\r\n![](https://raw.githubusercontent.com/EvgeniBondarev/Neural-Network-Drawer/master/img/2.png)\r\n\r\n</div>\r\n\r\n</div>\r\n\r\n<div class=\"cell code\" execution_count=\"12\"\r\nExecuteTime=\"{"end_time":"2024-02-07T09:01:57.191557900Z","start_time":"2024-02-07T09:01:56.936069200Z"}\"\r\ncollapsed=\"false\">\r\n\r\n``` python\r\n# Example usage with further customizations\r\nfig = plt.figure(figsize=(9, 9))\r\nax = fig.gca()\r\nax.axis('off')\r\n\r\n# Create an instance of the NeuralNetworkDiagram class\r\nnn_diagram = NeuralNetworkDiagram()\r\n\r\n# Set maximum number of layers to display\r\nnn_diagram.max_n_layers_size = 3\r\n\r\n# Hide neuron numbers\r\nnn_diagram.show_neuron_numbers = False\r\n\r\n# Call the method to draw the neural network diagram\r\nnn_diagram.draw_neural_net(ax, [7, 5, 4, 3, 4, 2, 1])\r\n\r\nplt.show()\r\n```\r\n\r\n<div class=\"output display_data\">\r\n\r\n![](https://raw.githubusercontent.com/EvgeniBondarev/Neural-Network-Drawer/master/img/3.png)\r\n\r\n</div>\r\n\r\n</div>\r\n",
"bugtrack_url": null,
"license": "",
"summary": "Plugin for visual display of a neural network.",
"version": "0.0.4",
"project_urls": {
"Documentation": "https://github.com/EvgeniBondarev/Neural-Network-Drawer.git",
"Homepage": "https://github.com/EvgeniBondarev/Neural-Network-Drawer.git"
},
"split_keywords": [
"neural",
"network",
"display",
"visual"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "fba782113ba3073ca290dcc7b8da7ec50c2a4dab4c26d2696df7b8b87e87d395",
"md5": "fabb4f8a3d5e09d01f5fdce3b9a789eb",
"sha256": "68317c595480fd58437972b13a571da347c1d16fe8aa530d2c7b1534ef9fb5df"
},
"downloads": -1,
"filename": "neural_net_drawer-0.0.4.tar.gz",
"has_sig": false,
"md5_digest": "fabb4f8a3d5e09d01f5fdce3b9a789eb",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 3623,
"upload_time": "2024-02-11T21:03:26",
"upload_time_iso_8601": "2024-02-11T21:03:26.445951Z",
"url": "https://files.pythonhosted.org/packages/fb/a7/82113ba3073ca290dcc7b8da7ec50c2a4dab4c26d2696df7b8b87e87d395/neural_net_drawer-0.0.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-02-11 21:03:26",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "EvgeniBondarev",
"github_project": "Neural-Network-Drawer",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "neural-net-drawer"
}