Skip to content

Conversation

@flinder
Copy link
Contributor

@flinder flinder commented Jan 30, 2026

Summary:
Log the completion score after each trial iteration, not just the initial trial.
This provides better visibility into the tuning progress and helps users monitor
how the hyperparameter search is progressing.

Differential Revision: D91884586

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jan 30, 2026
@meta-codesync
Copy link

meta-codesync bot commented Jan 30, 2026

@flinder has exported this pull request. If you are a Meta employee, you can view the originating Diff in D91884586.

flinder added a commit to flinder/MCGrad-1 that referenced this pull request Jan 30, 2026
Summary:
Pull Request resolved: facebookincubator#199

Log the completion score after each trial iteration, not just the initial trial.
This provides better visibility into the tuning progress and helps users monitor
how the hyperparameter search is progressing.

Differential Revision: D91884586
@meta-codesync
Copy link

meta-codesync bot commented Jan 30, 2026

@flinder has exported this pull request. If you are a Meta employee, you can view the originating Diff in D91884586.

flinder added a commit to flinder/MCGrad-1 that referenced this pull request Jan 30, 2026
Summary:
Pull Request resolved: facebookincubator#199

Log the completion score after each trial iteration, not just the initial trial.
This provides better visibility into the tuning progress and helps users monitor
how the hyperparameter search is progressing.

Differential Revision: D91884586
@flinder flinder force-pushed the export-D91884586 branch 2 times, most recently from 0308feb to dc2db63 Compare January 30, 2026 12:29
Summary:
Add a `use_model_predictions` parameter to `tune_mcgrad_params` with `False` as
the default. When False, returns the actual observed best trial parameters.
When True, uses the Bayesian surrogate model's predicted best parameters.

The default is False because with few tuning trials, the surrogate model may
not be well-calibrated and could return suboptimal parameters that don't match
the actual best observed trial. Users who want the model-predicted best can
set this to True.

Differential Revision: D91889101
Summary:
Use log_loss from sklearn instead of normalized_entropy as the tuning objective.
This matches MCGrad's early stopping metric, providing directly comparable outputs
between tuning and model training. The log_loss metric is a standard choice for
probabilistic predictions and is widely understood.

Reviewed By: Lorenzo-Perini

Differential Revision: D91884587
Summary:
Suppress _utils.logger alongside methods.logger during tuning trials to prevent
"Unshrink is not close to 1" warnings from appearing. These warnings are expected
during hyperparameter exploration but can be noisy for users running tuning jobs.

Reviewed By: Lorenzo-Perini

Differential Revision: D91884585
Summary:
Log the completion score after each trial iteration, not just the initial trial.
This provides better visibility into the tuning progress and helps users monitor
how the hyperparameter search is progressing.

Reviewed By: Lorenzo-Perini

Differential Revision: D91884586
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot. fb-exported meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant