ultimate
Project description
ultimate
A very simpe neural network implemention for python
Installation
pip install ultimate
Why Ultimate?
- Super tiny and super easy
- Support feature importance
- Support missing values
- Support am2/a2m2/am2l/a2m2l activation functions
- Support hardmse/hardmax loss functions
How To Use?
# let's use a simple example to learn how to use from ultimate.mlp import MLP import numpy as np # generate sample X = np.linspace(-np.pi, np.pi, num=5000).reshape(-1, 1) Y = np.sin(X) print(X.shape, Y.shape) # train and predict mlp = MLP(layer_size=[X.shape[1], 8, 8, 8, 1], loss_type="mse") mlp.train(X, Y, epoch_train=100, epoch_decay=10, verbose=1) pred = mlp.predict(X) # show the result import matplotlib.pyplot as plt plt.plot(X, pred) plt.show()
Examples
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for ultimate-1.21.5-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d466aca30226f91180aeb890fc1eb1ec849c0e3fd9ca2d7c16c4ae173fc0430b |
|
MD5 | bfea6c6d88b6e6fce5f8bed4e6a4f2ba |
|
BLAKE2b-256 | 70ccfb6ac9735cc1bae5eb34a5bb3e890a9c0ba0013e2e26c434dd0394ad2f8b |