FLAML 2.2.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.
Files changed (122) hide show
  1. {flaml-2.2.0 → flaml-2.3.1}/FLAML.egg-info/PKG-INFO +24 -13
  2. {flaml-2.2.0 → flaml-2.3.1}/FLAML.egg-info/SOURCES.txt +3 -1
  3. {flaml-2.2.0 → flaml-2.3.1}/FLAML.egg-info/requires.txt +14 -7
  4. {flaml-2.2.0 → flaml-2.3.1}/PKG-INFO +24 -13
  5. {flaml-2.2.0 → flaml-2.3.1}/README.md +9 -3
  6. {flaml-2.2.0 → flaml-2.3.1}/flaml/__init__.py +9 -1
  7. {flaml-2.2.0 → flaml-2.3.1}/flaml/autogen/code_utils.py +2 -2
  8. {flaml-2.2.0 → flaml-2.3.1}/flaml/autogen/math_utils.py +1 -1
  9. {flaml-2.2.0 → flaml-2.3.1}/flaml/autogen/retrieve_utils.py +1 -1
  10. flaml-2.3.1/flaml/automl/__init__.py +9 -0
  11. {flaml-2.2.0 → flaml-2.3.1}/flaml/automl/automl.py +160 -77
  12. {flaml-2.2.0 → flaml-2.3.1}/flaml/automl/ml.py +24 -2
  13. {flaml-2.2.0 → flaml-2.3.1}/flaml/automl/model.py +831 -85
  14. {flaml-2.2.0 → flaml-2.3.1}/flaml/automl/nlp/huggingface/data_collator.py +1 -1
  15. {flaml-2.2.0 → flaml-2.3.1}/flaml/automl/nlp/huggingface/utils.py +1 -1
  16. {flaml-2.2.0 → flaml-2.3.1}/flaml/automl/nlp/utils.py +2 -2
  17. {flaml-2.2.0 → flaml-2.3.1}/flaml/automl/state.py +11 -9
  18. {flaml-2.2.0 → flaml-2.3.1}/flaml/automl/task/generic_task.py +77 -36
  19. {flaml-2.2.0 → flaml-2.3.1}/flaml/automl/task/time_series_task.py +18 -1
  20. {flaml-2.2.0 → flaml-2.3.1}/flaml/automl/time_series/__init__.py +12 -1
  21. flaml-2.3.1/flaml/automl/time_series/tcn.py +285 -0
  22. {flaml-2.2.0 → flaml-2.3.1}/flaml/automl/time_series/ts_model.py +124 -0
  23. {flaml-2.2.0 → flaml-2.3.1}/flaml/automl/training_log.py +7 -7
  24. {flaml-2.2.0 → flaml-2.3.1}/flaml/default/portfolio.py +1 -1
  25. {flaml-2.2.0 → flaml-2.3.1}/flaml/default/suggest.py +2 -2
  26. flaml-2.3.1/flaml/fabric/__init__.py +0 -0
  27. flaml-2.3.1/flaml/fabric/mlflow.py +695 -0
  28. {flaml-2.2.0 → flaml-2.3.1}/flaml/tune/searcher/flow2.py +3 -3
  29. {flaml-2.2.0 → flaml-2.3.1}/flaml/tune/searcher/online_searcher.py +1 -1
  30. {flaml-2.2.0 → flaml-2.3.1}/flaml/tune/searcher/suggestion.py +7 -11
  31. {flaml-2.2.0 → flaml-2.3.1}/flaml/tune/searcher/variant_generator.py +3 -3
  32. {flaml-2.2.0 → flaml-2.3.1}/flaml/tune/trial.py +2 -2
  33. {flaml-2.2.0 → flaml-2.3.1}/flaml/tune/tune.py +85 -3
  34. flaml-2.3.1/flaml/version.py +1 -0
  35. {flaml-2.2.0 → flaml-2.3.1}/setup.py +18 -10
  36. {flaml-2.2.0 → flaml-2.3.1}/test/test_autovw.py +5 -5
  37. flaml-2.2.0/flaml/automl/__init__.py +0 -5
  38. flaml-2.2.0/flaml/automl/spark/configs.py +0 -97
  39. flaml-2.2.0/flaml/version.py +0 -1
  40. {flaml-2.2.0 → flaml-2.3.1}/FLAML.egg-info/dependency_links.txt +0 -0
  41. {flaml-2.2.0 → flaml-2.3.1}/FLAML.egg-info/top_level.txt +0 -0
  42. {flaml-2.2.0 → flaml-2.3.1}/LICENSE +0 -0
  43. {flaml-2.2.0 → flaml-2.3.1}/NOTICE.md +0 -0
  44. {flaml-2.2.0 → flaml-2.3.1}/flaml/autogen/__init__.py +0 -0
  45. {flaml-2.2.0 → flaml-2.3.1}/flaml/autogen/agentchat/__init__.py +0 -0
  46. {flaml-2.2.0 → flaml-2.3.1}/flaml/autogen/agentchat/agent.py +0 -0
  47. {flaml-2.2.0 → flaml-2.3.1}/flaml/autogen/agentchat/assistant_agent.py +0 -0
  48. {flaml-2.2.0 → flaml-2.3.1}/flaml/autogen/agentchat/conversable_agent.py +0 -0
  49. {flaml-2.2.0 → flaml-2.3.1}/flaml/autogen/agentchat/groupchat.py +0 -0
  50. {flaml-2.2.0 → flaml-2.3.1}/flaml/autogen/agentchat/user_proxy_agent.py +0 -0
  51. {flaml-2.2.0 → flaml-2.3.1}/flaml/autogen/extensions/__init__.py +0 -0
  52. {flaml-2.2.0 → flaml-2.3.1}/flaml/autogen/oai/__init__.py +0 -0
  53. {flaml-2.2.0 → flaml-2.3.1}/flaml/autogen/oai/completion.py +0 -0
  54. {flaml-2.2.0 → flaml-2.3.1}/flaml/autogen/oai/openai_utils.py +0 -0
  55. {flaml-2.2.0 → flaml-2.3.1}/flaml/automl/contrib/__init__.py +0 -0
  56. {flaml-2.2.0 → flaml-2.3.1}/flaml/automl/contrib/histgb.py +0 -0
  57. {flaml-2.2.0 → flaml-2.3.1}/flaml/automl/data.py +0 -0
  58. {flaml-2.2.0 → flaml-2.3.1}/flaml/automl/logger.py +0 -0
  59. {flaml-2.2.0 → flaml-2.3.1}/flaml/automl/nlp/__init__.py +0 -0
  60. {flaml-2.2.0 → flaml-2.3.1}/flaml/automl/nlp/huggingface/__init__.py +0 -0
  61. {flaml-2.2.0 → flaml-2.3.1}/flaml/automl/nlp/huggingface/trainer.py +0 -0
  62. {flaml-2.2.0 → flaml-2.3.1}/flaml/automl/nlp/huggingface/training_args.py +0 -0
  63. {flaml-2.2.0 → flaml-2.3.1}/flaml/automl/spark/__init__.py +0 -0
  64. {flaml-2.2.0 → flaml-2.3.1}/flaml/automl/spark/metrics.py +0 -0
  65. {flaml-2.2.0 → flaml-2.3.1}/flaml/automl/spark/utils.py +0 -0
  66. {flaml-2.2.0 → flaml-2.3.1}/flaml/automl/task/__init__.py +0 -0
  67. {flaml-2.2.0 → flaml-2.3.1}/flaml/automl/task/factory.py +0 -0
  68. {flaml-2.2.0 → flaml-2.3.1}/flaml/automl/task/task.py +0 -0
  69. {flaml-2.2.0 → flaml-2.3.1}/flaml/automl/time_series/feature.py +0 -0
  70. {flaml-2.2.0 → flaml-2.3.1}/flaml/automl/time_series/sklearn.py +0 -0
  71. {flaml-2.2.0 → flaml-2.3.1}/flaml/automl/time_series/tft.py +0 -0
  72. {flaml-2.2.0 → flaml-2.3.1}/flaml/automl/time_series/ts_data.py +0 -0
  73. {flaml-2.2.0 → flaml-2.3.1}/flaml/config.py +0 -0
  74. {flaml-2.2.0 → flaml-2.3.1}/flaml/default/__init__.py +0 -0
  75. {flaml-2.2.0 → flaml-2.3.1}/flaml/default/all/binary.json +0 -0
  76. {flaml-2.2.0 → flaml-2.3.1}/flaml/default/all/multiclass.json +0 -0
  77. {flaml-2.2.0 → flaml-2.3.1}/flaml/default/all/regression.json +0 -0
  78. {flaml-2.2.0 → flaml-2.3.1}/flaml/default/estimator.py +0 -0
  79. {flaml-2.2.0 → flaml-2.3.1}/flaml/default/extra_tree/binary.json +0 -0
  80. {flaml-2.2.0 → flaml-2.3.1}/flaml/default/extra_tree/multiclass.json +0 -0
  81. {flaml-2.2.0 → flaml-2.3.1}/flaml/default/extra_tree/regression.json +0 -0
  82. {flaml-2.2.0 → flaml-2.3.1}/flaml/default/greedy.py +0 -0
  83. {flaml-2.2.0 → flaml-2.3.1}/flaml/default/lgbm/binary.json +0 -0
  84. {flaml-2.2.0 → flaml-2.3.1}/flaml/default/lgbm/multiclass.json +0 -0
  85. {flaml-2.2.0 → flaml-2.3.1}/flaml/default/lgbm/regression.json +0 -0
  86. {flaml-2.2.0 → flaml-2.3.1}/flaml/default/regret.py +0 -0
  87. {flaml-2.2.0 → flaml-2.3.1}/flaml/default/rf/binary.json +0 -0
  88. {flaml-2.2.0 → flaml-2.3.1}/flaml/default/rf/multiclass.json +0 -0
  89. {flaml-2.2.0 → flaml-2.3.1}/flaml/default/rf/regression.json +0 -0
  90. {flaml-2.2.0 → flaml-2.3.1}/flaml/default/xgb_limitdepth/binary.json +0 -0
  91. {flaml-2.2.0 → flaml-2.3.1}/flaml/default/xgb_limitdepth/multiclass.json +0 -0
  92. {flaml-2.2.0 → flaml-2.3.1}/flaml/default/xgb_limitdepth/regression.json +0 -0
  93. {flaml-2.2.0 → flaml-2.3.1}/flaml/default/xgboost/binary.json +0 -0
  94. {flaml-2.2.0 → flaml-2.3.1}/flaml/default/xgboost/multiclass.json +0 -0
  95. {flaml-2.2.0 → flaml-2.3.1}/flaml/default/xgboost/regression.json +0 -0
  96. {flaml-2.2.0 → flaml-2.3.1}/flaml/ml.py +0 -0
  97. {flaml-2.2.0 → flaml-2.3.1}/flaml/onlineml/__init__.py +0 -0
  98. {flaml-2.2.0 → flaml-2.3.1}/flaml/onlineml/autovw.py +0 -0
  99. {flaml-2.2.0 → flaml-2.3.1}/flaml/onlineml/trial.py +0 -0
  100. {flaml-2.2.0 → flaml-2.3.1}/flaml/onlineml/trial_runner.py +0 -0
  101. {flaml-2.2.0 → flaml-2.3.1}/flaml/tune/__init__.py +0 -0
  102. {flaml-2.2.0 → flaml-2.3.1}/flaml/tune/analysis.py +0 -0
  103. {flaml-2.2.0 → flaml-2.3.1}/flaml/tune/result.py +0 -0
  104. {flaml-2.2.0 → flaml-2.3.1}/flaml/tune/sample.py +0 -0
  105. {flaml-2.2.0 → flaml-2.3.1}/flaml/tune/scheduler/__init__.py +0 -0
  106. {flaml-2.2.0 → flaml-2.3.1}/flaml/tune/scheduler/online_scheduler.py +0 -0
  107. {flaml-2.2.0 → flaml-2.3.1}/flaml/tune/scheduler/trial_scheduler.py +0 -0
  108. {flaml-2.2.0 → flaml-2.3.1}/flaml/tune/searcher/__init__.py +0 -0
  109. {flaml-2.2.0 → flaml-2.3.1}/flaml/tune/searcher/blendsearch.py +0 -0
  110. {flaml-2.2.0 → flaml-2.3.1}/flaml/tune/searcher/cfo_cat.py +0 -0
  111. {flaml-2.2.0 → flaml-2.3.1}/flaml/tune/searcher/search_thread.py +0 -0
  112. {flaml-2.2.0 → flaml-2.3.1}/flaml/tune/space.py +0 -0
  113. {flaml-2.2.0 → flaml-2.3.1}/flaml/tune/spark/__init__.py +0 -0
  114. {flaml-2.2.0 → flaml-2.3.1}/flaml/tune/spark/utils.py +0 -0
  115. {flaml-2.2.0 → flaml-2.3.1}/flaml/tune/trial_runner.py +0 -0
  116. {flaml-2.2.0 → flaml-2.3.1}/flaml/tune/utils.py +0 -0
  117. {flaml-2.2.0 → flaml-2.3.1}/pyproject.toml +0 -0
  118. {flaml-2.2.0 → flaml-2.3.1}/setup.cfg +0 -0
  119. {flaml-2.2.0 → flaml-2.3.1}/test/test_conda_distribution.py +0 -0
  120. {flaml-2.2.0 → flaml-2.3.1}/test/test_gpu.py +0 -0
  121. {flaml-2.2.0 → flaml-2.3.1}/test/test_model.py +0 -0
  122. {flaml-2.2.0 → flaml-2.3.1}/test/test_version.py +0 -0
@@ -1,14 +1,18 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: FLAML
3
- Version: 2.2.0
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
7
7
  Author-email: hpo@microsoft.com
8
- Classifier: Programming Language :: Python :: 3
9
8
  Classifier: License :: OSI Approved :: MIT License
10
9
  Classifier: Operating System :: OS Independent
11
- Requires-Python: >=3.6
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: Python :: 3.8
12
+ Classifier: Programming Language :: Python :: 3.9
13
+ Classifier: Programming Language :: Python :: 3.10
14
+ Classifier: Programming Language :: Python :: 3.11
15
+ Requires-Python: >=3.8
12
16
  Description-Content-Type: text/markdown
13
17
  License-File: LICENSE
14
18
  License-File: NOTICE.md
@@ -30,7 +34,8 @@ Requires-Dist: jupyter; extra == "test"
30
34
  Requires-Dist: lightgbm>=2.3.1; extra == "test"
31
35
  Requires-Dist: xgboost<2.0.0,>=0.90; extra == "test"
32
36
  Requires-Dist: scipy>=1.4.1; extra == "test"
33
- Requires-Dist: pandas>=1.1.4; extra == "test"
37
+ Requires-Dist: pandas<2.0.0,>=1.1.4; python_version < "3.10" and extra == "test"
38
+ Requires-Dist: pandas>=1.1.4; python_version >= "3.10" and extra == "test"
34
39
  Requires-Dist: scikit-learn>=1.0.0; extra == "test"
