This repository presents an implementation of the single-layer perceptron in Java.
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.
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.
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).
The program uses Smile to generate a visualization of the perceptron solution on a sample dataset. For example:
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.
- Clone the repository:
git clone https://github.com/jakubholik90/ML_perceptron.git - Go to the project directory:
cd ML_perceptron/perceptron - Build the project with Maven:
mvn clean install - Run the main class from the
srcdirectory (details depend on the specific implementation).
- Java 8 or newer
- Maven
- Enable users to define their own input and training data, for example via the console using
Scanner. - Improve configuration flexibility and enhance user experience.
Jakub Holik
Educational project – feel free to experiment and suggest improvements!
README.md generated with GitHub Copilot.