Skip to main content

A simple neural network library

Project description

sweet-perceptron

Python NumPy GitHub

This is a simple neural network library.

The model of NN is configurable multilayer Perceptron (MLP).

It was built only using NumPy.

Installation

Use the package manager pip to install sweet-perceptron.

pip install sweet-perceptron

Usage

from perceptron import NeuralNetwork
from perceptron.Neuron import functions

# Initialize network
nw = NeuralNetwork((2, 4, 1))

# Change activation functions
nw.activation_funcs = functions.relu, functions.tanh

# Initialize weights
nw.initialize_weights()

# Train netwotk and get list with losses
loss = nw.train(50, ['train inputs set'], ['train outputs set'])

# Get output of forward propagation
output = nw.forward(['input'])

License

MIT License

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

sweet-perceptron-1.0.1.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

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

sweet_perceptron-1.0.1-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file sweet-perceptron-1.0.1.tar.gz.

File metadata

  • Download URL: sweet-perceptron-1.0.1.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.2

File hashes

Hashes for sweet-perceptron-1.0.1.tar.gz
Algorithm Hash digest
SHA256 f242e7ac753bf1348776617e4df7f28db9edb825e4311f4ecf80d2339f4c1b73
MD5 361b0261cccba999c91589ede0582f22
BLAKE2b-256 8d5b74ca1e461a85808639715afadce54b1940c4f40900f6241ed4dae00dcaf9

See more details on using hashes here.

File details

Details for the file sweet_perceptron-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for sweet_perceptron-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 768b106e0d770faa988f6393c4da0adccef3ed7aeef8a62813c5bd4b0fc660b0
MD5 32120695375396cf20bcf66919aa4740
BLAKE2b-256 0bb5ea21cabbd3064c40af759190ad89d502ffbf6b972caf3abd4b75d755de0c

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