{"id":19915026,"url":"https://github.com/megyssstaa/lvq4j-example-iris","last_synced_at":"2025-05-03T05:31:57.084Z","repository":{"id":50551565,"uuid":"272776554","full_name":"MeGysssTaa/lvq4j-example-iris","owner":"MeGysssTaa","description":"A simple demo of LVQ4J usage on the Iris Data Set","archived":false,"fork":false,"pushed_at":"2020-06-16T18:45:44.000Z","size":64,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-07-30T19:17:31.606Z","etag":null,"topics":["csv","example","examples","iris","iris-classification","iris-dataset","iris-recognition","learning-vector-quantization","lvq","lvq4j","machine-learning","machinelearning","neural-network","neural-networks","neuralnetwork","neuralnetworks"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MeGysssTaa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-16T17:55:29.000Z","updated_at":"2023-07-02T10:12:52.000Z","dependencies_parsed_at":"2022-08-31T14:02:37.037Z","dependency_job_id":null,"html_url":"https://github.com/MeGysssTaa/lvq4j-example-iris","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/MeGysssTaa%2Flvq4j-example-iris","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MeGysssTaa%2Flvq4j-example-iris/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MeGysssTaa%2Flvq4j-example-iris/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MeGysssTaa%2Flvq4j-example-iris/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MeGysssTaa","download_url":"https://codeload.github.com/MeGysssTaa/lvq4j-example-iris/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224354155,"owners_count":17297401,"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":["csv","example","examples","iris","iris-classification","iris-dataset","iris-recognition","learning-vector-quantization","lvq","lvq4j","machine-learning","machinelearning","neural-network","neural-networks","neuralnetwork","neuralnetworks"],"created_at":"2024-11-12T21:38:04.473Z","updated_at":"2024-11-12T21:38:05.126Z","avatar_url":"https://github.com/MeGysssTaa.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# About\r\nThis repository demonstrates a simple example of the **[LVQ4J library](https://github.com/MeGysssTaa/lvq4j)** usage on the **[Iris Data Set](https://en.wikipedia.org/wiki/Iris_flower_data_set)**, which is, perhaps, the best known study case in the **[machine classification](https://en.wikipedia.org/wiki/Statistical_classification)** field.\r\n\r\n\r\n# Building and running (Gradle)\r\n**Step 1.** Download or clone this repository.\r\n```bash\r\ngit clone https://github.com/MeGysssTaa/lvq4j-example-iris\r\n```\r\n\r\n\r\n**Step 2.** Build the example.\r\n```bash\r\ncd lvq4j-example-iris\r\n./gradlew build\r\n```\r\n\r\n\r\n**Step 3.** [Download the Iris Data Set](https://archive.ics.uci.edu/ml/datasets/iris).\r\n\r\n\r\n**Step 4.** Run the example:\r\n```bash\r\njava -jar build/libs/lvq4j-example-iris-1.0.0.jar \u003ctrain data file\u003e\r\n```\r\n\r\n\r\n**Profit!** If you did everything correctly, the output you'll see will be similar to this:\r\n```\r\nlvq4j-example-iris $ java -jar build/libs/lvq4j-example-iris-1.0.0.jar /mnt/e/iris.csv\r\n19:44:56.689 [main]              INFO  Main - Successfully read 150 Iris data records\r\n19:44:56.709 [main]              INFO  Main - Neural network will be training asynchronously!\r\n19:44:56.710 [Iris Train Thread] INFO  LVQ4J - Normalized input in 0 millis with function me.darksidecode.lvq4j.NormalizationFunction$$Lambda$24/1209669119\r\n19:44:56.711 [Iris Train Thread] INFO  LVQ4J - Initialized weights in 0 millis with strategy me.darksidecode.lvq4j.WeightsInitializer$$Lambda$17/1884122755\r\n19:44:56.711 [Iris Train Thread] INFO  LVQ4J - Neural network will begin training from scratch.\r\n19:44:56.753 [Iris Train Thread] INFO  Train Finish Listener - The neural network has finished training!\r\n19:44:56.754 [Iris Train Thread] INFO  Train Finish Listener - ===============================================\r\n19:44:56.755 [Iris Train Thread] INFO  Train Finish Listener -   SUMMARY\r\n19:44:56.756 [Iris Train Thread] INFO  Train Finish Listener -     Overall accuracy: 98.0%\r\n19:44:56.757 [Iris Train Thread] INFO  Train Finish Listener -     Accuracy per cluster (per Iris species):\r\n19:44:56.757 [Iris Train Thread] INFO  Train Finish Listener -       0: 100.0%\r\n19:44:56.757 [Iris Train Thread] INFO  Train Finish Listener -       1: 96.0%\r\n19:44:56.757 [Iris Train Thread] INFO  Train Finish Listener -       2: 98.0%\r\n19:44:56.757 [Iris Train Thread] INFO  Train Finish Listener - ===============================================\r\n19:44:56.758 [Iris Train Thread] INFO  LVQ4J - Training completed. It took 46 millis to run 188 iterations for a final error square\r\nsum of 13.05253438308561\r\n```\r\n\r\n\r\n# Next steps\r\n**See LVQ4J Wiki** and try playing with the code, and then write an own classifier that makes use of LVQ4J.\r\n\r\n* If you have any questions or issues, **[don't hesitate to open an issue](https://github.com/MeGysssTaa/lvq4j-example-iris/issues)**!\r\n* If you believe something isn't working as intended, and you know how to fix it, or if you have some ideas for improvements, **[please create a pull request](https://github.com/MeGysssTaa/lvq4j-example-iris/pulls)**.\r\n\r\n\r\n# License\r\n**[Apache License 2.0](https://github.com/MeGysssTaa/lvq4j/blob/master/LICENSE)**\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmegyssstaa%2Flvq4j-example-iris","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmegyssstaa%2Flvq4j-example-iris","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmegyssstaa%2Flvq4j-example-iris/lists"}