Skip to content

jakubholik90/ML_perceptron

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

ML_perceptron

This repository presents an implementation of the single-layer perceptron in Java.

About

This is a pilot project designed to consolidate knowledge from an introductory machine learning course. The main goal is to show how a classical perceptron works and to provide a foundation for further experiments and improvements.

Data Visualization

This project uses the Smile library for data visualization purposes. Smile helps generate illustrative plots that display how the perceptron separates classes in a sample dataset.

Project Structure

  • perceptron/pom.xml – Maven configuration file for dependency management and project builds.
  • perceptron/src/ – Source code implementing the perceptron.
  • .idea/ – IntelliJ IDEA configuration directory (not required to run the project).

Example Visualization

The program uses Smile to generate a visualization of the perceptron solution on a sample dataset. For example:

Sample Perceptron Visualization

The above is a sample output – the actual plot will be generated by the program using Smile's plotting capabilities, showing the separation boundary learned by the perceptron.

How to Run

  1. Clone the repository:
    git clone https://github.com/jakubholik90/ML_perceptron.git
    
  2. Go to the project directory:
    cd ML_perceptron/perceptron
    
  3. Build the project with Maven:
    mvn clean install
    
  4. Run the main class from the src directory (details depend on the specific implementation).

Requirements

  • Java 8 or newer
  • Maven

Future Plans

  • Enable users to define their own input and training data, for example via the console using Scanner.
  • Improve configuration flexibility and enhance user experience.

Author

Jakub Holik


Educational project – feel free to experiment and suggest improvements!


README.md generated with GitHub Copilot.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages