{"id":21326941,"url":"https://github.com/eshaancoding/randomnumberprediction","last_synced_at":"2025-03-16T00:12:20.901Z","repository":{"id":76349885,"uuid":"374851369","full_name":"Eshaancoding/RandomNumberPrediction","owner":"Eshaancoding","description":"Using FCN to predict the next random number from python's random.randint. As you might expect, it doesn't work.","archived":false,"fork":false,"pushed_at":"2021-06-08T02:10:20.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-22T12:45:32.164Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Eshaancoding.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-06-08T01:59:57.000Z","updated_at":"2021-06-08T02:10:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"ea27db68-6841-4c37-9641-4aca4b424c98","html_url":"https://github.com/Eshaancoding/RandomNumberPrediction","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/Eshaancoding%2FRandomNumberPrediction","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eshaancoding%2FRandomNumberPrediction/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eshaancoding%2FRandomNumberPrediction/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eshaancoding%2FRandomNumberPrediction/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Eshaancoding","download_url":"https://codeload.github.com/Eshaancoding/RandomNumberPrediction/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243806072,"owners_count":20350775,"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-11-21T21:12:28.114Z","updated_at":"2025-03-16T00:12:20.878Z","avatar_url":"https://github.com/Eshaancoding.png","language":"Python","readme":"# Random Number Prediction\n\nUsing FCN (Fully Connected Layers) to predict the next random number from python's random.randint. As you might expect, it doesn't work.\nThe reason why is because FCN is not good at picking up dependent data from a dataset. If you think about it, each image from a MNIST dataset, for example, is independent from another image. However, `randint` function is dependent. If you were to get a list of random numbers (assuming that the seed is constant), and get another list of numbers from that same seed, it would depend on the first sequence of numbers. All because the seed is constant. \n\nMy model just picks one number, cause it has given up trying to predict the next number in that sequence. So I wouldn't be surprised if the accuracy of near 0.02 (if you change the `max_random_num` parameter, then the accuracy should be at `1 / max_random_num`.\n\nThis project is just a lesson learned for me I guess.    \n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feshaancoding%2Frandomnumberprediction","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feshaancoding%2Frandomnumberprediction","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feshaancoding%2Frandomnumberprediction/lists"}