Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
7332a6c
Open source the internal Fabric AutoML fork
thinkall May 9, 2026
4f5394d
Merge branch 'main' into lijiang/open-source-internal-merge
thinkall May 10, 2026
47ddd60
Remove .pipelines/ Azure DevOps pipeline definitions
thinkall May 10, 2026
e57b831
Remove conda-build/ and lowcode/ internal-only artifacts
thinkall May 10, 2026
89a58f0
Restore test/pipeline_tuning_example/ from ms/main
thinkall May 10, 2026
c83805e
Drop AzDO/internal-process files and revert website/docs to ms/main
thinkall May 10, 2026
bb9eb92
Remove flaml/fabric/fanova/fanova.pyx (dead code)
thinkall May 10, 2026
35e9f75
ci: ignore test/spark/test_internal_mlflow.py in GHA workflow
thinkall May 10, 2026
383fd94
ci: split tests into spark/notspark variants and aggregate coverage
thinkall May 10, 2026
b349e17
test: consolidate duplicated Spark session setup into shared helper
thinkall May 10, 2026
83ba4e4
ci+test: fix notspark failures from internal merge
thinkall May 10, 2026
5a9ff9b
ci: pin scikit-learn<1.8 to fix autofe Pipeline NotFittedError
thinkall May 10, 2026
41e211c
ci: broaden pandas<3 and scikit-learn<1.8 pins to Windows
thinkall May 10, 2026
16443d0
fix: support pandas 3.0 and scikit-learn 1.8
thinkall May 11, 2026
7813ef0
ci: upgrade codecov-action to v5 to fix 429 rate-limit on coverage up…
thinkall May 11, 2026
fcb411a
ci: enable Codecov OIDC for tokenless authenticated coverage uploads
thinkall May 11, 2026
7dff21c
ci: add codecov.yml to enable PR comments and coverage status checks
thinkall May 11, 2026
17042b6
ci: simplify codecov.yml to mirror Codecov defaults
thinkall May 11, 2026
66f50c0
ci: upgrade codecov-action v5 -> v6 and add upload name
thinkall May 11, 2026
5915a62
ci: trigger fresh run to test CODECOV_TOKEN
thinkall May 13, 2026
23ce9c0
Merge branch 'main' into lijiang/open-source-internal-merge
thinkall May 13, 2026
552dc70
ci: use explicit CODECOV_TOKEN instead of OIDC
thinkall May 13, 2026
c4202e2
ci: add MishaKav/pytest-coverage-comment for PR comments
thinkall May 13, 2026
1265d1c
ci: parallelize notspark tests with pytest-xdist
thinkall May 13, 2026
2bbc298
test+ci: fix xdist regressions from notspark parallelization
thinkall May 13, 2026
0aacf25
ci: feed coverage.xml directly to MishaKav (avoid bad-format error)
thinkall May 13, 2026
ed4c8a7
ci: remove duplicate yaml keys in MishaKav step
thinkall May 13, 2026
cc5e50f
Merge branch 'main' into lijiang/open-source-internal-merge
thinkall May 14, 2026
3d0b5b3
Merge branch 'main' into lijiang/open-source-internal-merge
thinkall May 23, 2026
c41bba8
Merged PR 2103088: AutoML data hardening + irregular ts_forecast + CI…
thinkall May 22, 2026
84b32a3
Fix import-time Spark startup in flaml.automl.spark (PR 2116683)
thinkall May 23, 2026
c591451
fix: defer pd type-annotations in _nat_aware_int_series to keep impor…
thinkall May 23, 2026
6a4ec9b
test: pin featurization=off in test_training_log to fix xgboost flake
thinkall May 23, 2026
980c0a7
test: harden test_each_estimator booster comparison
thinkall May 23, 2026
b6167e5
Relax xgboost equivalence tolerance in test_each_estimator
thinkall May 23, 2026
e3d3d3c
Isolate MLflow per worker and guard datetime auto-conversion
thinkall May 23, 2026
8fba35a
Let MLflow bootstrap its own tracking dir to keep Default exp
thinkall May 23, 2026
b95a5ea
Force MLflow URI override in xdist workers to prevent yaml race
thinkall May 23, 2026
e32e853
Make mlflow FileStore tolerant of corrupt meta.yaml in tests
thinkall May 23, 2026
435b770
ci: bump notspark test step timeout to 180 minutes
thinkall May 23, 2026
b0311bf
chore: reconcile public main with the Fabric implementation
thinkall Sep 15, 2026
0b42745
fix: honor MLflow model-logging opt-outs for pipelines
thinkall Sep 15, 2026
e0d7f74
fix: reconcile Fabric opt-ins and ensemble CI behavior
thinkall Sep 15, 2026
3c4ee30
fix: address consolidation review feedback and public updates
thinkall Sep 16, 2026
a2b4b4b
chore: merge the public 2.7.0 version update
thinkall Sep 16, 2026
d144ae6
fix: reconcile upstream forecast horizons with irregular series
thinkall Sep 18, 2026
9e3a59c
test: compare matching horizons in the forecast gap regression
thinkall Sep 18, 2026
d972486
Merge branch 'main' into lijiang/open-source-internal-merge
thinkall Sep 22, 2026
0e3c5d2
fix: sync new internal fANOVA and forecasting improvements
thinkall Sep 28, 2026
44cd4cd
chore: harden the public and Fabric consolidation after review
thinkall Oct 17, 2026
0b4290c
fix: keep Arrow compatible with the NumPy 1.x test profiles
thinkall Oct 17, 2026
2a72e22
fix: build XGBoost for the native ARM64 Python 3.11 CI target
thinkall Oct 18, 2026
c1d4f8b
fix: select and verify the ARM64 XGBoost native build explicitly
thinkall Oct 18, 2026
484d809
fix: use the installed Visual Studio 2026 ARM64 generator
thinkall Oct 18, 2026
54473f7
fix: use the dependency-minimal XGBoost native smoke API
thinkall Oct 18, 2026
0183758
chore: reconcile current public main and review merge readiness
thinkall Oct 31, 2026
398c8f6
chore: sync the public 2.8 release and internal regression updates
thinkall Nov 10, 2026
d7be038
ci: run Spark tests on isolated container workers
thinkall Nov 23, 2026
0d18e99
fix: distribute custom Spark code to every executor
thinkall Nov 23, 2026
baeac30
ci: pin the formatter runtime to supported Python 3.13
thinkall Nov 23, 2026
e6552c8
test: align CI contracts with container Spark jobs
thinkall Nov 23, 2026
47ba012
test: materialize the Spark sampling fixture
thinkall Nov 23, 2026
1fc558b
chore: sync public main and harden Fabric consolidation contracts
thinkall Nov 25, 2026
d5829f2
fix: preserve panel time indexes and use headless CI plotting
thinkall Nov 25, 2026
ff89792
Maintenance: Fix consolidation lifecycle, forecast and Spark review f…
thinkall Nov 25, 2026
b0e62ec
Maintenance: Fix optional autolog restoration and CI contract assertions
thinkall Nov 25, 2026
630f30c
Maintenance: Bound the logistic-regression resource smoke test
thinkall Nov 25, 2026
e01727f
Maintenance: Fix trial lineage, forecast replay and distributed code …
thinkall Nov 26, 2026
cf58130
Maintenance: Repair OpenML fallback on Windows ARM
thinkall Nov 26, 2026
593a234
Maintenance: Correct final review lifecycle and forecast contracts
thinkall Nov 27, 2026
1c0a78c
Maintenance: Close reviewed ownership and data-integrity gaps
thinkall Nov 27, 2026
94e8b0c
Maintenance: Preserve accepted trial provenance and committed code re…
thinkall Nov 27, 2026
a2e0812
Maintenance: Match legacy Ray reporting contracts in compatibility ch…
thinkall Nov 27, 2026
6aab2d1
Maintenance: preserve trial provenance and lossless forecast contracts
thinkall Nov 27, 2026
539d26f
chore: remove generated review outputs from PR #1545
thinkall Nov 27, 2026
e6e4926
Maintenance: harden transactional tracking and forecast boundaries
thinkall Nov 27, 2026
c72b523
Maintenance: preserve worker identity and complete failed trial cleanup
thinkall Nov 27, 2026
9d9629a
chore: harden reviewed migration runtime contracts
thinkall Nov 27, 2026
f87a44c
chore: close reviewed trial and tracking failure paths
thinkall Nov 28, 2026
d6dd284
fix: resolve reviewed optimizer and MLflow edge cases
thinkall Nov 28, 2026
92d4f83
fix: align callback and analysis fixtures with result contracts
thinkall Nov 28, 2026
f958965
chore: retire internal examples and document public plotting setup
thinkall Nov 30, 2026
155c92e
fix: address Spark consistency and PR review follow-ups
thinkall Nov 30, 2026
7323c54
fix: allow overlapping Spark ANSI scopes
thinkall Nov 30, 2026
8e2c97a
fix: make notebook CI independent of OpenML availability
thinkall Nov 30, 2026
90c3cc2
chore: keep PR coverage comments within GitHub limits
thinkall Nov 30, 2026
3ca0a59
ci: use offline fixtures for Spark examples and retain failure diagno…
thinkall Nov 30, 2026
d794c25
test: propagate OpenML errors from opt-in Spark notebook checks
thinkall Nov 30, 2026
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
11 changes: 11 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@
branch = True
source =
flaml
concurrency = multiprocessing
parallel = true
Comment thread
thinkall marked this conversation as resolved.
Resolved
omit =
*/test/*
*/flaml/autogen/*
*/flaml/tune/spark/mylearner.py
*/flaml/tune/spark/_flaml_custom_*.py
*/flaml/tune/spark/_test_*.py
*/_flaml_code/*.py

[paths]
source =
flaml
/workspace/flaml
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Licensed under the MIT License. See LICENSE file in the project root for license information.
#-------------------------------------------------------------------------------------------------------------

FROM mcr.microsoft.com/vscode/devcontainers/python:0-3.9
FROM mcr.microsoft.com/devcontainers/python:3.10

#
# Update the OS and maybe install packages
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ jobs:
- name: Build
shell: pwsh
run: |
pip install twine wheel "setuptools<82"
python setup.py sdist bdist_wheel
pip install twine build
python -m build
- name: Publish to PyPI
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/openai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ jobs:
AZURE_OPENAI_API_BASE: ${{ secrets.AZURE_OPENAI_API_BASE }}
OAI_CONFIG_LIST: ${{ secrets.OAI_CONFIG_LIST }}
run: |
coverage run -a -m pytest test/autogen
coverage run -m pytest test/autogen
coverage combine
coverage xml
- name: Coverage and check notebook outputs
if: matrix.python-version != '3.9'
Expand All @@ -69,7 +70,8 @@ jobs:
OAI_CONFIG_LIST: ${{ secrets.OAI_CONFIG_LIST }}
run: |
pip install nbconvert nbformat ipykernel
coverage run -a -m pytest test/autogen/test_notebook.py
coverage run -m pytest test/autogen/test_notebook.py
coverage combine
coverage xml
cat "$(pwd)/test/autogen/executed_openai_notebook_output.txt"
- name: Upload coverage to Codecov
Expand Down
492 changes: 443 additions & 49 deletions .github/workflows/python-package.yml

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,10 @@ test/nlp/testtmp.py
test/nlp/testtmpfl.py
output/
flaml/tune/spark/mylearner.py
flaml/tune/spark/.flaml-code-state/
*.pkl

data/
benchmark/pmlb/csv_datasets
benchmark/*.csv

checkpoints/
Expand All @@ -183,6 +183,7 @@ patch.diff
# Test things
notebook/lightning_logs/
lightning_logs/

flaml/autogen/extensions/tmp/
test/autogen/my_tmp/
catboost_*
Expand Down
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ repos:
- mdformat-gfm
- mdformat-black
- mdformat_frontmatter
exclude: NOTICE.md

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.261
Expand Down
6,254 changes: 6,010 additions & 244 deletions NOTICE.md

Large diffs are not rendered by default.

30 changes: 30 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
## Codecov configuration for microsoft/FLAML.
##
## Schema reference: https://docs.codecov.com/docs/codecovyml-reference

coverage:
precision: 2
round: down
range: "60...95"

status:
project:
default:
target: auto
threshold: 1%
patch:
default:
target: 70%
informational: true

comment:
layout: "header, diff, flags, components, files, footer"
require_changes: false

ignore:
- "test/**/*"
- "notebook/**/*"
- "website/**/*"
- "setup.py"
- "flaml/version.py"
- "flaml/autogen/**/*"
11 changes: 11 additions & 0 deletions flaml/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,21 @@
from flaml.tune.searcher import CFO, FLOW2, BlendSearch, BlendSearchTuner, RandomSearch
from flaml.version import __version__

