{"id":27298426,"url":"https://github.com/ilvondir/lem2","last_synced_at":"2026-02-16T11:34:11.078Z","repository":{"id":268857760,"uuid":"819580182","full_name":"Ilvondir/lem2","owner":"Ilvondir","description":"Implementation of LEM2 inference rule algorithm created with Python.","archived":false,"fork":false,"pushed_at":"2025-02-04T19:55:08.000Z","size":520,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-19T05:48:51.006Z","etag":null,"topics":["inference-rules","lem2","rough-sets"],"latest_commit_sha":null,"homepage":"","language":"Python","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/Ilvondir.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,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-06-24T19:49:15.000Z","updated_at":"2025-02-04T19:55:12.000Z","dependencies_parsed_at":"2024-12-19T10:38:54.723Z","dependency_job_id":"5929a0aa-0681-4864-86f4-ae8bb06f5d2b","html_url":"https://github.com/Ilvondir/lem2","commit_stats":null,"previous_names":["ilvondir/lem2"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Ilvondir/lem2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ilvondir%2Flem2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ilvondir%2Flem2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ilvondir%2Flem2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ilvondir%2Flem2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ilvondir","download_url":"https://codeload.github.com/Ilvondir/lem2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ilvondir%2Flem2/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29506768,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T09:05:14.864Z","status":"ssl_error","status_checked_at":"2026-02-16T08:55:59.364Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["inference-rules","lem2","rough-sets"],"created_at":"2025-04-12T00:26:54.590Z","updated_at":"2026-02-16T11:34:11.048Z","avatar_url":"https://github.com/Ilvondir.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LEM2\n\nThe implementation of the LEM2 algorithm (*Learning from Examples Module, version 2*), a greedy machine learning algorithm used in classification problems. It is based on the theory of rough sets and works by generating a minimal covering of decision rules for each label in the training data.\n\nThe implementation allows the algorithm to run in various debugging modes using the `verbose` parameter. Additionally, there is an option to choose whether the algorithm should generate only certain rules or also uncertain ones, using the `only_certain` parameter.\n\nDue to the fact that the LEM2 algorithm works only with discretized data, a simple discretizer has also been implemented. Its operation is based on dividing the range of a given attribute into a selected number of sets, which represent discrete value.\n\nThe proposed implementation was developed in Python and tested on several different binary classification problems.\n\n## Used Tools\n\n- Python 3.11.2\n- Pandas 2.2.3\n- Matplotlib 3.10.0\n- Numpy 2.2.0\n\n## Requirements\n\nFor running the application you need:\n\n- [Python](https://www.python.org/downloads/)\n\n## How to run\n\n1. Execute command `git clone https://github.com/Ilvondir/lem2`.\n2. Install required packages by `pip install -r requirements.txt`.\n3. Check the implementation in  `lem2.py`, its tests and documentations in `html` files.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filvondir%2Flem2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Filvondir%2Flem2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filvondir%2Flem2/lists"}