Skip to main content

Neural network for python

Project description

NNFPY

Welcome to a project I have been working on for a while and have decided to make this a public package.

This package is used to create neural networks with 'ease'.

It compresses a whole neural network down to this:

net = onednet.create([denselayer("relu", 2, 64), denselayer("relu", 64, 2), endlayer("softmax"), timesloss(0.00001)])

data = net.runnet(0.1, 50000, X, y, storedata(), momentum=momentum(0.5), printevery=1000, batchsize=100)

outs = net.predwithout(X, y)

Just to basically describe what has happened in these lines of code:

The first line has created a network with one input layer taking two input values a hidden layer of 64 neurons and an output layer of 2 output

The second line has run the network a 50000 times

The third line shows the predictions and the average cost

Installing

To install excecute the following command

pip install nnfpy

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

nnfpy-1.1.0.tar.gz (9.6 kB view hashes)

Uploaded Source

Built Distribution

nnfpy-1.1.0-py3-none-any.whl (10.9 kB view hashes)

Uploaded Python 3

Supported by

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