René's URL Explorer Experiment


Title: Add Q-Learning algorithm implementation with epsilon-greedy policy an… by idklol22 · Pull Request #13402 · TheAlgorithms/Python · GitHub

Open Graph Title: Add Q-Learning algorithm implementation with epsilon-greedy policy an… by idklol22 · Pull Request #13402 · TheAlgorithms/Python

X Title: Add Q-Learning algorithm implementation with epsilon-greedy policy an… by idklol22 · Pull Request #13402 · TheAlgorithms/Python

Description: …d grid world demo Describe your change: Add an algorithm? Fix a bug or typo in an existing algorithm? Add or change doctests? -- Note: Please avoid changing both code and tests in a single pull request. Documentation change? Checklist: I have read CONTRIBUTING.md. This pull request is all my own work -- I have not plagiarized. I know that pull requests will not be merged if they fail the automated tests. This PR only changes one algorithm file. To ease review, please open separate PRs for separate algorithms. All new Python files are placed inside an existing directory. All filenames are in all lowercase characters with no spaces or dashes. All functions and variable names follow Python naming conventions. All function parameters and return values are annotated with Python type hints. All functions have doctests that pass the automated testing. All new algorithms include at least one URL that points to Wikipedia or another similar explanation. If this pull request resolves one or more open issues then the description above includes the issue number(s) with a closing keyword: "Fixes #ISSUE-NUMBER".

Open Graph Description: …d grid world demo Describe your change: Add an algorithm? Fix a bug or typo in an existing algorithm? Add or change doctests? -- Note: Please avoid changing both code and tests in a single pul...

X Description: …d grid world demo Describe your change: Add an algorithm? Fix a bug or typo in an existing algorithm? Add or change doctests? -- Note: Please avoid changing both code and tests in a single pul...

Opengraph URL: https://github.com/TheAlgorithms/Python/pull/13402

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:4cc8cad0-03ca-3d48-afd4-a3a166438651
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC54C:14B945:172034C:1FB2845:6AFB84DB
html-safe-nonce739de46f4e8056051d7776ed8ac8f2a43746c318ad00ae00d4d1aa5a891d2cb6
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNTRDOjE0Qjk0NToxNzIwMzRDOjFGQjI4NDU6NkFGQjg0REIiLCJ2aXNpdG9yX2lkIjoiMTUyMjY3MjU2ODQxODY0NDExIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacc6bec9886abb8ebaf93848d7a8bec9d8bdfebd8061d04c793a96d77cb937fcbf
hovercard-subject-tagpull_request:2902545129
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/TheAlgorithms/Python/pull/13402/files
twitter:imagehttps://avatars.githubusercontent.com/u/92244814?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/92244814?s=400&v=4
og:image:alt…d grid world demo Describe your change: Add an algorithm? Fix a bug or typo in an existing algorithm? Add or change doctests? -- Note: Please avoid changing both code and tests in a single pul...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneef32892d4269fb87b55e81cc4ba8d86e0f16aa28446ffbf46cba8be5179ab188
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/TheAlgorithms/Python git https://github.com/TheAlgorithms/Python.git
octolytics-dimension-user_id20487725
octolytics-dimension-user_loginTheAlgorithms
octolytics-dimension-repository_id63476337
octolytics-dimension-repository_nwoTheAlgorithms/Python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id63476337
octolytics-dimension-repository_network_root_nwoTheAlgorithms/Python
turbo-body-classeslogged-out env-production page-responsive
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasebc3703b4dcbe820d1284ef63c88b001c850be25e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/TheAlgorithms/Python/pull/13402/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FTheAlgorithms%2FPython%2Fpull%2F13402%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FTheAlgorithms%2FPython%2Fpull%2F13402%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=TheAlgorithms%2FPython
Reloadhttps://github.com/TheAlgorithms/Python/pull/13402/files
Reloadhttps://github.com/TheAlgorithms/Python/pull/13402/files
Reloadhttps://github.com/TheAlgorithms/Python/pull/13402/files
TheAlgorithmshttps://github.com/TheAlgorithms
Pythonhttps://github.com/TheAlgorithms/Python
Codehttps://github.com/TheAlgorithms/Python
Issues14 (14)https://github.com/TheAlgorithms/Python/issues
Pull requests104 (104)https://github.com/TheAlgorithms/Python/pulls
Discussionshttps://github.com/TheAlgorithms/Python/discussions
Actionshttps://github.com/TheAlgorithms/Python/actions
Projectshttps://github.com/TheAlgorithms/Python/projects
Wikihttps://github.com/TheAlgorithms/Python/wiki
Security and qualityhttps://github.com/TheAlgorithms/Python/security
Insightshttps://github.com/TheAlgorithms/Python/pulse
Sign up for GitHub https://github.com/signup?return_to=%2FTheAlgorithms%2FPython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FTheAlgorithms%2FPython%2Fissues%2Fnew%2Fchoose
cclausshttps://github.com/cclauss
TheAlgorithms:masterhttps://github.com/TheAlgorithms/Python/tree/master
idklol22:add-q-learning-algorithm1https://github.com/idklol22/Python/tree/add-q-learning-algorithm1
Conversation 29 https://github.com/TheAlgorithms/Python/pull/13402
Commits 10 https://github.com/TheAlgorithms/Python/pull/13402/commits
Checks 4 https://github.com/TheAlgorithms/Python/pull/13402/checks
Files changed https://github.com/TheAlgorithms/Python/pull/13402/files
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/13402/files
Add Q-Learning algorithm implementation with epsilon-greedy policy an… https://github.com/TheAlgorithms/Python/pull/13402/files#top
Show all changes 10 commits https://github.com/TheAlgorithms/Python/pull/13402/files
2b09382 Add Q-Learning algorithm implementation with epsilon-greedy policy an… idklol22 Oct 10, 2025 https://github.com/TheAlgorithms/Python/pull/13402/commits/2b09382a614573970bb8c28cedf59ba11c111810
f0e2151 Add Q-Learning algorithm implementation with epsilon-greedy policy an… idklol22 Oct 10, 2025 https://github.com/TheAlgorithms/Python/pull/13402/commits/f0e21513e3eb8e6446524fed9165469682d07d18
3f0ec83 [pre-commit.ci] auto fixes from pre-commit.com hooks pre-commit-ci[bot] Oct 10, 2025 https://github.com/TheAlgorithms/Python/pull/13402/commits/3f0ec83c49c07031dfd361433ec876b43759f8ff
0728312 bug fixes and linting idklol22 Oct 10, 2025 https://github.com/TheAlgorithms/Python/pull/13402/commits/072831208527e9209e987b8294278267f9821e09
a7b5349 [pre-commit.ci] auto fixes from pre-commit.com hooks pre-commit-ci[bot] Oct 10, 2025 https://github.com/TheAlgorithms/Python/pull/13402/commits/a7b5349685241897a7339330a062bc14df4a9111
39d121a cls idklol22 Oct 10, 2025 https://github.com/TheAlgorithms/Python/pull/13402/commits/39d121a4902dc0c336a8164b603be32270fb1398
f3594e6 bug fix and hints idklol22 Oct 10, 2025 https://github.com/TheAlgorithms/Python/pull/13402/commits/f3594e6ae581f57e2b367df5dca243822cc2e04c
a67dff0 Merge branch 'master' into add-q-learning-algorithm1 idklol22 Oct 14, 2025 https://github.com/TheAlgorithms/Python/pull/13402/commits/a67dff05dc236fd101d5907dc2cd38b21dc596f8
e977067 Merge branch 'master' into add-q-learning-algorithm1 idklol22 Oct 21, 2025 https://github.com/TheAlgorithms/Python/pull/13402/commits/e9770675d14c2b43bb70dd62ea3da00320f58a1d
5fbd03f Merge branch 'master' into add-q-learning-algorithm1 idklol22 Jan 3, 2026 https://github.com/TheAlgorithms/Python/pull/13402/commits/5fbd03ff9c9138ef59ea3f5edd3a984829429f47
Clear filters https://github.com/TheAlgorithms/Python/pull/13402/files
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/13402/files
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/13402/files
machine_learning/q_learning.pyhttps://github.com/TheAlgorithms/Python/pull/13402/files#diff-479859910d55e9be4bf4037b86981fc86127f018e9ec6b18c3250f353173beeb
View file https://github.com/idklol22/Python/blob/5fbd03ff9c9138ef59ea3f5edd3a984829429f47/machine_learning/q_learning.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/TheAlgorithms/Python/pull/13402/{{ revealButtonHref }}
algorithms-keeperhttps://github.com/apps/algorithms-keeper
Oct 10, 2025https://github.com/TheAlgorithms/Python/pull/13402/files#r2418520936
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/13402/files
algorithms-keeperhttps://github.com/apps/algorithms-keeper
Oct 10, 2025https://github.com/TheAlgorithms/Python/pull/13402/files#r2418535399
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/13402/files
algorithms-keeperhttps://github.com/apps/algorithms-keeper
Oct 10, 2025https://github.com/TheAlgorithms/Python/pull/13402/files#r2418546078
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/13402/files
algorithms-keeperhttps://github.com/apps/algorithms-keeper
Oct 10, 2025https://github.com/TheAlgorithms/Python/pull/13402/files#r2419817157
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/13402/files
idklol22https://github.com/idklol22
Oct 10, 2025https://github.com/TheAlgorithms/Python/pull/13402/files#r2419862338
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/13402/files
idklol22https://github.com/idklol22
Oct 10, 2025https://github.com/TheAlgorithms/Python/pull/13402/files#r2421042628
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
@cclausshttps://github.com/cclauss
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/13402/files
algorithms-keeperhttps://github.com/apps/algorithms-keeper
Oct 14, 2025https://github.com/TheAlgorithms/Python/pull/13402/files#r2428745634
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/13402/files
algorithms-keeperhttps://github.com/apps/algorithms-keeper
Oct 21, 2025https://github.com/TheAlgorithms/Python/pull/13402/files#r2448733893
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/13402/files
algorithms-keeperhttps://github.com/apps/algorithms-keeper
Jan 3, 2026https://github.com/TheAlgorithms/Python/pull/13402/files#r2658801519
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/13402/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.