Integration#90
Merged
Merged
Conversation
… Bee issue #6) For multi-objective runs the per-objective 1D plots were each drawn at that objective's own expected minimum when no selectedPoint was supplied, so the quality and cost rows described different factor settings. Default the selected_point to the Pareto front's compromise point (front_x_data[best_idx]) when the caller sends none, so both objectives' 1D plots are evaluated at the same point. emit_pareto_data now returns that optimal point for the caller to reuse. An explicit selectedPoint (a clicked point) still takes precedence.
… (Brownie Bee issue #10) get_Brownie_Bee_1d_plot computes the histogram mean/std via model.predict() on the raw selected point, but the GP is fitted in transformed space. For all-numeric spaces the raw point lands outside the normalized domain, so the prediction collapses to the prior mean — the histogram stayed constant across every Pareto point (while the per-factor plots, which transform x_eval via dependence(), moved). The _get_brownie_bee_1d_plot_safe workaround only transformed for categorical points, leaving numeric spaces (e.g. cfps-multi) broken. Recompute the histogram in emit_json_single_plots via model.predict(space.transform([selected_point])); the default (selected_point is None) path still reuses the expected_minimum-derived value, which was already correct. Adds a numeric-only regression test.
front_x_data[best_idx].tolist() returns Any (numpy is untyped), but the function is declared -> list | None. Cast the return so `mypy optimizerapi` (the CI type-check step) passes. Pre-existing since d204b2d; surfaced now because it blocks the build.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix more issues from the integration test