Skip to main content

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:

  1. Binary Step Function
  2. Signum Function
  3. Linear Activation Function
  4. Sigmoid / Logistic Activation Function
  5. Tanh Function (Hyperbolic Tangent)
  6. ReLU Function
  7. Exponential Linear Units (ELUs) Function
  8. Swish
  9. 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

Python Package Publishing Docs

GitHub Actions CICD Docs

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

Percptron-rohandhanraj-0.0.3.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Percptron_rohandhanraj-0.0.3-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

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

Hashes for Percptron-rohandhanraj-0.0.3.tar.gz
Algorithm Hash digest
SHA256 9d8477ab1c89ab935a121f70bfbae65bd60ee42ccf4c2c2ffc416d85369ca173
MD5 b973f331efddccfe7379b8927c0d89f0
BLAKE2b-256 1a4ac288c4d52e347cd604e876425b18e38e52eeabeb26f8bf205e75bed2afaa

See more details on using hashes here.

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

Hashes for Percptron_rohandhanraj-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8ca7dce34a7da5d2cdbd25716889a368344ff335cc0f7dc88185f8262ed4cdfd
MD5 88b711ce85a3e128234e27e94e41744c
BLAKE2b-256 690a6ab1590d6d6bf7f039967591090512344f7dff1292e3dc41295f1340e69e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page