try:
from flaml.fabric.telemetry import log_telemetry

is_log_telemetry = True
except ImportError:
is_log_telemetry = False


# Set the root logger.
logger = logging.getLogger(__name__)
if logger.level == logging.NOTSET:
logger.setLevel(logging.INFO)

# Log telemetry.
log_telemetry(activity_name="flaml") if is_log_telemetry else None

if not has_automl:
warnings.warn("flaml.automl is not available. Please install flaml[automl] to enable AutoML functionalities.")
21 changes: 18 additions & 3 deletions flaml/automl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,22 @@
try:
from flaml.automl.automl import AutoML, size
from flaml.automl.state import AutoMLState, SearchState

__all__ = ["AutoML", "AutoMLState", "SearchState", "logger_formatter", "size"]
except ImportError:
__all__ = ["logger_formatter"]
__all__ = ["logger_formatter", "register_automl_pipeline"]
else:
__all__ = ["AutoML", "AutoMLState", "SearchState", "logger_formatter", "size", "register_automl_pipeline"]


def __getattr__(name):
if name == "Featurization":
from flaml.fabric.autofe import Featurization

return Featurization
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")


def register_automl_pipeline(automl, model_name=None, signature=None, artifact_path="model"):
"""Register an AutoML pipeline; MLflow is required only when this function is called."""
from flaml.fabric.mlflow import register_automl_pipeline as register_pipeline

return register_pipeline(automl, model_name, signature, artifact_path)
26 changes: 26 additions & 0 deletions flaml/automl/_lightgbm_compat.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
from inspect import signature


def patch_lightgbm_sklearn_validation():
"""Adapt LightGBM <4.6 validation aliases to scikit-learn 1.8+."""
try:
import lightgbm.sklearn as lightgbm_sklearn
except ImportError:
return

for name in ("_LGBMCheckXY", "_LGBMCheckArray"):
validation = getattr(lightgbm_sklearn, name, None)
if validation is None:
continue
try:
parameters = signature(validation).parameters
except (TypeError, ValueError):
continue
if "force_all_finite" in parameters or "ensure_all_finite" not in parameters:
continue

def validation_compat(*args, _validation=validation, force_all_finite=True, **kwargs):
kwargs.setdefault("ensure_all_finite", force_all_finite)
return _validation(*args, **kwargs)

setattr(lightgbm_sklearn, name, validation_compat)
Loading
Loading