{"id":26709216,"url":"https://github.com/kalbarczykdev/perceptron-algorythm-java","last_synced_at":"2025-03-27T08:15:30.266Z","repository":{"id":233114338,"uuid":"774842949","full_name":"KalbarczykDev/Perceptron-Algorythm-Java","owner":"KalbarczykDev","description":"This project implements a Perceptron, which is a fundamental algorithm used in machine learning for binary classification tasks. The Perceptron learns from a set of training data and adjusts its weights to classify new data points.","archived":false,"fork":false,"pushed_at":"2024-03-28T08:31:01.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-22T05:51:15.264Z","etag":null,"topics":["java","java-perceptron","perceptron","perceptron-algorithm","perceptron-java","perceptron-learning-algorithm"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KalbarczykDev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-03-20T09:44:28.000Z","updated_at":"2024-09-23T12:35:12.000Z","dependencies_parsed_at":"2024-04-14T00:59:08.677Z","dependency_job_id":null,"html_url":"https://github.com/KalbarczykDev/Perceptron-Algorythm-Java","commit_stats":null,"previous_names":["okdotdev/perceptron-algorythm-java","oslint/perceptron-algorythm-java","kalbarczykdev/perceptron-algorythm-java"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KalbarczykDev%2FPerceptron-Algorythm-Java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KalbarczykDev%2FPerceptron-Algorythm-Java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KalbarczykDev%2FPerceptron-Algorythm-Java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KalbarczykDev%2FPerceptron-Algorythm-Java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KalbarczykDev","download_url":"https://codeload.github.com/KalbarczykDev/Perceptron-Algorythm-Java/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245806460,"owners_count":20675298,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["java","java-perceptron","perceptron","perceptron-algorithm","perceptron-java","perceptron-learning-algorithm"],"created_at":"2025-03-27T08:15:29.646Z","updated_at":"2025-03-27T08:15:30.260Z","avatar_url":"https://github.com/KalbarczykDev.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"### 🧠 Perceptron Implementation\n\nThis project implements a Perceptron, which is a fundamental algorithm used in machine learning for binary classification tasks. The Perceptron learns from a set of training data and adjusts its weights to classify new data points.\nIt was made for the NAI (tools of AI) class at Pjait.\n\n#### 📋 Perceptron Class\n\n- **Functionality**: The `Perceptron` class provides methods for training the Perceptron using training data, adjusting weights, classifying vectors, and testing the Perceptron's accuracy.\n- **Training**: The `trainPerceptron()` method iteratively adjusts weights until the Perceptron is trained for the given training data.\n- **Classification**: The `classifyVector()` method predicts the class of a data vector based on learned weights.\n- **Testing**: The `testPerceptronForListOfData()` method evaluates the Perceptron's accuracy on a test dataset.\n\n#### 🚀 Main Class\n\n- **Initialization**: The `Main` class initializes the Perceptron with training data and trains it.\n- **Testing**: It then tests the trained Perceptron on a test dataset and prints the number of correctly classified examples and the experiment's accuracy.\n- **User Input**: The `getVectorInput()` method allows users to input their own data vectors and see the predicted class label.\n\n#### 📁 Project Structure\n\n- `Perceptron.java`: Contains the implementation of the Perceptron algorithm.\n- `Main.java`: Entry point of the application, responsible for initializing, training, testing, and user interaction.\n- `DataReader.java`: Utility class for reading data from files.\n- `Data.java`: Class representing individual data instances.\n- `DataInput.java`: Utility class for user input.\n\n#### 🛠️ Dependencies\n\n- Java 8 or higher\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkalbarczykdev%2Fperceptron-algorythm-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkalbarczykdev%2Fperceptron-algorythm-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkalbarczykdev%2Fperceptron-algorythm-java/lists"}