Skip to main content

A basic Perceptron Linear Classifier algorithm

Project description

Perceptron-Linear-Classifier

A Python library to implement the perceptron algorithm and possibly visualize it.

Usage

Examples of How To Use

Creating An Object

from perceptron_linear_classifier import Perceptron

perceptron = Perceptron(data=data_train, labels=labels_train, data_test=data_test, labels_test=labels_test)

# train the perceptron classifier to find the respective values of theta and theta_0
perceptron.fit()

# returns the score for the perceptron classifier
perceptron.eval_classifier()

# perform 1 step of the perceptron classifier to check if the value of theta and theta0 changes
perceptron.singleStep()

# perform 1 iteration of passing the entire data to the classifier 
perceptron.singleIteration()

Contributing

Please read the CONTRIBUTIN.md file for more information about it.

Issues

Report to Prabhav Khera.

Project details


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

Supported by

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