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.4.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.4-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file Percptron-rohandhanraj-0.0.4.tar.gz.

File metadata

  • Download URL: Percptron-rohandhanraj-0.0.4.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.4.tar.gz
Algorithm Hash digest
SHA256 fd68e09297ac4299bf0838b81e23ece7725717991ddfd8bc9ef556ea4b03261b
MD5 c697060e705ecd7c177ac423d9d812dc
BLAKE2b-256 7852e904b8ce4e490ba07a4565890151dbc6e93695b77bb250b4252dd0897377

See more details on using hashes here.

File details

Details for the file Percptron_rohandhanraj-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: Percptron_rohandhanraj-0.0.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 cc1dfe104fa191f51d4c9400468ba166a321f61dbb779b9cf0bc8d0a18d305a2
MD5 fbdd9f3adef217ec41a0a477fb8e31d7
BLAKE2b-256 71c64b6b7027d7ce7188f6097791b84ae65e87918c89c84363645986031e25f8

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