{"id":25081114,"url":"https://github.com/odegnome/rlexample","last_synced_at":"2025-10-06T17:43:25.726Z","repository":{"id":170894512,"uuid":"438597506","full_name":"odegnome/rlexample","owner":"odegnome","description":"A simple RL example implemented using python","archived":false,"fork":false,"pushed_at":"2022-09-19T14:59:12.000Z","size":88,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-01T07:59:03.515Z","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/odegnome.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-12-15T11:03:33.000Z","updated_at":"2021-12-23T16:43:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"0fb9faba-e068-4628-9182-1edc7c06090b","html_url":"https://github.com/odegnome/rlexample","commit_stats":null,"previous_names":["coder-rg/rlexample","odegnome/rlexample"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/odegnome/rlexample","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/odegnome%2Frlexample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/odegnome%2Frlexample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/odegnome%2Frlexample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/odegnome%2Frlexample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/odegnome","download_url":"https://codeload.github.com/odegnome/rlexample/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/odegnome%2Frlexample/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259531602,"owners_count":22872137,"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":"2025-02-07T04:36:41.328Z","updated_at":"2025-10-06T17:43:20.663Z","avatar_url":"https://github.com/odegnome.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RLexample\n\nThis is a simple example of reinforcement learning. Hope this encourages you\nto build something interesting yourself.\n\nChange from iter2.\nChange from iter1.\n\n## Environment\n\n![Environment](images/env1.png)\n\nThe environment is a 1x7 grid. The agent starts at **S**, with each\nepisode ending at **G** and the\navailable actions are **left** or **right**. There are three different\nrewards systems used. Each `.py` file implements different\nreward.\n\n## Test yourself!\n\nAll the available code is in SliderReward[1-3].py files. Each file\ncontains complete and independant code.\n\n**Note:** *numpy* should be installed.\n\nTo run any of the files:\n```shell\npython3 SliderReward[1-3].py \u003cno-of-episodes\u003e\n```\nHere `\u003cno-of-episodes\u003e` is the amount of iterations for training\nthe agent. If no argument is provided, then the default is 50.\n\n**Example**\n```shell\n$ python3 SliderReward1.py\n\n$ python3 SliderReward1.py 100\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fodegnome%2Frlexample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fodegnome%2Frlexample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fodegnome%2Frlexample/lists"}