2020-12-05 01:40:27 +08:00
|
|
|
import setuptools
|
|
|
|
import os
|
|
|
|
|
|
|
|
here = os.path.abspath(os.path.dirname(__file__))
|
|
|
|
|
2022-01-03 09:12:34 +08:00
|
|
|
with open("README.md", "r", encoding="UTF-8") as fh:
|
2020-12-05 01:40:27 +08:00
|
|
|
long_description = fh.read()
|
|
|
|
|
|
|
|
|
|
|
|
# Get the code version
|
|
|
|
version = {}
|
|
|
|
with open(os.path.join(here, "flaml/version.py")) as fp:
|
|
|
|
exec(fp.read(), version)
|
|
|
|
__version__ = version["__version__"]
|
|
|
|
|
|
|
|
install_requires = [
|
2022-05-24 02:23:00 +08:00
|
|
|
"NumPy>=1.17.0rc1",
|
2020-12-05 01:40:27 +08:00
|
|
|
"lightgbm>=2.3.1",
|
2021-08-27 04:45:13 +08:00
|
|
|
"xgboost>=0.90,<=1.3.3",
|
2020-12-05 01:40:27 +08:00
|
|
|
"scipy>=1.4.1",
|
2021-10-11 13:57:22 +08:00
|
|
|
"pandas>=1.1.4",
|
2021-08-27 04:45:13 +08:00
|
|
|
"scikit-learn>=0.24",
|
2021-09-11 07:39:16 +08:00
|
|
|
]
|
2020-12-05 01:40:27 +08:00
|
|
|
|
|
|
|
|
|
|
|
setuptools.setup(
|
|
|
|
name="FLAML",
|
|
|
|
version=__version__,
|
|
|
|
author="Microsoft Corporation",
|
|
|
|
author_email="hpo@microsoft.com",
|
2021-12-17 09:11:33 +08:00
|
|
|
description="A fast library for automated machine learning and tuning",
|
2020-12-05 01:40:27 +08:00
|
|
|
long_description=long_description,
|
|
|
|
long_description_content_type="text/markdown",
|
|
|
|
url="https://github.com/microsoft/FLAML",
|
2021-09-12 12:19:18 +08:00
|
|
|
packages=setuptools.find_packages(include=["flaml*"]),
|
2020-12-05 01:40:27 +08:00
|
|
|
install_requires=install_requires,
|
|
|
|
extras_require={
|
|
|
|
"notebook": [
|
|
|
|
"openml==0.10.2",
|
|
|
|
"jupyter",
|
2021-11-04 10:08:23 +08:00
|
|
|
"matplotlib",
|
2020-12-05 01:40:27 +08:00
|
|
|
"rgf-python",
|
2021-11-04 10:08:23 +08:00
|
|
|
"catboost>=0.26",
|
2020-12-05 01:40:27 +08:00
|
|
|
],
|
|
|
|
"test": [
|
|
|
|
"flake8>=3.8.4",
|
|
|
|
"pytest>=6.1.1",
|
|
|
|
"coverage>=5.3",
|
2021-09-11 07:39:16 +08:00
|
|
|
"pre-commit",
|
2021-11-04 10:08:23 +08:00
|
|
|
"catboost>=0.26",
|
2020-12-16 00:10:43 +08:00
|
|
|
"rgf-python",
|
2021-07-25 08:10:43 +08:00
|
|
|
"optuna==2.8.0",
|
2021-06-03 10:08:24 +08:00
|
|
|
"vowpalwabbit",
|
|
|
|
"openml",
|
2021-09-11 07:39:16 +08:00
|
|
|
"statsmodels>=0.12.2",
|
2021-11-04 10:08:23 +08:00
|
|
|
"psutil==5.8.0",
|
2021-11-17 03:06:20 +08:00
|
|
|
"dataclasses",
|
2022-01-06 05:49:12 +08:00
|
|
|
"transformers>=4.14",
|
2021-12-21 06:19:32 +08:00
|
|
|
"datasets",
|
2021-11-17 03:06:20 +08:00
|
|
|
"torch",
|
2021-12-21 06:19:32 +08:00
|
|
|
"nltk",
|
|
|
|
"rouge_score",
|
2022-01-07 15:12:38 +08:00
|
|
|
"hcrystalball==0.1.10",
|
2022-01-04 02:44:10 +08:00
|
|
|
"seqeval",
|
2022-05-29 08:22:09 +08:00
|
|
|
"protobuf<4", # to prevent TypeError in ray
|
2021-02-06 13:41:14 +08:00
|
|
|
],
|
2021-11-04 10:08:23 +08:00
|
|
|
"catboost": ["catboost>=0.26"],
|
2021-09-11 07:39:16 +08:00
|
|
|
"blendsearch": ["optuna==2.8.0"],
|
2021-02-06 13:41:14 +08:00
|
|
|
"ray": [
|
2022-02-10 07:04:29 +08:00
|
|
|
"ray[tune]~=1.10",
|
2021-02-06 13:41:14 +08:00
|
|
|
],
|
|
|
|
"azureml": [
|
2021-03-01 04:43:43 +08:00
|
|
|
"azureml-mlflow",
|
2020-12-05 01:40:27 +08:00
|
|
|
],
|
2021-03-01 04:43:43 +08:00
|
|
|
"nni": [
|
|
|
|
"nni",
|
2021-04-07 02:37:52 +08:00
|
|
|
],
|
2021-06-03 10:08:24 +08:00
|
|
|
"vw": [
|
|
|
|
"vowpalwabbit",
|
2021-06-15 05:11:40 +08:00
|
|
|
],
|
2022-01-06 05:49:12 +08:00
|
|
|
"nlp": [
|
|
|
|
"transformers>=4.14",
|
|
|
|
"datasets",
|
|
|
|
"torch",
|
|
|
|
"seqeval",
|
|
|
|
"nltk",
|
|
|
|
"rouge_score",
|
|
|
|
],
|
2022-01-25 10:39:36 +08:00
|
|
|
"ts_forecast": [
|
|
|
|
"prophet>=1.0.1",
|
|
|
|
"statsmodels>=0.12.2",
|
|
|
|
"hcrystalball==0.1.10",
|
|
|
|
],
|
2022-01-07 15:12:38 +08:00
|
|
|
"forecast": ["prophet>=1.0.1", "statsmodels>=0.12.2", "hcrystalball==0.1.10"],
|
2021-11-04 10:08:23 +08:00
|
|
|
"benchmark": ["catboost>=0.26", "psutil==5.8.0", "xgboost==1.3.3"],
|
2020-12-05 01:40:27 +08:00
|
|
|
},
|
|
|
|
classifiers=[
|
|
|
|
"Programming Language :: Python :: 3",
|
|
|
|
"License :: OSI Approved :: MIT License",
|
2021-04-09 00:29:55 +08:00
|
|
|
"Operating System :: OS Independent",
|
2020-12-05 01:40:27 +08:00
|
|
|
],
|
|
|
|
python_requires=">=3.6",
|
|
|
|
)
|