Skip to content

About

Implementation of a perceptron using Python. Produces an accuracy score and a classification report. Trained on Iris dataset

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Perceptron implementation

From-stratch implementation of the perceptron, the simplest neural network, in Python. Linked article

Installation

Clone the repository. Then,

cd perceptron

python -m venv .venv
source .venv/bin/activate        # Windows: .venv\Scripts\activate

pip install -r requirements.txt

Usage

python main.py

The script generates a dataset, trains the perceptron and prints the resulting accuracy.

For example :

              precision    recall  f1-score   support

         0.0       0.93      1.00      0.97        43
         1.0       1.00      0.91      0.95        32

    accuracy                           0.96        75
   macro avg       0.97      0.95      0.96        75
weighted avg       0.96      0.96      0.96        75

About

Implementation of a perceptron using Python. Produces an accuracy score and a classification report. Trained on Iris dataset

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages