FLAML 2.3.0__tar.gz → 2.3.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {flaml-2.3.0 → flaml-2.3.1}/FLAML.egg-info/PKG-INFO +7 -1
- {flaml-2.3.0 → flaml-2.3.1}/PKG-INFO +7 -1
- {flaml-2.3.0 → flaml-2.3.1}/README.md +6 -0
- flaml-2.3.1/flaml/automl/__init__.py +9 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/fabric/mlflow.py +16 -10
- flaml-2.3.1/flaml/version.py +1 -0
- flaml-2.3.0/flaml/automl/__init__.py +0 -5
- flaml-2.3.0/flaml/version.py +0 -1
- {flaml-2.3.0 → flaml-2.3.1}/FLAML.egg-info/SOURCES.txt +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/FLAML.egg-info/dependency_links.txt +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/FLAML.egg-info/requires.txt +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/FLAML.egg-info/top_level.txt +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/LICENSE +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/NOTICE.md +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/__init__.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/autogen/__init__.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/autogen/agentchat/__init__.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/autogen/agentchat/agent.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/autogen/agentchat/assistant_agent.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/autogen/agentchat/conversable_agent.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/autogen/agentchat/groupchat.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/autogen/agentchat/user_proxy_agent.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/autogen/code_utils.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/autogen/extensions/__init__.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/autogen/math_utils.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/autogen/oai/__init__.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/autogen/oai/completion.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/autogen/oai/openai_utils.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/autogen/retrieve_utils.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/automl/automl.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/automl/contrib/__init__.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/automl/contrib/histgb.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/automl/data.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/automl/logger.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/automl/ml.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/automl/model.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/automl/nlp/__init__.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/automl/nlp/huggingface/__init__.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/automl/nlp/huggingface/data_collator.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/automl/nlp/huggingface/trainer.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/automl/nlp/huggingface/training_args.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/automl/nlp/huggingface/utils.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/automl/nlp/utils.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/automl/spark/__init__.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/automl/spark/metrics.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/automl/spark/utils.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/automl/state.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/automl/task/__init__.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/automl/task/factory.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/automl/task/generic_task.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/automl/task/task.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/automl/task/time_series_task.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/automl/time_series/__init__.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/automl/time_series/feature.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/automl/time_series/sklearn.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/automl/time_series/tcn.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/automl/time_series/tft.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/automl/time_series/ts_data.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/automl/time_series/ts_model.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/automl/training_log.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/config.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/default/__init__.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/default/all/binary.json +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/default/all/multiclass.json +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/default/all/regression.json +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/default/estimator.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/default/extra_tree/binary.json +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/default/extra_tree/multiclass.json +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/default/extra_tree/regression.json +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/default/greedy.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/default/lgbm/binary.json +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/default/lgbm/multiclass.json +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/default/lgbm/regression.json +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/default/portfolio.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/default/regret.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/default/rf/binary.json +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/default/rf/multiclass.json +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/default/rf/regression.json +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/default/suggest.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/default/xgb_limitdepth/binary.json +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/default/xgb_limitdepth/multiclass.json +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/default/xgb_limitdepth/regression.json +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/default/xgboost/binary.json +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/default/xgboost/multiclass.json +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/default/xgboost/regression.json +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/fabric/__init__.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/ml.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/onlineml/__init__.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/onlineml/autovw.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/onlineml/trial.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/onlineml/trial_runner.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/tune/__init__.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/tune/analysis.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/tune/result.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/tune/sample.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/tune/scheduler/__init__.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/tune/scheduler/online_scheduler.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/tune/scheduler/trial_scheduler.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/tune/searcher/__init__.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/tune/searcher/blendsearch.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/tune/searcher/cfo_cat.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/tune/searcher/flow2.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/tune/searcher/online_searcher.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/tune/searcher/search_thread.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/tune/searcher/suggestion.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/tune/searcher/variant_generator.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/tune/space.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/tune/spark/__init__.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/tune/spark/utils.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/tune/trial.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/tune/trial_runner.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/tune/tune.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/flaml/tune/utils.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/pyproject.toml +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/setup.cfg +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/setup.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/test/test_autovw.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/test/test_conda_distribution.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/test/test_gpu.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/test/test_model.py +0 -0
- {flaml-2.3.0 → flaml-2.3.1}/test/test_version.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: FLAML
|
|
3
|
-
Version: 2.3.
|
|
3
|
+
Version: 2.3.1
|
|
4
4
|
Summary: A fast library for automated machine learning and tuning
|
|
5
5
|
Home-page: https://github.com/microsoft/FLAML
|
|
6
6
|
Author: Microsoft Corporation
|
|
@@ -303,3 +303,9 @@ provided by the bot. You will only need to do this once across all repos using o
|
|
|
303
303
|
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
|
|
304
304
|
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
|
|
305
305
|
contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
|
|
306
|
+
|
|
307
|
+
## Contributors Wall
|
|
308
|
+
|
|
309
|
+
<a href="https://github.com/microsoft/flaml/graphs/contributors">
|
|
310
|
+
<img src="https://contrib.rocks/image?repo=microsoft/flaml&max=204" />
|
|
311
|
+
</a>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: FLAML
|
|
3
|
-
Version: 2.3.
|
|
3
|
+
Version: 2.3.1
|
|
4
4
|
Summary: A fast library for automated machine learning and tuning
|
|
5
5
|
Home-page: https://github.com/microsoft/FLAML
|
|
6
6
|
Author: Microsoft Corporation
|
|
@@ -303,3 +303,9 @@ provided by the bot. You will only need to do this once across all repos using o
|
|
|
303
303
|
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
|
|
304
304
|
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
|
|
305
305
|
contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
|
|
306
|
+
|
|
307
|
+
## Contributors Wall
|
|
308
|
+
|
|
309
|
+
<a href="https://github.com/microsoft/flaml/graphs/contributors">
|
|
310
|
+
<img src="https://contrib.rocks/image?repo=microsoft/flaml&max=204" />
|
|
311
|
+
</a>
|
|
@@ -154,3 +154,9 @@ provided by the bot. You will only need to do this once across all repos using o
|
|
|
154
154
|
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
|
|
155
155
|
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
|
|
156
156
|
contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
|
|
157
|
+
|
|
158
|
+
## Contributors Wall
|
|
159
|
+
|
|
160
|
+
<a href="https://github.com/microsoft/flaml/graphs/contributors">
|
|
161
|
+
<img src="https://contrib.rocks/image?repo=microsoft/flaml&max=204" />
|
|
162
|
+
</a>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
from flaml.automl.logger import logger_formatter
|
|
2
|
+
|
|
3
|
+
try:
|
|
4
|
+
from flaml.automl.automl import AutoML, size
|
|
5
|
+
from flaml.automl.state import AutoMLState, SearchState
|
|
6
|
+
|
|
7
|
+
__all__ = ["AutoML", "AutoMLState", "SearchState", "logger_formatter", "size"]
|
|
8
|
+
except ImportError:
|
|
9
|
+
__all__ = ["logger_formatter"]
|
|
@@ -3,6 +3,7 @@ import os
|
|
|
3
3
|
import pickle
|
|
4
4
|
import random
|
|
5
5
|
import sys
|
|
6
|
+
import tempfile
|
|
6
7
|
import time
|
|
7
8
|
from typing import MutableMapping
|
|
8
9
|
|
|
@@ -55,12 +56,12 @@ def get_mlflow_log_latency(model_history=False):
|
|
|
55
56
|
sk_model = tree.DecisionTreeClassifier()
|
|
56
57
|
mlflow.sklearn.log_model(sk_model, "sk_models")
|
|
57
58
|
mlflow.sklearn.log_model(Pipeline([("estimator", sk_model)]), "sk_pipeline")
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
59
|
+
with tempfile.TemporaryDirectory() as tmpdir:
|
|
60
|
+
pickle_fpath = os.path.join(tmpdir, f"tmp_{int(time.time()*1000)}")
|
|
61
|
+
with open(pickle_fpath, "wb") as f:
|
|
62
|
+
pickle.dump(sk_model, f)
|
|
63
|
+
mlflow.log_artifact(pickle_fpath, "sk_model1")
|
|
64
|
+
mlflow.log_artifact(pickle_fpath, "sk_model2")
|
|
64
65
|
mlflow.set_tag("synapseml.ui.visible", "false") # not shown inline in fabric
|
|
65
66
|
mlflow.delete_run(run.info.run_id)
|
|
66
67
|
et = time.time()
|
|
@@ -348,12 +349,17 @@ class MLflowIntegration:
|
|
|
348
349
|
else:
|
|
349
350
|
mlflow.sklearn.log_model(model, estimator, signature=signature)
|
|
350
351
|
|
|
351
|
-
def _pickle_and_log_artifact(self, obj, artifact_name,
|
|
352
|
+
def _pickle_and_log_artifact(self, obj, artifact_name, pickle_fname="temp_.pkl"):
|
|
352
353
|
if not self._do_log_model:
|
|
353
354
|
return
|
|
354
|
-
with
|
|
355
|
-
|
|
356
|
-
|
|
355
|
+
with tempfile.TemporaryDirectory() as tmpdir:
|
|
356
|
+
pickle_fpath = os.path.join(tmpdir, pickle_fname)
|
|
357
|
+
try:
|
|
358
|
+
with open(pickle_fpath, "wb") as f:
|
|
359
|
+
pickle.dump(obj, f)
|
|
360
|
+
mlflow.log_artifact(pickle_fpath, artifact_name)
|
|
361
|
+
except Exception as e:
|
|
362
|
+
logger.debug(f"Failed to pickle and log artifact {artifact_name}, error: {e}")
|
|
357
363
|
|
|
358
364
|
def pickle_and_log_automl_artifacts(self, automl, model, estimator, signature=None):
|
|
359
365
|
"""log automl artifacts to mlflow
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "2.3.1"
|
flaml-2.3.0/flaml/version.py
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "2.3.0"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|