Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update flaml #924

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def test_mock_optimization_loop_no_defaults(
def test_flaml_optimization_loop(mock_env_no_noise: MockEnv, flaml_opt: MlosCoreOptimizer) -> None:
"""Toy optimization loop with mock environment and FLAML optimizer."""
(score, tunables) = _optimize(mock_env_no_noise, flaml_opt)
assert score == pytest.approx(60.15, 0.01)
assert score == pytest.approx(60.00, 0.01)
assert tunables.get_param_values() == {
"vmSize": "Standard_B2s",
"idle": "halt",
Expand Down
2 changes: 1 addition & 1 deletion mlos_core/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def _get_long_desc_from_readme(base_url: str) -> dict:

extra_requires: dict[str, list[str]] = { # pylint: disable=consider-using-namedtuple-or-dataclass
"flaml": [
"flaml<2.2.0", # FIXME: temporarily avoid changes in new FLAML package (#839).
"flaml>=2.3.3",
"flaml[blendsearch]",
],
# NOTE: Major refactoring on SMAC and ConfigSpace v1.0 starting from v2.2
Expand Down
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ filterwarnings =
ignore:.*(get_hyperparam|get_dictionary|parents_of|to_vector|(list\(.*values\(\)\))).*:DeprecationWarning:smac:0
ignore:.*(Please leave at default or explicitly set .size=None).*:DeprecationWarning:smac:0
ignore:.*(declarative_base.*function is now available as sqlalchemy.orm.declarative_base):DeprecationWarning:optuna:0
ignore:.*(IntUniformDistribution.* is deprecated and internally converted to IntDistribution):FutureWarning:optuna:0
ignore:.*(flaml.automl is not available. Please install flaml\[automl\] to enable AutoML functionalities.):UserWarning:flaml:0
ignore:.*(Trying to register a configuration that was not previously suggested).*:UserWarning:.*llamatune.*:0
ignore:.*(DISPLAY environment variable is set).*:UserWarning:.*conftest.*:0
ignore:.*(coroutine 'sleep' was never awaited).*:RuntimeWarning:.*event_loop_context_test.*:0
Expand Down
Loading