Nait
Provides functions and classes for creating and
training neural networks.
-
Model
-
Model.train
-
Model.predict
-
Model.mutate
-
Layer
-
Layer.forward
-
Layer.mutate
-
Neuron
-
Neuron.parse
-
Neuron.mutate
-
Activation
-
Activation.calculate
-
evaluate
-
save
-
load
Model
class
Syntax
Model(layers)
Arguments
- layers
list
Model.train
method
Syntax
train(x=[], y=[], epochs=5000, rate=1, batch_size=10, sample_size=None, square_loss=True, visual=True, loss_function=None)
Arguments
-
x
list -
y
list -
epochs
int -
rate
int / float -
batch_size
int -
sample_size
int -
square_loss
bool -
visual
bool -
loss_function
function
Model.predict
method
Syntax
predict(inputs)
Arguments
- inputs
list
Model.mutate
method
Syntax
mutate(rate)
Arguments
- rate
int / float
Layer
class
Syntax
Layer(inputs=4, neurons=4, activation="linear")
Arguments
-
inputs
int -
neurons
int -
activation
"linear" / "step" / "relu" / "tanh" / "hardmax" / "sigmoid" / "softmax" / "leaky relu"
Layer.forward
method
Syntax
forward(inputs)
Arguments
- inputs
list
Layer.mutate
method
Syntax
mutate(rate)
Arguments
- rate
int / float
Neuron
class
Syntax
Neuron(weights, bias)
Arguments
-
weights
list -
bias
int / float
Neuron.parse
method
Syntax
parse(inputs)
Arguments
- inputs
list
Neuron.mutate
method
Syntax
mutate(rate)
Arguments
- rate
int / float
Activation
class
Syntax
Activation(function)
Arguments
- function
"linear" / "step" / "relu" / "tanh" / "hardmax" / "sigmoid" / "softmax" / "leaky relu"
Activation.calculate
method
Syntax
calculate(x)
Arguments
- x
int / float
save
function
Syntax
save(model, path)
Arguments
-
model
Model -
path
str
load
function
Syntax
load(path)
Arguments
- path
str
Changelog - Nait 3.0.8
- Fixed 'save()'
Release files for nait 3.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nait-3.0.8.tar.gz | 5.0 kB | Details |
Release files / nait-3.0.8.tar.gz
| Download URL | nait-3.0.8.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5dd3eafdc38059946269b1170a2ec781a356abe256e362adaede964017577e45
|
|
BLAKE2b-256 checksum How to use checksums |
866c10b0e05c634132635cbacb86f85d7fdce9a04c1ae01979985440fcc17af7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6
|