{"id":21466931,"url":"https://github.com/thiagodnf/perceptron","last_synced_at":"2026-05-17T20:11:19.471Z","repository":{"id":146008225,"uuid":"150164226","full_name":"thiagodnf/perceptron","owner":"thiagodnf","description":"A simple classifier for data learning and classification in Java and Javascript","archived":false,"fork":false,"pushed_at":"2018-09-26T19:49:08.000Z","size":321,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-23T15:36:05.712Z","etag":null,"topics":["ai","classifier","java","java-8","javascript","learning-algorithm","mlp","perceptron"],"latest_commit_sha":null,"homepage":"https://thiagodnf.github.io/perceptron/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thiagodnf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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,"publiccode":null,"codemeta":null}},"created_at":"2018-09-24T20:27:00.000Z","updated_at":"2020-02-08T11:39:40.000Z","dependencies_parsed_at":"2023-05-25T04:00:38.069Z","dependency_job_id":null,"html_url":"https://github.com/thiagodnf/perceptron","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiagodnf%2Fperceptron","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiagodnf%2Fperceptron/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiagodnf%2Fperceptron/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiagodnf%2Fperceptron/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thiagodnf","download_url":"https://codeload.github.com/thiagodnf/perceptron/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243982182,"owners_count":20378605,"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":["ai","classifier","java","java-8","javascript","learning-algorithm","mlp","perceptron"],"created_at":"2024-11-23T08:16:05.880Z","updated_at":"2026-05-17T20:11:14.430Z","avatar_url":"https://github.com/thiagodnf.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg width=\"400px\" src=\"https://raw.githubusercontent.com/thiagodnf/perceptron/master/src/main/resources/logo.png\" /\u003e\n\nA simple classifier for data learning and classification in Java and Javascript\n\n## What is a perceptron?\n\nThe perceptron is an algorithm for supervised learning of binary classifiers (functions that can decide whether an input, represented by a vector of numbers, belongs to some specific class or not)\n\n## Example\n\nConsider we have two classes circles and squares as the following image:\n\n\u003cimg src=\"https://raw.githubusercontent.com/thiagodnf/perceptron/master/src/main/resources/example-01.png\"/\u003e\n\nThe colorful squares and circles are already classified. However, the gray squares and circles dont. Running the perceptron the output for the classification of these points are:\n\nOutput:\n\n```\nFound SQUARE and Point [1.0, 1.0] is SQUARE\nFound SQUARE and Point [6.0, 8.0] is SQUARE\nFound SQUARE and Point [12.0, 5.0] is SQUARE\nFound SQUARE and Point [14.0, 1.0] is SQUARE\nFound SQUARE and Point [6.0, 6.0] is SQUARE\nFound CIRCLE and Point [10.0, 8.0] is CIRCLE\nFound CIRCLE and Point [15.0, 6.0] is CIRCLE\nFound CIRCLE and Point [21.0, 2.0] is CIRCLE\nFound CIRCLE and Point [23.0, 12.0] is CIRCLE\nFound CIRCLE and Point [8.0, 12.0] is CIRCLE\n```\n\n## Training Size\n\nYou have the following options as training size:\n\n- Max Iterations Learning\n- User-Specified Threshold Learning\n\n## Where is the javascript version?\n\nAccess the \"docs\" folder or https://thiagodnf.github.io/perceptron/ for visualizing \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthiagodnf%2Fperceptron","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthiagodnf%2Fperceptron","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthiagodnf%2Fperceptron/lists"}