{"id":15402203,"url":"https://github.com/liby99/learning-parity","last_synced_at":"2025-10-18T12:02:07.385Z","repository":{"id":90735962,"uuid":"332117403","full_name":"Liby99/learning-parity","owner":"Liby99","description":"Learning Parity with LSTM (which is not possible)","archived":false,"fork":false,"pushed_at":"2021-01-23T05:24:34.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-21T10:51:05.345Z","etag":null,"topics":[],"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/Liby99.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}},"created_at":"2021-01-23T03:18:32.000Z","updated_at":"2021-01-23T23:15:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"a356a321-68df-4b01-947e-e0d1d7ecdaae","html_url":"https://github.com/Liby99/learning-parity","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/Liby99%2Flearning-parity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Liby99%2Flearning-parity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Liby99%2Flearning-parity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Liby99%2Flearning-parity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Liby99","download_url":"https://codeload.github.com/Liby99/learning-parity/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243616976,"owners_count":20319983,"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":[],"created_at":"2024-10-01T16:01:49.510Z","updated_at":"2025-10-18T12:02:07.252Z","avatar_url":"https://github.com/Liby99.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Learning Parity with LSTM\n\nThis python package tries to learn to compute parity with LSTM. It takes\nin a sequence of 0/1s, and produce a single 0/1 representing the parity\nbit.\n\n## How to use\n\n1. Generate Training Dataset and Testing Dataset\n\n```\npython3 src/datagen.py -o data/train.pkl\npython3 src/datagen.py -o data/test.pkl\n```\n\n2. Train a model\n\n```\npython3 src/train.py -i data/train.pkl -o model/model.pkl\n```\n\n3. Test the trained model\n\n```\npython3 src/test.py -m model/model.pkl -d data/test.pkl\n```\n\n## Expected output\n\nThe LSTM model cannot really learn the concept of parity and at the end\nit will just randomly guess either 0 or 1, producing a 0.5 accuracy.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliby99%2Flearning-parity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliby99%2Flearning-parity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliby99%2Flearning-parity/lists"}