Skip to content

teratron/pynumic

Repository files navigation

PyNumic

PyPI - Python Version PyPI - Version PyPI - Downloads License Code style: docformatter Code style: mypy Code style: black


Description

Simple neural network library for python.

Visuals

Installation

pip install pynumic

Usage

from pynumic import Pynumic

if __name__ == '__main__':
    # Returns a new neural network
    # instance with the default parameters.
    pn = Pynumic()

    # Dataset.
    data_input  = [0.27, 0.31]
    data_target = [0.7]

    # Training dataset.
    _, _ = pn.train(data_input, data_target)

Documentation

Properties of Perceptron Neural Network

name

Neural network architecture name (required field for a config).

bias

The neuron bias, false or true (required field for a config).

hidden_layer

Array of the number of neurons in each hidden layer.

activation_mode

ActivationMode function mode (required field for a config).

Code Activation Description
0 LINEAR Linear/identity
1 RELU ReLu (rectified linear unit)
2 LEAKY_RELU Leaky ReLu (leaky rectified linear unit)
3 SIGMOID Logistic, a.k.a. sigmoid or soft step
4 TANH TanH (hyperbolic tangent)

loss_mode

The mode of calculation of the total error.

Code Loss Description
0 MSE Mean Squared Error
1 RMSE Root Mean Squared Error
2 ARCTAN Arctan
3 AVG Average

loss_limit

Minimum (sufficient) limit of the average of the error during training.

rate

Learning coefficient (greater than 0.0 and less than or equal to 1.0).

More documentation is available at the pynumic website.


Examples

You can find examples of neural networks in the example's directory.

Support

Roadmap

Contributing

Authors and acknowledgment

License

MIT License.

Project status

Project at the initial stage.

See the latest commits.


My Skills

Releases

No releases published

Packages

No packages published