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.neuralnet 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.14.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.14-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: DeepNeuralBranchNet-0.0.14.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.14.tar.gz
Algorithm Hash digest
SHA256 97f9ef3f15dbb51c78c693700a553111329855392d830856dc65b48d8cb659ae
MD5 8e4e393c48857560b9fa3430167d1021
BLAKE2b-256 7f2c6da1b3578c060fabcabe7c20397990bc777331aceee5a9a0deb0a286c81e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: DeepNeuralBranchNet-0.0.14-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.14-py3-none-any.whl
Algorithm Hash digest
SHA256 00260f7ed81ff680ae3fc2806989c89633c7171d8af8ea361f0c6e9c854986ee
MD5 2e2569e880367e22983d78ceee64cd99
BLAKE2b-256 714a8dc48965e741d2359d65bc088ca2d8f37f36a5e896b52f9f92e2a119582b

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