René's URL Explorer Experiment


Title: uncertainty query for 2d classifier output · Issue #185 · modAL-python/modAL · GitHub

Open Graph Title: uncertainty query for 2d classifier output · Issue #185 · modAL-python/modAL

X Title: uncertainty query for 2d classifier output · Issue #185 · modAL-python/modAL

Description: Hello, Thank you a lot for developing modAL and making it available ! 🙏 Though recently, I encountered an error and wonder if the proposed solution fits. While running this line learner.query(self.X_pool, n_instances=n) This error occurs...

Open Graph Description: Hello, Thank you a lot for developing modAL and making it available ! 🙏 Though recently, I encountered an error and wonder if the proposed solution fits. While running this line learner.query(self....

X Description: Hello, Thank you a lot for developing modAL and making it available ! 🙏 Though recently, I encountered an error and wonder if the proposed solution fits. While running this line learner.query(self....

Opengraph URL: https://github.com/modAL-python/modAL/issues/185

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"uncertainty query for 2d classifier output","articleBody":"Hello,\r\n\r\nThank you a lot for developing modAL and making it available ! :pray: \r\n\r\nThough recently, I encountered an error and wonder if the proposed solution fits.\r\n\r\nWhile running this line\r\n`learner.query(self.X_pool, n_instances=n)`\r\n\r\nThis error occurs\r\n\r\n\u003e \"modAL/models/base.py\", line 189, in query\r\n\u003e     return query_result, retrieve_rows(X_pool, query_result)\r\n\u003e                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n\u003e \"modAL/utils/data.py\", line 122, in retrieve_rows\r\n\u003e     raise TypeError(\"%s datatype is not supported\" % type(X))\r\n\u003e TypeError: \u003cclass 'numpy.ndarray'\u003e datatype is not supported\r\n\u003e \r\n\r\nHere is some context: \r\n- n = 20\r\n- X_pool.shape = (26, 384)\r\n- there are 35 classes in learner with KNeighborClassifier, it's multi-label setting.\r\n\r\nSo `classifier.predict_proba` returns 2D output for each class: list of 35 ndarrays of shape (26,2), which is not taken into account  in `classifier_uncertainty` function from `ModAL/uncertainty.py`\r\n\r\nIn case of `NotFittedError` the function will return an array (26, 1), while if the model is fitted, it returns (35,2) instead of (26, 2)\r\n\r\nIt seems that adding a small piece of code should help:\r\n\r\n```\r\nclasswise_uncertainty = np.array(classwise_uncertainty)\r\nif len(classwise_uncertainty.shape)\u003e2: # or if classifier.estimator.outputs_2d_:\r\n    classwise_uncertainty = classwise_uncertainty.max(axis=0)\r\n\r\n```\r\nMaybe there is a better solution for using multi-label classification ?\r\n\r\nThank you in advance :raised_hands: ","author":{"url":"https://github.com/liednik","@type":"Person","name":"liednik"},"datePublished":"2024-03-13T14:41:14.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/185/modAL/issues/185"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:5d8a44d8-65b1-aa0e-e4c8-95f3f9497417
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9C02:12C6F8:2AF58D:3A5A5A:698F258F
html-safe-noncef0180e0b7a37ffc07c512267613350b4283f2c6adaa7ff226e57cfccae2913c9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QzAyOjEyQzZGODoyQUY1OEQ6M0E1QTVBOjY5OEYyNThGIiwidmlzaXRvcl9pZCI6IjM0ODA5MzY0ODUzOTMyMTI4MTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac37a58c60747e2e93e72dedf6b024fa13cc1cda6ac84b5b6bc591daeb788e2b92
hovercard-subject-tagissue:2184185334
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/modAL-python/modAL/185/issue_layout
twitter:imagehttps://opengraph.githubassets.com/6dad1ac0c69516430e3b3c826b80279f4774551c39ce1158bd2bb2b168010825/modAL-python/modAL/issues/185
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/6dad1ac0c69516430e3b3c826b80279f4774551c39ce1158bd2bb2b168010825/modAL-python/modAL/issues/185
og:image:altHello, Thank you a lot for developing modAL and making it available ! 🙏 Though recently, I encountered an error and wonder if the proposed solution fits. While running this line learner.query(self....
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameliednik
hostnamegithub.com
expected-hostnamegithub.com
None6102991c714c1a6a27d05fb4f96ea6ca87a6750b4f093b95cc57ed1b84b145a1
turbo-cache-controlno-preview
go-importgithub.com/modAL-python/modAL git https://github.com/modAL-python/modAL.git
octolytics-dimension-user_id42179679
octolytics-dimension-user_loginmodAL-python
octolytics-dimension-repository_id110697473
octolytics-dimension-repository_nwomodAL-python/modAL
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id110697473
octolytics-dimension-repository_network_root_nwomodAL-python/modAL
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
released52a41ad9b9ffb9b63a1b4a600a6054be8b70b36
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/modAL-python/modAL/issues/185#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FmodAL-python%2FmodAL%2Fissues%2F185
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FmodAL-python%2FmodAL%2Fissues%2F185
Sign up https://patch-diff.githubusercontent.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=modAL-python%2FmodAL
Reloadhttps://patch-diff.githubusercontent.com/modAL-python/modAL/issues/185
Reloadhttps://patch-diff.githubusercontent.com/modAL-python/modAL/issues/185
Reloadhttps://patch-diff.githubusercontent.com/modAL-python/modAL/issues/185
modAL-python https://patch-diff.githubusercontent.com/modAL-python
modALhttps://patch-diff.githubusercontent.com/modAL-python/modAL
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2FmodAL-python%2FmodAL
Fork 327 https://patch-diff.githubusercontent.com/login?return_to=%2FmodAL-python%2FmodAL
Star 2.3k https://patch-diff.githubusercontent.com/login?return_to=%2FmodAL-python%2FmodAL
Code https://patch-diff.githubusercontent.com/modAL-python/modAL
Issues 93 https://patch-diff.githubusercontent.com/modAL-python/modAL/issues
Pull requests 12 https://patch-diff.githubusercontent.com/modAL-python/modAL/pulls
Actions https://patch-diff.githubusercontent.com/modAL-python/modAL/actions
Projects 0 https://patch-diff.githubusercontent.com/modAL-python/modAL/projects
Wiki https://patch-diff.githubusercontent.com/modAL-python/modAL/wiki
Security 0 https://patch-diff.githubusercontent.com/modAL-python/modAL/security
Insights https://patch-diff.githubusercontent.com/modAL-python/modAL/pulse
Code https://patch-diff.githubusercontent.com/modAL-python/modAL
Issues https://patch-diff.githubusercontent.com/modAL-python/modAL/issues
Pull requests https://patch-diff.githubusercontent.com/modAL-python/modAL/pulls
Actions https://patch-diff.githubusercontent.com/modAL-python/modAL/actions
Projects https://patch-diff.githubusercontent.com/modAL-python/modAL/projects
Wiki https://patch-diff.githubusercontent.com/modAL-python/modAL/wiki
Security https://patch-diff.githubusercontent.com/modAL-python/modAL/security
Insights https://patch-diff.githubusercontent.com/modAL-python/modAL/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/modAL-python/modAL/issues/185
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/modAL-python/modAL/issues/185
uncertainty query for 2d classifier outputhttps://patch-diff.githubusercontent.com/modAL-python/modAL/issues/185#top
https://github.com/liednik
https://github.com/liednik
liednikhttps://github.com/liednik
on Mar 13, 2024https://github.com/modAL-python/modAL/issues/185#issue-2184185334
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.