Its an Implementation of Percptron
Project description
Perceptron
Single Layer Perceptron(one Neuron)
A Perceptron is a simple model of a biological neuron that classifies the label of the input data based on various activation functions:
- Binary Step Function
- Signum Function
- Linear Activation Function
- Sigmoid / Logistic Activation Function
- Tanh Function (Hyperbolic Tangent)
- ReLU Function
- Exponential Linear Units (ELUs) Function
- Swish
- Gaussian Error Linear Unit (GELU)
fn_list = ['step', 'signum', 'linear', 'relu', 'sigmoid', 'tanh', 'elu', 'gelu', 'swish']
How to use this
from Perceptron.perceptron import Perceptron
from Perceptron.utils import prepare_data, save_plot, save_model
# get the data, convert it into a DataFrame and then use below commands
X, y = prepare_data(df)
model = Perceptron(eta = eta, epochs = epochs)
model.fit(X, y, fn, alpha=None) # alpha ranges between 0 to 1 if and only if ELU activation function is applied else alpha value remains None for other activation functions
Total_Error = model.total_loss()
save_model(model, filename = filename)
save_plot(df, plotFilename, model)
Reference
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
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 Percptron-rohandhanraj-0.0.3.tar.gz.
File metadata
- Download URL: Percptron-rohandhanraj-0.0.3.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using 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.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d8477ab1c89ab935a121f70bfbae65bd60ee42ccf4c2c2ffc416d85369ca173
|
|
| MD5 |
b973f331efddccfe7379b8927c0d89f0
|
|
| BLAKE2b-256 |
1a4ac288c4d52e347cd604e876425b18e38e52eeabeb26f8bf205e75bed2afaa
|
File details
Details for the file Percptron_rohandhanraj-0.0.3-py3-none-any.whl.
File metadata
- Download URL: Percptron_rohandhanraj-0.0.3-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using 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.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ca7dce34a7da5d2cdbd25716889a368344ff335cc0f7dc88185f8262ed4cdfd
|
|
| MD5 |
88b711ce85a3e128234e27e94e41744c
|
|
| BLAKE2b-256 |
690a6ab1590d6d6bf7f039967591090512344f7dff1292e3dc41295f1340e69e
|