[go: nahoru, domu]

Skip to content

yousefzekry/single-layer-perceptron

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Single-Layer-Perceptron

Perceptron Classifier

Overview

This repository contains an two implementations of a perceptron classifier in Python. The perceptron is a simple binary classification algorithm suitable for linearly separable data. This implementation includes functions for training the perceptron weights, plotting the classification results, and evaluating accuracy.

Installation

Before running the program, ensure you have Matplotlib installed. You can install Matplotlib using Python's package manager, pip. Here's how you can do it

Using Pip

Open your command-line interface (CLI) and execute the following command

pip install matplotlib This command will download and install the latest version of Matplotlib and its dependencies from the Python Package Index (PyPI).

Using Conda (if you're using Anaconda distribution)

install Matplotlib using conda, Anaconda's package manager.

Open your CLI and execute the following command conda install matplotlib This command will install Matplotlib and its dependencies from the Anaconda repository.

Files

01-Single-Layer-Perceptron.py Matplotlib Version (Graphical Representation)

The Matplotlib version of the single-layer perceptron utilizes Matplotlib, a popular plotting library in Python, to provide graphical representation of the perceptron's behavior. This version offers additional functionalities such as visualizing the training process, plotting decision boundaries, and displaying classification results in a graphical format.

02-Single-Layer-Perceptron.py Simple Version (NumPy Only)

The simple version of the single-layer perceptron is implemented using NumPy, a powerful numerical computing library in Python. This version is designed for use in the console interface and provides basic functionalities such as training the perceptron's weights and making predictions.

Usage

To use the perceptron classifier

  1. Clone the repository to your local machine.
  2. Run the python script using this command python filename.py
  3. Modify the script or integrate it into your project as needed.

Dependencies

  • Python 3.x
  • matplotlib
  • numpy

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages