{"id":20898370,"url":"https://github.com/mickaelbergem/shannonuniversalpredictor","last_synced_at":"2026-04-27T14:02:13.704Z","repository":{"id":80255594,"uuid":"45250132","full_name":"MickaelBergem/ShannonUniversalPredictor","owner":"MickaelBergem","description":"Shannon Universal Predictor","archived":false,"fork":false,"pushed_at":"2018-06-11T12:58:43.000Z","size":724,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-19T12:49:18.809Z","etag":null,"topics":["cpp","prediction-algorithm","python3","shannon-predictor"],"latest_commit_sha":null,"homepage":"","language":"C++","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/MickaelBergem.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":"2015-10-30T12:40:16.000Z","updated_at":"2023-03-10T07:29:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"e53a712e-9339-430f-a16e-48ce75936c2d","html_url":"https://github.com/MickaelBergem/ShannonUniversalPredictor","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/MickaelBergem%2FShannonUniversalPredictor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MickaelBergem%2FShannonUniversalPredictor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MickaelBergem%2FShannonUniversalPredictor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MickaelBergem%2FShannonUniversalPredictor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MickaelBergem","download_url":"https://codeload.github.com/MickaelBergem/ShannonUniversalPredictor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243285616,"owners_count":20266848,"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":["cpp","prediction-algorithm","python3","shannon-predictor"],"created_at":"2024-11-18T11:10:20.775Z","updated_at":"2025-12-26T15:12:38.319Z","avatar_url":"https://github.com/MickaelBergem.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Shannon Universal Predictor\n\nPredicts the bit you are about to type, because hey, you are a poor entropy source ;)\n\nYour goal is to get the lowest predictability score possible.\n\n## Python implementation\n\n```bash\ncd src-py\npython3 algorithm.py -h\n# Manual game: the higher the predictor's score, the lowest is your entropy\npython3 algorithm.py\n# Try with random input (using Python's random module)\n# this should tend to 50%\npython3 algorithm.py -p random\n# Or load from a file\npython3 algorithm.py -p file -i example.txt\n```\n\nDemo with manual input:\n\n![Shannon Universal Predictor](demo-py.gif)\n\n## C++ implementation\n\n```bash\ncd src-cpp\ng++ main.cpp -o predictor\n./predictor\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmickaelbergem%2Fshannonuniversalpredictor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmickaelbergem%2Fshannonuniversalpredictor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmickaelbergem%2Fshannonuniversalpredictor/lists"}