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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ultimate-1.21.5-py2.py3-none-any.whl.
File metadata
- Download URL: ultimate-1.21.5-py2.py3-none-any.whl
- Upload date:
- Size: 65.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d466aca30226f91180aeb890fc1eb1ec849c0e3fd9ca2d7c16c4ae173fc0430b
|
|
| MD5 |
bfea6c6d88b6e6fce5f8bed4e6a4f2ba
|
|
| BLAKE2b-256 |
70ccfb6ac9735cc1bae5eb34a5bb3e890a9c0ba0013e2e26c434dd0394ad2f8b
|