https://github.com/probro27/perceptron
A Python library to implement the perceptron algorithm and possibly visualize it.
https://github.com/probro27/perceptron
linear-classifier machine-learning-algorithms perceptron
Last synced: about 2 months ago
JSON representation
A Python library to implement the perceptron algorithm and possibly visualize it.
- Host: GitHub
- URL: https://github.com/probro27/perceptron
- Owner: probro27
- License: mit
- Created: 2022-10-29T20:09:14.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-29T23:05:02.000Z (about 3 years ago)
- Last Synced: 2025-02-23T19:46:13.798Z (11 months ago)
- Topics: linear-classifier, machine-learning-algorithms, perceptron
- Language: Python
- Homepage: https://pypi.org/project/perceptron-linear-classifier
- Size: 14.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Perceptron-Linear-Classifier
A Python library to implement the perceptron algorithm and possibly visualize it.
## Usage
## Examples of How To Use
Creating An Object
```python
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 CONTRIBUTING.md file for more information about it.
## Issues
Report to Prabhav Khera.