You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

setup.py 2.9 kB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
Add ChaCha (#92) * pickle the AutoML object * get best model per estimator * test deberta * stateless API * pickle the AutoML object * get best model per estimator * test deberta * stateless API * prevent divide by zero * test roberta * BlendSearchTuner * sync * version number * update gitignore * delta time * reindex columns when dropping int-indexed columns * add seed * add seed in Args * merge * init upload of ChaCha * remove redundancy * add back catboost * improve AutoVW API * set min_resource_lease in VWOnlineTrial * docstr * rename * docstr * add docstr * improve API and documentation * fix name * docstr * naming * remove max_resource in scheduler * add TODO in flow2 * remove redundancy in rearcher * add input type * adapt code from ray.tune * move files * naming * documentation * fix import error * fix format issues * remove cb in worse than test * improve _generate_all_comb * remove ray tune * naming * VowpalWabbitTrial * import error * import error * merge test code * scheduler import * fix import * remove * import, minor bug and version * Float or Categorical * fix default * add test_autovw.py * add vowpalwabbit and openml * lint * reorg * lint * indent * add autovw notebook * update notebook * update log msg and autovw notebook * update autovw notebook * update autovw notebook * add available strings for model_select_policy * string for metric * Update vw format in flaml/onlineml/trial.py Co-authored-by: olgavrou <olgavrou@gmail.com> * make init_config optional * add _setup_trial_runner and update notebook * space Co-authored-by: Chi Wang (MSR) <chiw@microsoft.com> Co-authored-by: Chi Wang <wang.chi@microsoft.com> Co-authored-by: Qingyun Wu <qiw@microsoft.com> Co-authored-by: olgavrou <olgavrou@gmail.com>
5 years ago
5 years ago
Add ChaCha (#92) * pickle the AutoML object * get best model per estimator * test deberta * stateless API * pickle the AutoML object * get best model per estimator * test deberta * stateless API * prevent divide by zero * test roberta * BlendSearchTuner * sync * version number * update gitignore * delta time * reindex columns when dropping int-indexed columns * add seed * add seed in Args * merge * init upload of ChaCha * remove redundancy * add back catboost * improve AutoVW API * set min_resource_lease in VWOnlineTrial * docstr * rename * docstr * add docstr * improve API and documentation * fix name * docstr * naming * remove max_resource in scheduler * add TODO in flow2 * remove redundancy in rearcher * add input type * adapt code from ray.tune * move files * naming * documentation * fix import error * fix format issues * remove cb in worse than test * improve _generate_all_comb * remove ray tune * naming * VowpalWabbitTrial * import error * import error * merge test code * scheduler import * fix import * remove * import, minor bug and version * Float or Categorical * fix default * add test_autovw.py * add vowpalwabbit and openml * lint * reorg * lint * indent * add autovw notebook * update notebook * update log msg and autovw notebook * update autovw notebook * update autovw notebook * add available strings for model_select_policy * string for metric * Update vw format in flaml/onlineml/trial.py Co-authored-by: olgavrou <olgavrou@gmail.com> * make init_config optional * add _setup_trial_runner and update notebook * space Co-authored-by: Chi Wang (MSR) <chiw@microsoft.com> Co-authored-by: Chi Wang <wang.chi@microsoft.com> Co-authored-by: Qingyun Wu <qiw@microsoft.com> Co-authored-by: olgavrou <olgavrou@gmail.com>
5 years ago
5 years ago
5 years ago
5 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. import setuptools
  2. import os
  3. here = os.path.abspath(os.path.dirname(__file__))
  4. with open("README.md", "r", encoding="UTF-8") as fh:
  5. long_description = fh.read()
  6. # Get the code version
  7. version = {}
  8. with open(os.path.join(here, "flaml/version.py")) as fp:
  9. exec(fp.read(), version)
  10. __version__ = version["__version__"]
  11. install_requires = [
  12. "NumPy>=1.17.0rc1",
  13. "lightgbm>=2.3.1",
  14. "xgboost>=0.90",
  15. "scipy>=1.4.1",
  16. "pandas>=1.1.4",
  17. "scikit-learn>=0.24",
  18. ]
  19. setuptools.setup(
  20. name="FLAML",
  21. version=__version__,
  22. author="Microsoft Corporation",
  23. author_email="hpo@microsoft.com",
  24. description="A fast library for automated machine learning and tuning",
  25. long_description=long_description,
  26. long_description_content_type="text/markdown",
  27. url="https://github.com/microsoft/FLAML",
  28. packages=setuptools.find_packages(include=["flaml*"]),
  29. package_data={
  30. "flaml.default": ["*/*.json"],
  31. },
  32. include_package_data=True,
  33. install_requires=install_requires,
  34. extras_require={
  35. "notebook": [
  36. "openml==0.10.2",
  37. "jupyter",
  38. "matplotlib",
  39. "rgf-python",
  40. "catboost>=0.26",
  41. ],
  42. "test": [
  43. "flake8>=3.8.4",
  44. "pytest>=6.1.1",
  45. "coverage>=5.3",
  46. "pre-commit",
  47. "catboost>=0.26",
  48. "rgf-python",
  49. "optuna==2.8.0",
  50. "vowpalwabbit",
  51. "openml",
  52. "statsmodels>=0.12.2",
  53. "psutil==5.8.0",
  54. "dataclasses",
  55. "transformers[torch]>=4.14",
  56. "datasets",
  57. "nltk",
  58. "rouge_score",
  59. "hcrystalball==0.1.10",
  60. "seqeval",
  61. ],
  62. "catboost": ["catboost>=0.26"],
  63. "blendsearch": ["optuna==2.8.0"],
  64. "ray": [
  65. "ray[tune]~=1.13",
  66. ],
  67. "azureml": [
  68. "azureml-mlflow",
  69. ],
  70. "nni": [
  71. "nni",
  72. ],
  73. "vw": [
  74. "vowpalwabbit",
  75. ],
  76. "nlp": [
  77. "transformers[torch]>=4.14",
  78. "datasets",
  79. "nltk",
  80. "rouge_score",
  81. "seqeval",
  82. ],
  83. "ts_forecast": [
  84. "holidays<0.14", # to prevent installation error for prophet
  85. "prophet>=1.0.1",
  86. "statsmodels>=0.12.2",
  87. "hcrystalball==0.1.10",
  88. ],
  89. "forecast": [
  90. "holidays<0.14", # to prevent installation error for prophet
  91. "prophet>=1.0.1",
  92. "statsmodels>=0.12.2",
  93. "hcrystalball==0.1.10",
  94. ],
  95. "benchmark": ["catboost>=0.26", "psutil==5.8.0", "xgboost==1.3.3"],
  96. },
  97. classifiers=[
  98. "Programming Language :: Python :: 3",
  99. "License :: OSI Approved :: MIT License",
  100. "Operating System :: OS Independent",
  101. ],
  102. python_requires=">=3.6",
  103. )