Skip to content

Python implementation of the simple perceptron or also known as a single-layer neural network, is a binary classification algorithm by Frank Rosenblatt based on the neural model of Warren McCulloch and Walter Pitts developed in 1943.

Notifications You must be signed in to change notification settings

josgard94/perceptron-single-layer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🇪🇸 Leer en Español

🧠 Single-Layer Perceptron

Welcome to this classic machine learning project! This repository contains a Python implementation of a single-layer perceptron, also known as a simple neural network, proposed by Frank Rosenblatt in 1958 and inspired by the neural model of McCulloch and Pitts (1943).


📘 Description

The perceptron simulates the basic behavior of a brain neuron:

  • It receives inputs 🧾 (x)
  • Each input is multiplied by a weight 📊 (w)
  • An activation function is applied (z = w·x + b)
  • If the result exceeds a certain threshold (θ), the neuron is activated 🔥

This algorithm is a binary linear classifier, used for supervised learning.


⚙️ Features

  • 🐍 Implemented in Python
  • 🎯 Performs binary classification
  • 📈 Step-by-step training with weight updates
  • 🧪 Includes visualizations of training results

📸 Screenshots

🔹 Decision region example 1

Decision Boundary

🔹 Decision region example 2

Learning Process


🚀 How to Run

Make sure you have Python 3 and the required dependencies installed:

pip install -r requirements.txt

Then run the main script:

python main.py

📚 References

  • Rosenblatt, F. (1958). The Perceptron: A Probabilistic Model for Information Storage and Organization in the Brain.

  • McCulloch, W. S., & Pitts, W. (1943). A Logical Calculus of the Ideas Immanent in Nervous Activity.

⭐ Give it a Star

If you found this project helpful or interesting, don’t forget to leave a ⭐!

About

Python implementation of the simple perceptron or also known as a single-layer neural network, is a binary classification algorithm by Frank Rosenblatt based on the neural model of Warren McCulloch and Walter Pitts developed in 1943.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages