René's URL Explorer Experiment


Title: Invalid call to function [extra arguments] in learning.py · Issue #830 · aimacode/aima-python · GitHub

Open Graph Title: Invalid call to function [extra arguments] in learning.py · Issue #830 · aimacode/aima-python

X Title: Invalid call to function [extra arguments] in learning.py · Issue #830 · aimacode/aima-python

Description: function train_and_test has prototype: def train_and_test(dataset, start, end): but it is passed 4 arguments in the below function in learning.py. def learningcurve(learner, dataset, trials=10, sizes=None): if sizes is None: sizes = list...

Open Graph Description: function train_and_test has prototype: def train_and_test(dataset, start, end): but it is passed 4 arguments in the below function in learning.py. def learningcurve(learner, dataset, trials=10, siz...

X Description: function train_and_test has prototype: def train_and_test(dataset, start, end): but it is passed 4 arguments in the below function in learning.py. def learningcurve(learner, dataset, trials=10, siz...

Opengraph URL: https://github.com/aimacode/aima-python/issues/830

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Invalid call to function [extra arguments] in learning.py","articleBody":"function `train_and_test` has prototype:\r\n```python\r\ndef train_and_test(dataset, start, end):\r\n```\r\nbut it is passed 4 arguments in the below function in learning.py.\r\n```python\r\ndef learningcurve(learner, dataset, trials=10, sizes=None):\r\n    if sizes is None:\r\n        sizes = list(range(2, len(dataset.examples) - 10, 2))\r\n\r\n    def score(learner, size):\r\n        random.shuffle(dataset.examples)\r\n        return train_and_test(learner, dataset, 0, size)\r\n    return [(size, mean([score(learner, size) for t in range(trials)]))\r\n            for size in sizes]\r\n```\r\nI think `learner` should not be passed, but then it is the only use of `learner` parameter  in `train_and_test`.\r\nHow should this be resolved?","author":{"url":"https://github.com/goswami-rahul","@type":"Person","name":"goswami-rahul"},"datePublished":"2018-03-09T13:47:35Z","url":"https://github.com/aimacode/aima-python/issues/830"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:7377e0c0-5446-3e24-1093-579a66f8096f
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9A12:291B58:3C10281:4BFE78A:6B023E01
html-safe-noncef0ba414bd939f16eb3b26931e2eb7481609073b3a5856671afee2cb41a7d7b94
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QTEyOjI5MUI1ODozQzEwMjgxOjRCRkU3OEE6NkIwMjNFMDEiLCJ2aXNpdG9yX2lkIjoiMjg1Mjk3NDkwOTExNjc5MjMyMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacb6e3a9137cb3f42b7c5ad3ca0689814e86535771c92c35d1ee7a7d8653ca77e8
hovercard-subject-tagissue:303846355
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/aimacode/aima-python/830/issue_layout
twitter:imagehttps://opengraph.githubassets.com/455a10797d9a318073590a0956ca0be89365a3a3907aad1bdfcc9f95447d6fb2/aimacode/aima-python/issues/830
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/455a10797d9a318073590a0956ca0be89365a3a3907aad1bdfcc9f95447d6fb2/aimacode/aima-python/issues/830
og:image:altfunction train_and_test has prototype: def train_and_test(dataset, start, end): but it is passed 4 arguments in the below function in learning.py. def learningcurve(learner, dataset, trials=10, siz...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamegoswami-rahul
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
go-importgithub.com/aimacode/aima-python git https://github.com/aimacode/aima-python.git
octolytics-dimension-user_id17015933
octolytics-dimension-user_loginaimacode
octolytics-dimension-repository_id50881110
octolytics-dimension-repository_nwoaimacode/aima-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id50881110
octolytics-dimension-repository_network_root_nwoaimacode/aima-python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/aimacode/aima-python/issues/830#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Faimacode%2Faima-python%2Fissues%2F830
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%2Faimacode%2Faima-python%2Fissues%2F830
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=aimacode%2Faima-python
Reloadhttps://github.com/aimacode/aima-python/issues/830
Reloadhttps://github.com/aimacode/aima-python/issues/830
Reloadhttps://github.com/aimacode/aima-python/issues/830
aimacodehttps://github.com/aimacode
aima-pythonhttps://github.com/aimacode/aima-python
Codehttps://github.com/aimacode/aima-python
Issues1 (1)https://github.com/aimacode/aima-python/issues
Pull requests5 (5)https://github.com/aimacode/aima-python/pulls
Actionshttps://github.com/aimacode/aima-python/actions
Projectshttps://github.com/aimacode/aima-python/projects
Wikihttps://github.com/aimacode/aima-python/wiki
Security and qualityhttps://github.com/aimacode/aima-python/security
Insightshttps://github.com/aimacode/aima-python/insights
https://github.com/aimacode/aima-python
New issuehttps://github.com/login?return_to=https://github.com/aimacode/aima-python/issues/830
New issuehttps://github.com/login?return_to=https://github.com/aimacode/aima-python/issues/830
Invalid call to function [extra arguments] in learning.pyhttps://github.com/aimacode/aima-python/issues/830#top
https://github.com/goswami-rahul
goswami-rahulhttps://github.com/goswami-rahul
on Mar 9, 2018https://github.com/aimacode/aima-python/issues/830#issue-303846355
https://github.com/ad71
ad71https://github.com/ad71
on Mar 9, 2018https://github.com/aimacode/aima-python/issues/830#issuecomment-371836401
#566https://github.com/aimacode/aima-python/issues/566
#735https://github.com/aimacode/aima-python/issues/735
@MrDupinhttps://github.com/MrDupin
https://github.com/antmarakis
antmarakishttps://github.com/antmarakis
on Mar 9, 2018https://github.com/aimacode/aima-python/issues/830#issuecomment-371921105
@ad71https://github.com/ad71
this issuehttps://github.com/aimacode/aima-pseudocode/issues/55
norvighttps://github.com/norvig
on Mar 10, 2018https://github.com/aimacode/aima-python/issues/830#event-1514535663
styling and several bug fixes in learning.py (#831)https://github.com/aimacode/aima-python/commit/4cc35091faad57df2bc85e13ae2930f784f59007
#831https://github.com/aimacode/aima-python/pull/831
4cc3509https://github.com/aimacode/aima-python/commit/4cc35091faad57df2bc85e13ae2930f784f59007
antmarakishttps://github.com/antmarakis
completedhttps://github.com/aimacode/aima-python/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Mar 25, 2018https://github.com/aimacode/aima-python/issues/830#event-1539796668
PandaWhoCodeshttps://github.com/PandaWhoCodes
on Jun 9, 2019https://github.com/aimacode/aima-python/issues/830#event-2399581695
update (#1)https://github.com/pyskills/aima-python/commit/7cbae022eb2d5aa15554fe7c956d6a3ceb5d5357
#1https://github.com/pyskills/aima-python/pull/1
7cbae02https://github.com/pyskills/aima-python/commit/7cbae022eb2d5aa15554fe7c956d6a3ceb5d5357
dj5x5https://github.com/dj5x5
on Jul 17, 2025https://github.com/aimacode/aima-python/issues/830#event-18689101783
styling and several bug fixes in learning.py (aimacode#831)https://github.com/dj5x5/aima-python/commit/168df6781d7146efd28e3e325fc426db0cf603aa
aimacode#831https://github.com/aimacode/aima-python/pull/831
168df67https://github.com/dj5x5/aima-python/commit/168df6781d7146efd28e3e325fc426db0cf603aa
Sign up for freehttps://github.com/signup?return_to=https://github.com/aimacode/aima-python/issues/830
Sign in to commenthttps://github.com/login?return_to=https://github.com/aimacode/aima-python/issues/830
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.