Commit Graph

322 Commits

Author SHA1 Message Date
Qingyun Wu
b7846048dc Allow FLAML_sample_size in starting_points (#619)
* FLAML_sample_size

* clean up

* starting_points as a list

* catch AssertionError

* per estimator sample size

* import

* per estimator min_sample_size

* Update flaml/automl.py

Co-authored-by: Chi Wang <wang.chi@microsoft.com>

* Update test/automl/test_warmstart.py

Co-authored-by: Chi Wang <wang.chi@microsoft.com>

* add warnings

* adding more tests

* fix a bug in validating starting points

* improve test

* revise test

* revise test

* documentation about custom_hp

* doc and efficiency

* update test

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2022-07-09 16:04:46 -04:00
Xueqing Liu
6cb6a2a19a isinstance(x, int) -> isinstance(x, (int, np.integer)) (#627)
* isinstance(x, int) -> isinstance(x, (int, np.integer))
2022-07-06 13:22:05 -04:00
Xueqing Liu
6108493e0b fix ner bug; refactor post processing of TransformersEstimator prediction (#615)
* fix ner bug; refactor post processing

* fix too many values to unpack

* supporting id/token label for NER
2022-07-05 13:38:21 -04:00
Sanskrati
6dd93bc939 Add space after comma (#623)
Add space after comma in 'subscription_id='<azure-subscription-id>',resource_group='myresourcegroup')'
2022-07-02 09:04:32 -07:00
Chi Wang
9bf13d66f1 use relative url in doc (#620)
* use relative url in doc

* update link
2022-07-01 13:28:16 -07:00
Zvi Baratz
beb10273e8 Typo fix (#618) 2022-06-30 06:43:09 -07:00
Chi Wang
74cca60606 Allow custom GroupKFold object as split_type (#616)
* Allow custom GroupKFold object

* handle unpickle error for prophet 1.1

* eval_method in test_object()
2022-06-29 21:04:25 -07:00
Chi Wang
cbb85e2aab Py36 (#614)
* allow installation in py 3.6

* test py 3.6
2022-06-26 08:32:28 -07:00
Zvi Baratz
8e3fccf592 Updated hooks (#609)
Updated the flake8 hook and black's version, closes #608.

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2022-06-25 13:46:28 -04:00
Chi Wang
7d6822aa40 cath URLError 2022-06-24 08:07:26 -07:00
Zvi Baratz
127e482ac8 Replaced !pip calls with %pip magic command. (#604)
Closes #603.
2022-06-23 18:45:42 -07:00
Chi Wang
6cb44484f6 min eci depends on cost_attr; cost_attr in ls 2022-06-23 15:16:27 -07:00
Chi Wang
4377d53a73 update got version (#607)
* update got version

* None check
2022-06-23 08:02:46 -07:00
Zvi Baratz
fefdb48ef3 Fix automl settings in scikit-learn pipeline integration example (#602)
* Added test directory and core file to gitignore.

Closes #601.

* Fixed pipeline fit parameters.

Closes #600.

* Reverted changes to gitignore.
2022-06-22 19:44:14 -07:00
Chi Wang
c45741a67b support latest xgboost version (#599)
* support latest xgboost version

* Update test_classification.py

* Update 

Exists problems when installing xgb1.6.1 in py3.6

* cleanup

* xgboost version

* remove time_budget_s in test

* remove redundancy

* stop support of python 3.6

Co-authored-by: zsk <shaokunzhang529@gmail.com>
Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
2022-06-21 18:59:07 -07:00
Chi Wang
c5272ad377 log msg about ensemble 2022-06-18 06:48:41 -07:00
Chi Wang
1b40b4b3a6 set_search_properties (#595)
* update the signature of set_search_properties
v1.0.7
2022-06-16 16:30:50 -07:00
Xueqing Liu
4c044e88bd Update documentation for NLP (#594)
* Update Installation.md
2022-06-16 13:52:03 -07:00
Xueqing Liu
7740cd3466 trying to fix the indexerror for ner (#596)
* trying to fix the indexerror for ner
2022-06-16 14:58:23 -04:00
Chi Wang
3a7ebe6896 Add python 3.10 in the CI (#591)
* fix resource limit issue

* add python 3.10 in CI

* reinstall libomp in macos
2022-06-15 20:13:33 -07:00
daniel-555
40a86a5941 Modified setup instructions (#593) 2022-06-15 15:45:33 -07:00
Chi Wang
cf1dfd3966 fix resource limit issue (#589) 2022-06-15 13:46:52 -07:00
Xueqing Liu
79a24d06a9 fixing a bug in nlp/utils.py (#590)
* fixing a bug for ner
2022-06-14 17:31:12 -04:00
Chi Wang
1111d6d43a backup & recover global vars for nested tune.run (#584)
* backup & recover global vars for nested tune.run

* ensure recovering global vars before return
2022-06-14 11:03:54 -07:00
Qingyun Wu
65fa72d583 Class variables, cost_attr, and reproducibility (#587)
* test reproducibility

* cost_attr, _eps and penalty as instance variables
2022-06-13 21:52:42 -07:00
Chi Wang
5de3f54fd9 update time from start when using ray (#586) 2022-06-13 00:12:22 -04:00
Chi Wang
f8cc38bc16 enable ensemble when using ray (#583)
* enable ensemble when using ray

* sanitize config
2022-06-10 21:28:47 -07:00
Chi Wang
0642b6e7bb init value type match (#575)
* init value type match

* bump version to 1.0.6

* add a note about flaml version in notebook

* add note about mismatched ITER_HP

* catch SSLError when accessing OpenML data

* catch errors in autovw test

Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
v1.0.6
2022-06-09 08:11:15 -07:00
Chi Wang
619107edf5 install openml for notebook example v1.0.5 2022-06-05 22:52:20 -07:00
Prajwal Borkar
18f692281a Updated doc (#572)
* Update website/docs/FAQ.md
2022-06-05 11:03:26 -07:00
Chi Wang
2d31138191 set holiday version <0.14 for prophet (#573)
* set holiday version <0.14 for prophet

* bump version to 1.0.5
2022-06-05 09:53:18 -07:00
Chi Wang
c9bac02ea4 add zeroshot notebook (#569)
* add zeroshot notebook
2022-06-04 12:00:58 -07:00
Xueqing Liu
9d164a0119 Update fit_kwargs_by_estimator example in Task-Oriented-AutoML.md (#561)
* Update Task-Oriented-AutoML.md
2022-06-03 20:05:02 -04:00
Xueqing Liu
e0e317bfb1 fixing trainable and update function, completing NOTE (#566)
* fix checkpoint naming + trial id for non-ray mode, fix the bug in running test mode, delete all the checkpoints in non-ray mode

* finished testing for checkpoint naming, delete checkpoint, ray, max iter = 1
2022-06-03 15:19:22 -04:00
Chi Wang
c79c07f450 version update v1.0.4 2022-06-02 12:43:59 -07:00
Chi Wang
1af682b7f5 update doc about scheduler exception (#564)
* update doc about scheduler exception

* remove assert
2022-05-31 17:21:57 -07:00
Xueqing Liu
927a4eeae5 Update documentation for FAQ about how to handle imbalanced data (#560)
* Update website/docs/FAQ.md
2022-05-31 12:11:21 -07:00
Chi Wang
d747800509 include .json file in flaml.default package v1.0.3 2022-05-31 06:56:58 -07:00
Chi Wang
c35b844030 simplify warmstart in blendsearch (#558)
* simplify warmstart in blendsearch

* bump version to 1.0.3
2022-05-28 19:17:40 -07:00
Chi Wang
49e8f7f028 use zeroshot when no budget is given; custom_hp (#563)
* use zeroshot when no budget is given; custom_hp

* update Getting-Started

* protobuf version

* X_val
2022-05-28 17:22:09 -07:00
Chi Wang
7748e0ff49 Update Tune-User-Defined-Function.md (#562)
Added one more use case of tune.
2022-05-26 11:13:08 -07:00
Prajwal Borkar
f8babac21b Removed cat_hp_host (#559) 2022-05-26 10:21:51 -07:00
Qingyun Wu
dcc640c1a3 Documentation, test and bugfix (#556)
* add bs restore test

* use default metric when not provided

* update documentation

* remove print

* period

* remove bs restore test

* Update website/docs/Use-Cases/Task-Oriented-AutoML.md
2022-05-26 07:12:30 -07:00
LinWencong
515a77ac71 solve issue #542. fix pickle.UnpickingError while blendsearch warm start (#554)
Issue I encountered:

#542 run test_restore.py and got _pickle.UnpicklingError: state is not a dictionary

I observed:

1. numpy version
  i. When numpy==1.16*, np.random.RandomState.__getstate__() returns a tuple, not a dict.
    _pickle.UnpicklingError occurs
  ii. When numpy>1.17.0rc1, it returns a dict;
    _pickle.UnpicklingError does not occur
  iii. When numpy>1.17.0rc1, flaml uses np_random_generator = np.random.Generator,
    _pickle.UnpicklingError does not occur

2. class _BackwardsCompatibleNumpyRng
  When I remove func _BackwardsCompatibleNumpyRng.__getattr__() , _pickle.UnpicklingError doesn't occur (regardless of numpy version == 1.16* or 1.17*)

To sum up,
I think making modifications to class _BackwardsCompatibleNumpyRng is not a good choice (_BackwardsCompatibleNumpyRng came from ray)and we still need to learn more about the operation mechanism of pickle.

So I upgraded the numpy version that flaml requires:
  setup.py:"NumPy>=1.17.0rc1"
2022-05-23 11:23:00 -07:00
Chi Wang
d402c63312 align indent and add missing quotation (#555)
* align indent and add missing quotation
2022-05-20 10:49:39 -07:00
harish445
992ea3416c fix indentation in automl.py (#553)
* fix indentation in flaml.py
v1.0.2
2022-05-19 16:29:45 -07:00
Qiaochu Song
2851134052 Quick-fix (#539)
* fix doc string; enable label transform in automl.score
2022-05-19 11:43:34 -04:00
Chi Wang
7126b69ce0 choose n_jobs for ensemble according to n_jobs per learner (#551)
* set n_jobs in ensemble dict

* catch the ensemble error

* choose n_jobs for stacker

* clarify
2022-05-18 21:01:51 -07:00
Xueqing Liu
2ca9e41e4b fixing roberta add_prefix_space bug (#546)
* fixing roberta add_prefix_space bug
2022-05-12 10:57:25 -04:00
Xueqing Liu
2a8decdc50 fix the post-processing bug in NER (#534)
* fix conll bug

* update DataCollatorForAuto

* adding label_list comments
2022-05-10 17:22:57 -04:00