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
Release history Release notifications | RSS feed
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
Close
Hashes for perceptron_linear_classifier-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 504e1ba95dc401bef7fc00eaae4a3fcd067aae29b03e3a620575e21f8c015613 |
|
MD5 | 5b0f458809c2d37f7593ab95869de8eb |
|
BLAKE2b-256 | 1e266084bcbfc3bd1caa3dc35b2df2c44b6de05d376afa023c64e8e85863cb52 |