Skip to main content

Neural network module with branching output

Project description

Neural network with branching output

This package can be used to train neural network for classification with option of multiple outputs by branching at different layers.

Features available

  • Customizable layers with option of selecting activation function
  • No limits on adding number of layers and number of neurons in each layers
  • By default gradient descent for optimization but in further version, other optimization methods are to be included
  • Multiple outputs can be selected at different layers with just one method call

Requirements

This package is developed at very low-level python coding so there is no much requirement other than numpy library. Numpy

Installation

To install a stable version, use the following command

pip install DeepNeuralBranchNet

Example of how to use

Import module

from DeepNeuralBranchNet import neuralnet

Initiate the neural network object class

example=NeuralNet()

Add input by passing number of nput features as parameter

example.add_input(input_length=16)

Add layer sequentially by passing number of neurons and activation function

example.add_layer(10,activation_function="relu")

If you want to add multiple output(or opting for branching), then trigger branching by following line of code and then keep adding layers

example.do_branching()

Run model to update parameters such as weights and bias and for training.

  • input_array : Input matrix in the form of array
  • output_array : Output matrix in the form of array
  • number_of_iterations : Total number of times you want to run back propagations to update weights
  • multiple_output : If you have branches then set it to True
example.run_model(input_array,output_array, number_of_iterations=1000, learning_rate=0.001, multiple_output=False)

Finally predict by calling predict method

example.predict()

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

DeepNeuralBranchNet-0.0.13.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

DeepNeuralBranchNet-0.0.13-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file DeepNeuralBranchNet-0.0.13.tar.gz.

File metadata

  • Download URL: DeepNeuralBranchNet-0.0.13.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/3.10.0 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8

File hashes

Hashes for DeepNeuralBranchNet-0.0.13.tar.gz
Algorithm Hash digest
SHA256 a5f86ebed451b51f30aa1b4af492422c2c1fe7191be78f6c8b752050d6bf648d
MD5 6fb62c9a710b5f8778eadeb24ddfd712
BLAKE2b-256 ff73c29cb80a4bdf721bf8e169d588def157a09d8a34d675ed2ecae12a030338

See more details on using hashes here.

File details

Details for the file DeepNeuralBranchNet-0.0.13-py3-none-any.whl.

File metadata

  • Download URL: DeepNeuralBranchNet-0.0.13-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/3.10.0 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8

File hashes

Hashes for DeepNeuralBranchNet-0.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 512cfde8265f7d86469efe5dba2960d6d519655fc16e80cf3302db265e8ff5a3
MD5 dea850f6955df86796fd3b53c57cdd31
BLAKE2b-256 4c231affe19812cef9ac02128250b9187322729481629c8c82b52f8b7eee9c2f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page