35
40
  Requires-Dist: thop; extra == "test"
36
41
  Requires-Dist: pytest>=6.1.1; extra == "test"
@@ -48,13 +53,12 @@ Requires-Dist: psutil==5.8.0; extra == "test"
48
53
  Requires-Dist: dataclasses; extra == "test"
49
54
  Requires-Dist: transformers[torch]==4.26; extra == "test"
50
55
  Requires-Dist: datasets; extra == "test"
51
- Requires-Dist: nltk; extra == "test"
56
+ Requires-Dist: nltk<=3.8.1; extra == "test"
52
57
  Requires-Dist: rouge_score; extra == "test"
53
58
  Requires-Dist: hcrystalball==0.1.10; extra == "test"
54
59
  Requires-Dist: seqeval; extra == "test"
55
60
  Requires-Dist: pytorch-forecasting<=0.10.1,>=0.9.0; python_version < "3.11" and extra == "test"
56
- Requires-Dist: mlflow; extra == "test"
57
- Requires-Dist: pyspark>=3.2.0; extra == "test"
61
+ Requires-Dist: mlflow==2.15.1; extra == "test"
58
62
  Requires-Dist: joblibspark>=0.5.0; extra == "test"
59
63
  Requires-Dist: joblib<=1.3.2; extra == "test"
