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

Uploaded Python 3

File details

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

File metadata

  • Download URL: Percptron-rohandhanraj-0.0.5.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.5.tar.gz
Algorithm Hash digest
SHA256 205690b4942f7757e627c5ad2a8d2f90696fe5a11ed7dd786bc90b56ec20d4c0
MD5 fe1b341be19a0b20eb7c3f4dbe9270e0
BLAKE2b-256 9e48f6fc3b3bd6db9891b1168651af0e0821c6e0871f4f8098cf116dcf51bfd7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: Percptron_rohandhanraj-0.0.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 5064534b4c80c147d9f7c071e4571e71d53c94c0aab67067248a8b24992b201b
MD5 36027e00a79b6bcbc2ac4bc5804979cd
BLAKE2b-256 ae629bf9f5feb82fea3062be38a362d6f4e7c20431642ad2c9be648bba2b81f0

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