{"id":15441862,"url":"https://github.com/mudler/algorithm-qlearning","last_synced_at":"2025-11-17T11:37:01.915Z","repository":{"id":22391792,"uuid":"25728728","full_name":"mudler/Algorithm-QLearning","owner":"mudler","description":"Algorithm::QLearning - Reinforcement Learning done in Pure Perl","archived":false,"fork":false,"pushed_at":"2014-10-28T09:46:45.000Z","size":924,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-28T07:12:14.476Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mudler.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-25T11:07:21.000Z","updated_at":"2024-01-02T22:20:17.000Z","dependencies_parsed_at":"2022-07-25T13:17:09.911Z","dependency_job_id":null,"html_url":"https://github.com/mudler/Algorithm-QLearning","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mudler/Algorithm-QLearning","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mudler%2FAlgorithm-QLearning","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mudler%2FAlgorithm-QLearning/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mudler%2FAlgorithm-QLearning/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mudler%2FAlgorithm-QLearning/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mudler","download_url":"https://codeload.github.com/mudler/Algorithm-QLearning/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mudler%2FAlgorithm-QLearning/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":284877008,"owners_count":27077734,"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","status":"online","status_checked_at":"2025-11-17T02:00:06.431Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-10-01T19:23:46.452Z","updated_at":"2025-11-17T11:37:01.892Z","avatar_url":"https://github.com/mudler.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NAME\n\nAlgorithm::QLearning - Reinforcement Learning done in Pure Perl\n\n# DESCRIPTION\n\n[Algorithm::QLearning](https://metacpan.org/pod/Algorithm::QLearning) is a base class for implementations of Q-Learning based algorithms written in Pure Perl, have a look at [Algorithm::QLearning::NFQ](https://metacpan.org/pod/Algorithm::QLearning::NFQ) for a Neural Network implementation.\n\n# ATTRIBUTES\n\n## discount\\_factor\n\nDefaults to `0.5`, it's the discount factor of the Q-Learning function.\n\n## learning\\_rate\n\nDefaults to `1`, it's the learning rate of the Q-Learning function.\n\n## epsilon\n\nDefaults to `0.1`, it's the probability to choose a random path\n\n## actions\n\nList of actions of the system (needed if your environment doesn't send the best possible volue for the agent, this enables the automatic search of the best possible value for the next state)\n\n    [1,2,3,4]\n\n# METHODS\n\n## qfunc\n\nReturns the qvalue of the Q-Learning function.\n\nTakes as input: current status, current action, environment result status, environment reward, \\[best\\_possible value for next state, optional\\]\n\n## egreedy\n\nReturn the new picked action, based on the epsilon specified, and the given actions\n\n## \\_bpv\n\nRepresent the best possible value, it's internal\n\n# LICENSE\n\nCopyright (C) mudler.\n\nThis library is free software; you can redistribute it and/or modify\nit under the same terms as Perl itself.\n\n# AUTHOR\n\nmudler \u003cmudler@dark-lab.net\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmudler%2Falgorithm-qlearning","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmudler%2Falgorithm-qlearning","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmudler%2Falgorithm-qlearning/lists"}