60
64
  Requires-Dist: nbconvert; extra == "test"
@@ -67,6 +71,7 @@ Requires-Dist: packaging; extra == "test"
67
71
  Requires-Dist: pydantic==1.10.9; extra == "test"
68
72
  Requires-Dist: sympy; extra == "test"
69
73
  Requires-Dist: wolframalpha; extra == "test"
74
+ Requires-Dist: dill; extra == "test"
70
75
  Provides-Extra: catboost
71
76
  Requires-Dist: catboost<1.2,>=0.26; python_version < "3.11" and extra == "catboost"
72
77
  Requires-Dist: catboost<=1.2.5,>=0.26; python_version >= "3.11" and extra == "catboost"
@@ -85,13 +90,13 @@ Requires-Dist: scikit-learn; extra == "vw"
85
90
  Provides-Extra: hf
86
91
  Requires-Dist: transformers[torch]==4.26; extra == "hf"
87
92
  Requires-Dist: datasets; extra == "hf"
88
- Requires-Dist: nltk; extra == "hf"
93
+ Requires-Dist: nltk<=3.8.1; extra == "hf"
89
94
  Requires-Dist: rouge_score; extra == "hf"
90
95
  Requires-Dist: seqeval; extra == "hf"
91
96
  Provides-Extra: nlp
92
97
  Requires-Dist: transformers[torch]==4.26; extra == "nlp"
93
98
  Requires-Dist: datasets; extra == "nlp"
94
- Requires-Dist: nltk; extra == "nlp"
99
+ Requires-Dist: nltk<=3.8.1; extra == "nlp"
95
100
  Requires-Dist: rouge_score; extra == "nlp"
96
101
  Requires-Dist: seqeval; extra == "nlp"
97
102
  Provides-Extra: ts-forecast
@@ -104,7 +109,7 @@ Requires-Dist: holidays<0.14; extra == "forecast"
104
109
  Requires-Dist: prophet>=1.0.1; extra == "forecast"
105
110
  Requires-Dist: statsmodels>=0.12.2; extra == "forecast"
106
111
  Requires-Dist: hcrystalball==0.1.10; extra == "forecast"
107
- Requires-Dist: pytorch-forecasting>=0.9.0; extra == "forecast"
112
+ Requires-Dist: pytorch-forecasting>=0.9.0; python_version < "3.11" and extra == "forecast"
108
113
  Requires-Dist: pytorch-lightning==1.9.0; extra == "forecast"
109
114
  Requires-Dist: tensorboardX==2.6; extra == "forecast"
110
115
  Provides-Extra: benchmark
