René's URL Explorer Experiment


Title: compute_pareto_efficiency crashes with "F" returns in multi-objective CBO · Issue #366 · deephyper/deephyper · GitHub

Open Graph Title: compute_pareto_efficiency crashes with "F" returns in multi-objective CBO · Issue #366 · deephyper/deephyper

X Title: compute_pareto_efficiency crashes with "F" returns in multi-objective CBO · Issue #366 · deephyper/deephyper

Description: Summary When a run function returns "F" (the documented failure convention) in multi-objective CBO, compute_pareto_efficiency() crashes with ValueError: array must not contain infs or NaNs. The failure filter only checks the first object...

Open Graph Description: Summary When a run function returns "F" (the documented failure convention) in multi-objective CBO, compute_pareto_efficiency() crashes with ValueError: array must not contain infs or NaNs. The fai...

X Description: Summary When a run function returns "F" (the documented failure convention) in multi-objective CBO, compute_pareto_efficiency() crashes with ValueError: array must not contain infs or NaN...

Opengraph URL: https://github.com/deephyper/deephyper/issues/366

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"compute_pareto_efficiency crashes with \"F\" returns in multi-objective CBO","articleBody":"## Summary\n\nWhen a run function returns `\"F\"` (the documented failure convention) in multi-objective CBO, `compute_pareto_efficiency()` crashes with `ValueError: array must not contain infs or NaNs`. The failure filter only checks the first objective column, so `\"F\"` values in other columns slip through as NaN.\n\n## Reproducer\n\n```python\nfrom deephyper.evaluator import Evaluator, RunningJob\nfrom deephyper.hpo import CBO, HpProblem\n\nproblem = HpProblem()\nproblem.add_hyperparameter((0.0, 1.0), \"x\")\n\ndef run(job: RunningJob):\n    x = job.parameters[\"x\"]\n    if x \u003c 0.5:\n        return \"F\"  # fail half the configs\n    return {\"objective\": (x, -x)}\n\nevaluator = Evaluator.create(run, method=\"thread\")\nsearch = CBO(problem, surrogate_model=\"ET\", acq_func=\"UCB\",\n             moo_scalarization_strategy=\"Chebyshev\")\nresults = search.search(evaluator, max_evals=10)  # crashes\n```\n\n## Traceback\n\n```\nFile \"deephyper/hpo/_search.py\", line 234, in compute_pareto_efficiency\n    mask_pareto_front = non_dominated_set(objectives)\nFile \"deephyper/skopt/moo/_pf.py\", line 103, in non_dominated_set\n    y = np.asarray_chkfinite(y)\nValueError: array must not contain infs or NaNs\n```\n\n## Root Cause\n\nIn `_search.py:232`, `compute_pareto_efficiency` calls:\n\n```python\n_, mask_no_failures = get_mask_of_rows_without_failures(df, objective_columns[0])\n```\n\nThis only checks `objective_columns[0]` for `\"F\"` strings. In multi-objective mode, when `\"F\"` is returned, DeepHyper stores the failure marker in each objective column. However, pandas may infer mixed dtypes per column — if `objective_0` happens to be numeric (e.g., when some evals succeed), `get_mask_of_rows_without_failures` takes the `else` branch (`isinstance(x, float)`) and correctly filters failures. But if `objective_1` or `objective_2` columns contain `\"F\"` strings that weren't checked, the subsequent `.astype(float)` on line 233 silently converts them to NaN:\n\n```python\nobjectives = -df.loc[mask_no_failures, objective_columns].values.astype(float)\n```\n\nThen `non_dominated_set()` calls `np.asarray_chkfinite(y)`, which rejects NaN.\n\nThe issue is that `get_mask_of_rows_without_failures` is called on **only the first objective column**, not all of them.\n\n## Suggested Fix\n\nCheck all objective columns and combine the masks:\n\n```python\n# _search.py, compute_pareto_efficiency(), around line 232\n# Before (buggy):\n_, mask_no_failures = get_mask_of_rows_without_failures(df, objective_columns[0])\n\n# After (fixed):\nmask_no_failures = np.ones(len(df), dtype=bool)\nfor col in objective_columns:\n    _, col_mask = get_mask_of_rows_without_failures(df, col)\n    mask_no_failures &= col_mask\n```\n\n## Environment\n\n- DeepHyper 0.13.2 (latest on PyPI)\n- Python 3.11\n- Multi-objective CBO with Chebyshev scalarization\n\n## Workaround\n\nReturn a numeric penalty tuple instead of `\"F\"`:\n\n```python\nreturn {\"objective\": (-1.0, -1.0, -1.0)}  # instead of return \"F\"\n```","author":{"url":"https://github.com/pbalapra","@type":"Person","name":"pbalapra"},"datePublished":"2026-04-03T20:39:59Z","url":"https://github.com/deephyper/deephyper/issues/366"}

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:8ff4368b-1e19-c847-f7a4-b17baa389c1d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA19A:2FFC62:FCE477:160F285:6B0446A7
html-safe-nonce661c87f14ee2fb6096e81682210f5b5e072d1975eacf40933563a8602536079c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMTlBOjJGRkM2MjpGQ0U0Nzc6MTYwRjI4NTo2QjA0NDZBNyIsInZpc2l0b3JfaWQiOiI4MTU0Njk2NjI2NzkyMDU2NDg3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacca1c000d56676cbbf2a998d3fc2dc26bce5a06537514f30126adab483b1cf031
hovercard-subject-tagissue:4202124686
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/deephyper/deephyper/366/issue_layout
twitter:imagehttps://opengraph.githubassets.com/4f97ebf4a7c83250c52ceb2b7fe9f4a4d6771559aa132a731b65b3300e5c9101/deephyper/deephyper/issues/366
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4f97ebf4a7c83250c52ceb2b7fe9f4a4d6771559aa132a731b65b3300e5c9101/deephyper/deephyper/issues/366
og:image:altSummary When a run function returns "F" (the documented failure convention) in multi-objective CBO, compute_pareto_efficiency() crashes with ValueError: array must not contain infs or NaNs. The fai...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamepbalapra
hostnamegithub.com
expected-hostnamegithub.com
Noned4495c3631faba668036f176d1f5946901c5172efd73a6edb984029e7d4f8e46
turbo-cache-controlno-preview
go-importgithub.com/deephyper/deephyper git https://github.com/deephyper/deephyper.git
octolytics-dimension-user_id44810957
octolytics-dimension-user_logindeephyper
octolytics-dimension-repository_id156403341
octolytics-dimension-repository_nwodeephyper/deephyper
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id156403341
octolytics-dimension-repository_network_root_nwodeephyper/deephyper
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
release9ac4337fb7c6a5846cdfdb1a04f154d3c33ebc77
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/deephyper/deephyper/issues/366#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeephyper%2Fdeephyper%2Fissues%2F366
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%2Fdeephyper%2Fdeephyper%2Fissues%2F366
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=deephyper%2Fdeephyper
Reloadhttps://github.com/deephyper/deephyper/issues/366
Reloadhttps://github.com/deephyper/deephyper/issues/366
Reloadhttps://github.com/deephyper/deephyper/issues/366
deephyperhttps://github.com/deephyper
deephyperhttps://github.com/deephyper/deephyper
Codehttps://github.com/deephyper/deephyper
Issues16 (16)https://github.com/deephyper/deephyper/issues
Pull requests3 (3)https://github.com/deephyper/deephyper/pulls
Discussionshttps://github.com/deephyper/deephyper/discussions
Actionshttps://github.com/deephyper/deephyper/actions
Projectshttps://github.com/deephyper/deephyper/projects
Wikihttps://github.com/deephyper/deephyper/wiki
Security and qualityhttps://github.com/deephyper/deephyper/security
Insightshttps://github.com/deephyper/deephyper/insights
https://github.com/deephyper/deephyper
New issuehttps://github.com/login?return_to=https://github.com/deephyper/deephyper/issues/366
New issuehttps://github.com/login?return_to=https://github.com/deephyper/deephyper/issues/366
compute_pareto_efficiency crashes with "F" returns in multi-objective CBOhttps://github.com/deephyper/deephyper/issues/366#top
https://github.com/pbalapra
pbalaprahttps://github.com/pbalapra
on Apr 3, 2026https://github.com/deephyper/deephyper/issues/366#issue-4202124686
https://github.com/Deathn0t
Deathn0thttps://github.com/Deathn0t
on Apr 7, 2026https://github.com/deephyper/deephyper/issues/366#issuecomment-4197173634
Sign up for freehttps://github.com/signup?return_to=https://github.com/deephyper/deephyper/issues/366
Sign in to commenthttps://github.com/login?return_to=https://github.com/deephyper/deephyper/issues/366
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

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.