@@ -145,7 +150,7 @@ Requires-Dist: packaging; extra == "autozero"
145
150
  [![PyPI version](https://badge.fury.io/py/FLAML.svg)](https://badge.fury.io/py/FLAML)
146
151
  ![Conda version](https://img.shields.io/conda/vn/conda-forge/flaml)
147
152
  [![Build](https://github.com/microsoft/FLAML/actions/workflows/python-package.yml/badge.svg)](https://github.com/microsoft/FLAML/actions/workflows/python-package.yml)
148
- ![Python Version](https://img.shields.io/badge/3.8%20%7C%203.9%20%7C%203.10-blue)
153
+ [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/FLAML)](https://pypi.org/project/FLAML/)
149
154
  [![Downloads](https://pepy.tech/badge/flaml)](https://pepy.tech/project/flaml)
150
155
  [![](https://img.shields.io/discord/1025786666260111483?logo=discord&style=flat)](https://discord.gg/Cppx2vSPVP)
151
156
 
@@ -158,6 +163,8 @@ Requires-Dist: packaging; extra == "autozero"
158
163
  <br>
159
164
  </p>
160
165
 
166
+ :fire: FLAML supports AutoML and Hyperparameter Tuning in [Microsoft Fabric Data Science](https://learn.microsoft.com/en-us/fabric/data-science/automated-machine-learning-fabric). In addition, we've introduced Python 3.11 support, along with a range of new estimators, and comprehensive integration with MLflow—thanks to contributions from the Microsoft Fabric product team.
167
+
161
168
  :fire: Heads-up: We have migrated [AutoGen](https://microsoft.github.io/autogen/) into a dedicated [github repository](https://github.com/microsoft/autogen). Alongside this move, we have also launched a dedicated [Discord](https://discord.gg/pAbnFJrkgZ) server and a [website](https://microsoft.github.io/autogen/) for comprehensive documentation.
162
169
 
163
170
  :fire: The automated multi-agent chat framework in [AutoGen](https://microsoft.github.io/autogen/) is in preview from v2.0.0.
@@ -166,8 +173,6 @@ Requires-Dist: packaging; extra == "autozero"
166
173
 
167
174
  :fire: [autogen](https://microsoft.github.io/autogen/) is released with support for ChatGPT and GPT-4, based on [Cost-Effective Hyperparameter Optimization for Large Language Model Generation Inference](https://arxiv.org/abs/2303.04673).
168
175
 
169
- :fire: FLAML supports Code-First AutoML & Tuning – Private Preview in [Microsoft Fabric Data Science](https://learn.microsoft.com/en-us/fabric/data-science/).
170
-
171
176
  ## What is FLAML
172
177
 
173
178
  FLAML is a lightweight Python library for efficient automation of machine
@@ -298,3 +303,9 @@ provided by the bot. You will only need to do this once across all repos using o
298
303
  This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
299
304
  For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
300
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>
@@ -44,7 +44,6 @@ flaml/automl/nlp/huggingface/trainer.py
44
44
  flaml/automl/nlp/huggingface/training_args.py
45
45
  flaml/automl/nlp/huggingface/utils.py
46
46
  flaml/automl/spark/__init__.py
47
- flaml/automl/spark/configs.py
48
47
  flaml/automl/spark/metrics.py
49
48
  flaml/automl/spark/utils.py
50
49
  flaml/automl/task/__init__.py
@@ -55,6 +54,7 @@ flaml/automl/task/time_series_task.py
55
54
  flaml/automl/time_series/__init__.py
56
55
  flaml/automl/time_series/feature.py
57
56
  flaml/automl/time_series/sklearn.py
57
+ flaml/automl/time_series/tcn.py
58
58
  flaml/automl/time_series/tft.py
59
59
  flaml/automl/time_series/ts_data.py
60
60
  flaml/automl/time_series/ts_model.py
@@ -82,6 +82,8 @@ flaml/default/xgb_limitdepth/regression.json
82
82
  flaml/default/xgboost/binary.json
83
83
  flaml/default/xgboost/multiclass.json
84
84
  flaml/default/xgboost/regression.json
85
+ flaml/fabric/__init__.py
86
+ flaml/fabric/mlflow.py
85
87
  flaml/onlineml/__init__.py
86
88
  flaml/onlineml/autovw.py
87
89
  flaml/onlineml/trial.py
@@ -43,14 +43,16 @@ holidays<0.14
43
43
  prophet>=1.0.1
44
44
  statsmodels>=0.12.2
45
45
  hcrystalball==0.1.10
46
- pytorch-forecasting>=0.9.0
47
46
  pytorch-lightning==1.9.0
48
47
  tensorboardX==2.6
49
48
 
49
+ [forecast:python_version < "3.11"]
50
+ pytorch-forecasting>=0.9.0
51
+
50
52
  [hf]
51
53
  transformers[torch]==4.26
52
54
  datasets
53
- nltk
55
+ nltk<=3.8.1
54
56
  rouge_score
55
57
  seqeval
56
58
 
@@ -65,7 +67,7 @@ wolframalpha
65
67
  [nlp]
66
68
  transformers[torch]==4.26
67
69
  datasets
68
- nltk
70
+ nltk<=3.8.1
69
71
  rouge_score
70
72
  seqeval
71
73
 
@@ -105,7 +107,6 @@ jupyter
105
107
  lightgbm>=2.3.1
106
108
  xgboost<2.0.0,>=0.90
107
109
  scipy>=1.4.1
108
- pandas>=1.1.4
109
110
  scikit-learn>=1.0.0
110
111
  thop
111
112
  pytest>=6.1.1
@@ -121,12 +122,11 @@ psutil==5.8.0
121
122
  dataclasses
122
123
  transformers[torch]==4.26
123
124
  datasets
124
- nltk
125
+ nltk<=3.8.1
125
126
  rouge_score
126
127
  hcrystalball==0.1.10
127
128
  seqeval
128
- mlflow
129
- pyspark>=3.2.0
129
+ mlflow==2.15.1
130
130
  joblibspark>=0.5.0
131
131
  joblib<=1.3.2
132
132
  nbconvert
@@ -139,11 +139,18 @@ packaging
139
139
  pydantic==1.10.9
140
140
  sympy
141
141
  wolframalpha
142
+ dill
143
+
144
+ [test:python_version < "3.10"]
145
+ pandas<2.0.0,>=1.1.4
142
146
 
143
147
  [test:python_version < "3.11"]
144
148
  catboost<1.2,>=0.26
145
149
  pytorch-forecasting<=0.10.1,>=0.9.0
146
150
 
151
+ [test:python_version >= "3.10"]
152
+ pandas>=1.1.4
153
+
147
154
  [test:python_version >= "3.11"]
148
155
  catboost>=0.26
149
156
 
@@ -1,14 +1,18 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: FLAML
3
- Version: 2.2.0
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
7
7
  Author-email: hpo@microsoft.com
8
- Classifier: Programming Language :: Python :: 3
9
8
  Classifier: License :: OSI Approved :: MIT License
10
9
  Classifier: Operating System :: OS Independent
11
- Requires-Python: >=3.6
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: Python :: 3.8
12
+ Classifier: Programming Language :: Python :: 3.9
13
+ Classifier: Programming Language :: Python :: 3.10
14
+ Classifier: Programming Language :: Python :: 3.11
15
+ Requires-Python: >=3.8
12
16
  Description-Content-Type: text/markdown
13
17
  License-File: LICENSE
14
18
  License-File: NOTICE.md
@@ -30,7 +34,8 @@ Requires-Dist: jupyter; extra == "test"
30
34
  Requires-Dist: lightgbm>=2.3.1; extra == "test"
31
35
  Requires-Dist: xgboost<2.0.0,>=0.90; extra == "test"
32
36
  Requires-Dist: scipy>=1.4.1; extra == "test"
33
- Requires-Dist: pandas>=1.1.4; extra == "test"
37
+ Requires-Dist: pandas<2.0.0,>=1.1.4; python_version < "3.10" and extra == "test"
38
+ Requires-Dist: pandas>=1.1.4; python_version >= "3.10" and extra == "test"
34
39
  Requires-Dist: scikit-learn>=1.0.0; extra == "test"
35
40
  Requires-Dist: thop; extra == "test"
36
41
  Requires-Dist: pytest>=6.1.1; extra == "test"
@@ -48,13 +53,12 @@ Requires-Dist: psutil==5.8.0; extra == "test"
48
53
  Requires-Dist: dataclasses; extra == "test"
49
54
  Requires-Dist: transformers[torch]==4.26; extra == "test"
50
55
  Requires-Dist: datasets; extra == "test"
51
- Requires-Dist: nltk; extra == "test"
56
+ Requires-Dist: nltk<=3.8.1; extra == "test"
52
57
  Requires-Dist: rouge_score; extra == "test"
53
58
  Requires-Dist: hcrystalball==0.1.10; extra == "test"
54
59
  Requires-Dist: seqeval; extra == "test"
55
60
  Requires-Dist: pytorch-forecasting<=0.10.1,>=0.9.0; python_version < "3.11" and extra == "test"
56
- Requires-Dist: mlflow; extra == "test"
57
- Requires-Dist: pyspark>=3.2.0; extra == "test"
61
+ Requires-Dist: mlflow==2.15.1; extra == "test"
58
62
  Requires-Dist: joblibspark>=0.5.0; extra == "test"
59
63
  Requires-Dist: joblib<=1.3.2; extra == "test"
60
64
  Requires-Dist: nbconvert; extra == "test"
@@ -67,6 +71,7 @@ Requires-Dist: packaging; extra == "test"
67
71
  Requires-Dist: pydantic==1.10.9; extra == "test"
68
72
  Requires-Dist: sympy; extra == "test"
69
73
  Requires-Dist: wolframalpha; extra == "test"
74
+ Requires-Dist: dill; extra == "test"
70
75
  Provides-Extra: catboost
71
76
  Requires-Dist: catboost<1.2,>=0.26; python_version < "3.11" and extra == "catboost"
72
77
  Requires-Dist: catboost<=1.2.5,>=0.26; python_version >= "3.11" and extra == "catboost"
@@ -85,13 +90,13 @@ Requires-Dist: scikit-learn; extra == "vw"
85
90
  Provides-Extra: hf
86
91
  Requires-Dist: transformers[torch]==4.26; extra == "hf"
87
92
  Requires-Dist: datasets; extra == "hf"
88
- Requires-Dist: nltk; extra == "hf"
93
+ Requires-Dist: nltk<=3.8.1; extra == "hf"
89
94
  Requires-Dist: rouge_score; extra == "hf"
90
95
  Requires-Dist: seqeval; extra == "hf"
91
96
  Provides-Extra: nlp
92
97
  Requires-Dist: transformers[torch]==4.26; extra == "nlp"
93
98
  Requires-Dist: datasets; extra == "nlp"
94
- Requires-Dist: nltk; extra == "nlp"
99
+ Requires-Dist: nltk<=3.8.1; extra == "nlp"
95
100
  Requires-Dist: rouge_score; extra == "nlp"
96
101
  Requires-Dist: seqeval; extra == "nlp"
97
102
  Provides-Extra: ts-forecast
@@ -104,7 +109,7 @@ Requires-Dist: holidays<0.14; extra == "forecast"
104
109
  Requires-Dist: prophet>=1.0.1; extra == "forecast"
105
110
  Requires-Dist: statsmodels>=0.12.2; extra == "forecast"
106
111
  Requires-Dist: hcrystalball==0.1.10; extra == "forecast"
107
- Requires-Dist: pytorch-forecasting>=0.9.0; extra == "forecast"
112
+ Requires-Dist: pytorch-forecasting>=0.9.0; python_version < "3.11" and extra == "forecast"
108
113
  Requires-Dist: pytorch-lightning==1.9.0; extra == "forecast"
109
114
  Requires-Dist: tensorboardX==2.6; extra == "forecast"
110
115
  Provides-Extra: benchmark
@@ -145,7 +150,7 @@ Requires-Dist: packaging; extra == "autozero"
145
150
  [![PyPI version](https://badge.fury.io/py/FLAML.svg)](https://badge.fury.io/py/FLAML)
146
151
  ![Conda version](https://img.shields.io/conda/vn/conda-forge/flaml)
147
152
  [![Build](https://github.com/microsoft/FLAML/actions/workflows/python-package.yml/badge.svg)](https://github.com/microsoft/FLAML/actions/workflows/python-package.yml)
148
- ![Python Version](https://img.shields.io/badge/3.8%20%7C%203.9%20%7C%203.10-blue)
153
+ [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/FLAML)](https://pypi.org/project/FLAML/)
149
154
  [![Downloads](https://pepy.tech/badge/flaml)](https://pepy.tech/project/flaml)
150
155
  [![](https://img.shields.io/discord/1025786666260111483?logo=discord&style=flat)](https://discord.gg/Cppx2vSPVP)
151
156
 
@@ -158,6 +163,8 @@ Requires-Dist: packaging; extra == "autozero"
158
163
  <br>
159
164
  </p>
160
165
 
166
+ :fire: FLAML supports AutoML and Hyperparameter Tuning in [Microsoft Fabric Data Science](https://learn.microsoft.com/en-us/fabric/data-science/automated-machine-learning-fabric). In addition, we've introduced Python 3.11 support, along with a range of new estimators, and comprehensive integration with MLflow—thanks to contributions from the Microsoft Fabric product team.
167
+
161
168
  :fire: Heads-up: We have migrated [AutoGen](https://microsoft.github.io/autogen/) into a dedicated [github repository](https://github.com/microsoft/autogen). Alongside this move, we have also launched a dedicated [Discord](https://discord.gg/pAbnFJrkgZ) server and a [website](https://microsoft.github.io/autogen/) for comprehensive documentation.
162
169
 
163
170
  :fire: The automated multi-agent chat framework in [AutoGen](https://microsoft.github.io/autogen/) is in preview from v2.0.0.
@@ -166,8 +173,6 @@ Requires-Dist: packaging; extra == "autozero"
166
173
 
167
174
  :fire: [autogen](https://microsoft.github.io/autogen/) is released with support for ChatGPT and GPT-4, based on [Cost-Effective Hyperparameter Optimization for Large Language Model Generation Inference](https://arxiv.org/abs/2303.04673).
168
175
 
169
- :fire: FLAML supports Code-First AutoML & Tuning – Private Preview in [Microsoft Fabric Data Science](https://learn.microsoft.com/en-us/fabric/data-science/).
170
-
171
176
  ## What is FLAML
172
177
 
173
178
  FLAML is a lightweight Python library for efficient automation of machine
@@ -298,3 +303,9 @@ provided by the bot. You will only need to do this once across all repos using o
298
303
  This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
299
304
  For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
300
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,7 +1,7 @@
1
1
  [![PyPI version](https://badge.fury.io/py/FLAML.svg)](https://badge.fury.io/py/FLAML)
2
2
  ![Conda version](https://img.shields.io/conda/vn/conda-forge/flaml)
3
3
  [![Build](https://github.com/microsoft/FLAML/actions/workflows/python-package.yml/badge.svg)](https://github.com/microsoft/FLAML/actions/workflows/python-package.yml)
4
- ![Python Version](https://img.shields.io/badge/3.8%20%7C%203.9%20%7C%203.10-blue)
4
+ [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/FLAML)](https://pypi.org/project/FLAML/)
5
5
  [![Downloads](https://pepy.tech/badge/flaml)](https://pepy.tech/project/flaml)
6
6
  [![](https://img.shields.io/discord/1025786666260111483?logo=discord&style=flat)](https://discord.gg/Cppx2vSPVP)
7
7
 
@@ -14,6 +14,8 @@
14
14
  <br>
15
15
  </p>
16
16
 
17
+ :fire: FLAML supports AutoML and Hyperparameter Tuning in [Microsoft Fabric Data Science](https://learn.microsoft.com/en-us/fabric/data-science/automated-machine-learning-fabric). In addition, we've introduced Python 3.11 support, along with a range of new estimators, and comprehensive integration with MLflow—thanks to contributions from the Microsoft Fabric product team.
18
+
17
19
  :fire: Heads-up: We have migrated [AutoGen](https://microsoft.github.io/autogen/) into a dedicated [github repository](https://github.com/microsoft/autogen). Alongside this move, we have also launched a dedicated [Discord](https://discord.gg/pAbnFJrkgZ) server and a [website](https://microsoft.github.io/autogen/) for comprehensive documentation.
18
20
 
19
21
  :fire: The automated multi-agent chat framework in [AutoGen](https://microsoft.github.io/autogen/) is in preview from v2.0.0.
@@ -22,8 +24,6 @@
22
24
 
23
25
  :fire: [autogen](https://microsoft.github.io/autogen/) is released with support for ChatGPT and GPT-4, based on [Cost-Effective Hyperparameter Optimization for Large Language Model Generation Inference](https://arxiv.org/abs/2303.04673).
24
26
 
25
- :fire: FLAML supports Code-First AutoML & Tuning – Private Preview in [Microsoft Fabric Data Science](https://learn.microsoft.com/en-us/fabric/data-science/).
26
-
27
27
  ## What is FLAML
28
28
 
29
29
  FLAML is a lightweight Python library for efficient automation of machine
@@ -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>
@@ -1,6 +1,11 @@
1
1
  import logging
2
2
 
3
- from flaml.automl import AutoML, logger_formatter
3
+ try:
4
+ from flaml.automl import AutoML, logger_formatter
5
+
6
+ has_automl = True
7
+ except ImportError:
8
+ has_automl = False
4
9
  from flaml.onlineml.autovw import AutoVW
5
10
  from flaml.tune.searcher import CFO, FLOW2, BlendSearch, BlendSearchTuner, RandomSearch
6
11
  from flaml.version import __version__
@@ -8,3 +13,6 @@ from flaml.version import __version__
8
13
  # Set the root logger.
9
14
  logger = logging.getLogger(__name__)
10
15
  logger.setLevel(logging.INFO)
16
+
17
+ if not has_automl:
18
+ logger.warning("flaml.automl is not available. Please install flaml[automl] to enable AutoML functionalities.")
@@ -125,7 +125,7 @@ def improve_function(file_name, func_name, objective, **config):
125
125
  """(work in progress) Improve the function to achieve the objective."""
126
126
  params = {**_IMPROVE_FUNCTION_CONFIG, **config}
127
127
  # read the entire file into a str
128
- with open(file_name, "r") as f:
128
+ with open(file_name) as f:
129
129
  file_string = f.read()
130
130
  response = oai.Completion.create(
131
131
  {"func_name": func_name, "objective": objective, "file_string": file_string}, **params
@@ -158,7 +158,7 @@ def improve_code(files, objective, suggest_only=True, **config):
158
158
  code = ""
159
159
  for file_name in files:
160
160
  # read the entire file into a string
161
- with open(file_name, "r") as f:
161
+ with open(file_name) as f:
162
162
  file_string = f.read()
163
163
  code += f"""{file_name}:
164
164
  {file_string}
@@ -130,7 +130,7 @@ def _fix_a_slash_b(string: str) -> str:
130
130
  try:
131
131
  a = int(a_str)
132
132
  b = int(b_str)
133
- assert string == "{}/{}".format(a, b)
133
+ assert string == f"{a}/{b}"
134
134
  new_string = "\\frac{" + str(a) + "}{" + str(b) + "}"
135
135
  return new_string
136
136
  except Exception:
@@ -126,7 +126,7 @@ def split_files_to_chunks(
126
126
  """Split a list of files into chunks of max_tokens."""
127
127
  chunks = []
128
128
  for file in files:
129
- with open(file, "r") as f:
129
+ with open(file) as f:
130
130
  text = f.read()
131
131
  chunks += split_text_to_chunks(text, max_tokens, chunk_mode, must_break_at_empty_line)
132
132
  return chunks
@@ -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"]