Skip to content

A programming framework for agentic AI

remove catboost training dir; ensemble api; blendsearch for hierarchical space; ranking task; forecast improvement (#178)

Chi Wang6ab0730793f4
diff --git a/README.md b/README.md
index 1d7ea39ff..3119917fd 100644
--- a/README.md
+++ b/README.md
@@ -65,7 +65,7 @@ tune.run(train_with_config, config={…}, low_cost_partial_config={…}, time_bu
## Advantages
-* For classification and regression tasks, find quality models with lower computational resources.
+* For common machine learning tasks like classification and regression, find quality models with small computational resources.
* Users can choose their desired customizability: minimal customization (computational resource budget), medium customization (e.g., scikit-style learner, search space and metric), full customization (arbitrary training and evaluation code).
* Allow human guidance in hyperparameter tuning to respect prior on certain subspaces but also able to explore other subspaces. Read more about the
hyperparameter optimization methods
@@ -75,7 +75,7 @@ And they can be used in distributed HPO frameworks such as ray tune or nni.
## Examples
-A basic classification example.
+- A basic classification example.
```python
from flaml import AutoML
@@ -99,7 +99,7 @@ print(automl.predict_proba(X_train))
print(automl.model)
```
-A basic regression example.
+- A basic regression example.
```python
from flaml import AutoML
@@ -123,6 +123,39 @@ print(automl.predict(X_train))
print(automl.model)
```
+- Time series forecasting.
+
+```python
+# pip install flaml[forecast]
+import numpy as np
+from flaml import AutoML
+X_train = np.arange('2014-01', '2021-01', dtype='datetime64[M]')
+y_train = np.random.random(size=72)
+automl = AutoML()
+automl.fit(X_train=X_train[:72], # a single column of timestamp
+ y_train=y_train, # value for each timestamp
+ period=12, # time horizon to forecast, e.g., 12 months
+ task='forecast', time_budget=15, # time budget in seconds
+ log_file_name="test/forecast.log",
+ )
+print(automl.predict(X_train[72:]))
+```
+
+- Learning to rank.
+
+```python
+from sklearn.datasets import fetch_openml
+from flaml import AutoML
+X, y = fetch_openml(name="credit-g", return_X_y=True)
+# not a real learning to rank dataaset
+groups = [200] * 4 + [100] * 2, # group counts
+automl = AutoML()
+automl.fit(
+ X_train, y_train, groups=groups,
+ task='rank', time_budget=10, # in seconds
+)
+```
+
More examples can be found in [notebooks](https://github.com/microsoft/FLAML/tree/main/notebook/).
## Documentation
diff --git a/flaml/automl.py b/flaml/automl.py
index 0b4a1227c..dd5d7dabf 100644
--- a/flaml/automl.py
+++ b/flaml/automl.py
@@ -10,7 +10,7 @@ from functools import partial
import numpy as np
from scipy.sparse import issparse
from sklearn.model_selection import train_test_split, RepeatedStratifiedKFold, \
- RepeatedKFold, GroupKFold, TimeSeriesSplit
+ RepeatedKFold, GroupKFold, TimeSeriesSplit, GroupShuffleSplit
from sklearn.utils import shuffle
import pandas as pd
import logging
@@ -94,13 +94,13 @@ class SearchState:
else:
self.sample_size = self.data_size
obj = result['val_loss']
- train_loss = result['train_loss']
+ metric_for_logging = result['metric_for_logging']
time2eval = result['time_total_s']
trained_estimator = result['trained_estimator']
del result['trained_estimator'] # free up RAM
else:
obj, time2eval, trained_estimator = np.inf, 0.0, None
- train_loss = config = None
+ metric_for_logging = config = None
self.trial_time = time2eval
self.total_time_used += time_used
self.total_iter += 1
@@ -126,7 +126,8 @@ class SearchState:
self.trained_estimator.cleanup()
if trained_estimator:
self.trained_estimator = trained_estimator
- self.train_loss, self.val_loss, self.config = train_loss, obj, config
+ self.metric_for_logging, self.val_loss, self.config = \
+ metric_for_logging, obj, config
def get_hist_config_sig(self, sample_size, config):
config_values = tuple([config[k] for k in self._hp_names])
@@ -144,7 +145,7 @@ class AutoMLState:
def _prepare_sample_train_data(self, sample_size):
full_size = len(self.y_train)
- sampled_weight = None
+ sampled_weight = groups = None
if sample_size <= full_size:
if isinstance(self.X_train, pd.DataFrame):
sampled_X_train = self.X_train.iloc[:sample_size]
@@ -154,12 +155,16 @@ class AutoMLState:
weight = self.fit_kwargs.get('sample_weight')
if weight is not None:
sampled_weight = weight[:sample_size]
+ if self.groups is not None:
+ groups = self.groups[:sample_size]
else:
sampled_X_train = self.X_train_all
sampled_y_train = self.y_train_all
if 'sample_weight' in self.fit_kwargs:
sampled_weight = self.sample_weight_all
- return sampled_X_train, sampled_y_train, sampled_weight
+ if self.groups is not None:
+ groups = self.groups_all
+ return sampled_X_train, sampled_y_train, sampled_weight, groups
def _compute_with_config_base(self,
estimator,
@@ -168,13 +173,15 @@ class AutoMLState:
sample_size = int(config_w_resource['FLAML_sample_size'])
else:
sample_size = self.data_size
- sampled_X_train, sampled_y_train, sampled_weight = \
+ sampled_X_train, sampled_y_train, sampled_weight, groups = \
self._prepare_sample_train_data(sample_size)
if sampled_weight is not None:
weight = self.fit_kwargs['sample_weight']
self.fit_kwargs['sample_weight'] = sampled_weight
else:
weight = None
+ if groups is not None:
+ self.fit_kwargs['groups'] = groups
config = config_w_resource.copy()
if 'FLAML_sample_size' in config:
del config['FLAML_sample_size']
@@ -182,13 +189,14 @@ class AutoMLState:
budget = time_left if sample_size == self.data_size else \
time_left / 2 * sample_size / self.data_size
- trained_estimator, val_loss, train_loss, _, pred_time = \
+ trained_estimator, val_loss, metric_for_logging, _, pred_time = \
compute_estimator(
sampled_X_train,
sampled_y_train,
self.X_val,
self.y_val,
self.weight_val,
+ self.groups_val,
min(budget, self.train_time_limit),
self.kf,
config,
@@ -204,7 +212,7 @@ class AutoMLState:
result = {
'pred_time': pred_time,
'wall_clock_time': time.time() - self._start_time_flag,
- 'train_loss': train_loss,
+ 'metric_for_logging': metric_for_logging,
'val_loss': val_loss,
'trained_estimator': trained_estimator
}
@@ -216,19 +224,23 @@ class AutoMLState:
def _train_with_config(
self, estimator, config_w_resource, sample_size=None
):
- config = config_w_resource.copy()
+ if not sample_size:
+ sample_size = config_w_resource['FLAML_sample_size']
+ config = config_w_resource.get('ml', config_w_resource).copy()
if 'FLAML_sample_size' in config:
- if not sample_size:
- sample_size = config['FLAML_sample_size']
del config['FLAML_sample_size']
+ if "learner" in config:
+ del config['learner']
assert sample_size is not None
- sampled_X_train, sampled_y_train, sampled_weight = \
+ sampled_X_train, sampled_y_train, sampled_weight, groups = \
self._prepare_sample_train_data(sample_size)
if sampled_weight is not None:
weight = self.fit_kwargs['sample_weight']
self.fit_kwargs['sample_weight'] = sampled_weight
else:
weight = None
+ if groups is not None:
+ self.fit_kwargs['groups'] = groups
budget = None if self.time_budget is None else (
self.time_budget - self.time_from_start)
estimator, train_time = train_estimator(
@@ -368,18 +380,18 @@ class AutoML:
return self._trained_estimator.classes_.tolist()
return None
- def predict(self, X_test, freq=None):
+ def predict(self, X_test):
'''Predict label from features.
Args:
X_test: A numpy array of featurized instances, shape n * m,
- or a pandas dataframe with one column with timestamp values
- for 'forecasting' task.
- freq: str or pandas offset, default=None | The frequency of the
- time-series.
+ or for 'forecasting' task:
+ a pandas dataframe with one column of timestamp values
+ or an integer n for the predict steps (only valid when
+ the estimator is arima or sarimax).
Returns:
- A numpy array of shape n * 1 - - each element is a predicted class
+ A array-like of shape n * 1 - - each element is a predicted
label for an instance.
'''
if self._trained_estimator is None:
@@ -387,13 +399,7 @@ class AutoML:
"No estimator is trained. Please run fit with enough budget.")
return None
X_test = self._preprocess(X_test)
- if self._state.task == 'forecast':
- X_test_df = pd.DataFrame(X_test)
- X_test_col = list(X_test.columns)[0]
- X_test_df = X_test_df.rename(columns={X_test_col: 'ds'})
- y_pred = self._trained_estimator.predict(X_test_df, freq=freq)
- else:
- y_pred = self._trained_estimator.predict(X_test)
+ y_pred = self._trained_estimator.predict(X_test)
if y_pred.ndim > 1 and isinstance(y_pred, np.ndarray):
y_pred = y_pred.flatten()
if self._label_transformer:
@@ -418,14 +424,20 @@ class AutoML:
return proba
def _preprocess(self, X):
- if issparse(X):
- X = X.tocsr()
- if self._transformer:
- X = self._transformer.transform(X)
+ if isinstance(X, int):
+ return X
+ if self._state.task == 'forecast':
+ X = pd.DataFrame(X)
+ X = X.rename(columns={X.columns[0]: 'ds'})
+ else:
+ if issparse(X):
+ X = X.tocsr()
+ if self._transformer:
+ X = self._transformer.transform(X)
return X
def _validate_data(self, X_train_all, y_train_all, dataframe, label,
- X_val=None, y_val=None):
+ X_val=None, y_val=None, groups_val=None, groups=None):
if self._state.task == 'forecast':
if dataframe is not None and label is not None:
dataframe = dataframe.copy()
@@ -433,13 +445,11 @@ class AutoML:
elif dataframe is not None:
if ('ds' not in dataframe) or ('y' not in dataframe):
raise ValueError(
- 'For forecasting task, Dataframe must have columns "ds" and "y" '
- 'with the dates and values respectively.'
- )
+ 'For forecasting task, dataframe must have columns "ds" and "y" '
+ 'with the dates and values respectively.')
elif (X_train_all is not None) and (y_train_all is not None):
dataframe = pd.DataFrame(X_train_all)
- time_col = list(dataframe.columns)[0]
- dataframe = dataframe.rename(columns={time_col: 'ds'})
+ dataframe = dataframe.rename(columns={dataframe.columns[0]: 'ds'})
dataframe['y'] = pd.Series(y_train_all)
X_train_all = None
y_train_all = None
@@ -515,12 +525,23 @@ class AutoML:
self._state.y_val = y_val
else:
self._state.X_val = self._state.y_val = None
+ if groups is not None and len(groups) != self._nrow:
+ # groups is given as group counts
+ self._state.groups = np.concatenate(
+ [[i] * c for i, c in enumerate(groups)])
+ assert len(self._state.groups) == self._nrow, \
+ "the sum of group counts must match the number of examples"
+ self._state.groups_val = np.concatenate(
+ [[i] * c for i, c in enumerate(groups_val)]
+ ) if groups_val is not None else None
+ else:
+ self._state.groups_val = groups_val
+ self._state.groups = groups
def _prepare_data(self,
eval_method,
split_ratio,
- n_splits,
- period=None):
+ n_splits):
X_val, y_val = self._state.X_val, self._state.y_val
if issparse(X_val):
X_val = X_val.tocsr()
@@ -564,25 +585,25 @@ class AutoML:
random_state=RANDOM_SEED)
self._state.fit_kwargs[
'sample_weight'] = self._state.sample_weight_all
- elif hasattr(self._state, 'groups') and self._state.groups is not None:
- X_train_all, y_train_all, self._state.groups = shuffle(
- X_train_all, y_train_all, self._state.groups,
- random_state=RANDOM_SEED)
else:
X_train_all, y_train_all = shuffle(
X_train_all, y_train_all, random_state=RANDOM_SEED)
- if self._df:
- X_train_all.reset_index(drop=True, inplace=True)
- if isinstance(y_train_all, pd.Series):
- y_train_all.reset_index(drop=True, inplace=True)
+ if self._df:
+ X_train_all.reset_index(drop=True, inplace=True)
+ if isinstance(y_train_all, pd.Series):
+ y_train_all.reset_index(drop=True, inplace=True)
X_train, y_train = X_train_all, y_train_all
- if X_val is None:
+ self._state.groups_all = self._state.groups
+ if X_val is None and eval_method == 'holdout':
# if eval_method = holdout, make holdout data
- if eval_method == 'holdout' and self._split_type == 'time':
- if 'period' in self._state.fit_kwargs:
+ if self._split_type == 'time':
+ if self._state.task == 'forecast':
num_samples = X_train_all.shape[0]
- split_idx = num_samples - self._state.fit_kwargs.get('period')
+ period = self._state.fit_kwargs['period']
+ assert period < num_samples, (
+ f"period={period}>#examples={num_samples}")
+ split_idx = num_samples - period
X_train = X_train_all[:split_idx]
y_train = y_train_all[:split_idx]
X_val = X_train_all[split_idx:]
@@ -603,7 +624,21 @@ class AutoML:
y_train_all,
test_size=split_ratio,
shuffle=False)
- elif self._state.task != 'regression' and eval_method == 'holdout':
+ elif self._state.task == 'rank':
+ gss = GroupShuffleSplit(n_splits=1, test_size=split_ratio,
+ random_state=RANDOM_SEED)
+ for train_idx, val_idx in gss.split(X_train_all, y_train_all,
+ self._state.groups):
+ if self._df:
+ X_train, X_val = X_train_all.iloc[
+ train_idx], X_train_all.iloc[val_idx]
+ else:
+ X_train, X_val = X_train_all[
+ train_idx], X_train_all[val_idx]
+ y_train, y_val = y_train_all[train_idx], y_train_all[val_idx]
+ self._state.groups, self._state.groups_val = self._state.groups[
+ train_idx], self._state.groups[val_idx]
+ elif self._state.task != 'regression':
# for classification, make sure the labels are complete in both
# training and validation data
label_set, first = np.unique(y_train_all, return_index=True)
@@ -617,8 +652,7 @@ class AutoML:
X_first = X_train_all.iloc[first] if self._df else X_train_all[
first]
X_rest = X_train_all.iloc[rest] if self._df else X_train_all[rest]
- y_rest = y_train_all.iloc[rest] if isinstance(
- y_train_all, pd.Series) else y_train_all[rest]
+ y_rest = y_train_all[rest]
stratify = y_rest if self._split_type == 'stratified' else \
None
if 'sample_weight' in self._state.fit_kwargs:
@@ -647,7 +681,7 @@ class AutoML:
X_val = concat(X_first, X_val)
y_val = concat(label_set, y_val) if self._df else \
np.concatenate([label_set, y_val])
- elif eval_method == 'holdout' and self._state.task == 'regression':
+ elif self._state.task == 'regression':
if 'sample_weight' in self._state.fit_kwargs:
X_train, X_val, y_train, y_val, self._state.fit_kwargs[
'sample_weight'], self._state.weight_val = \
@@ -669,16 +703,16 @@ class AutoML:
self._state.y_val = (X_train, y_train, X_val, y_val)
self._state.X_train_all = X_train_all
self._state.y_train_all = y_train_all
- if hasattr(self._state, 'groups') and self._state.groups is not None:
- logger.info("Using GroupKFold")
- assert len(self._state.groups) == y_train_all.size, \
+ if self._split_type == 'group':
+ # logger.info("Using GroupKFold")
+ assert len(self._state.groups_all) == y_train_all.size, \
"the length of groups must match the number of examples"
- assert len(np.unique(self._state.groups)) >= n_splits, \
+ assert len(np.unique(self._state.groups_all)) >= n_splits, \
"the number of groups must be equal or larger than n_splits"
self._state.kf = GroupKFold(n_splits)
- self._state.kf.groups = self._state.groups
+ self._state.kf.groups = self._state.groups_all
elif self._split_type == "stratified":
- logger.info("Using StratifiedKFold")
+ # logger.info("Using StratifiedKFold")
assert y_train_all.size >= n_splits, (
f"{n_splits}-fold cross validation"
f" requires input data with at least {n_splits} examples.")
@@ -688,14 +722,22 @@ class AutoML:
self._state.kf = RepeatedStratifiedKFold(
n_splits=n_splits, n_repeats=1, random_state=RANDOM_SEED)
elif self._split_type == "time":
- logger.info("Using TimeSeriesSplit")
+ # logger.info("Using TimeSeriesSplit")
if self._state.task == 'forecast':
+ period = self._state.fit_kwargs['period']
+ if period * (n_splits + 1) > y_train_all.size:
+ n_splits = int(y_train_all.size / period - 1)
+ assert n_splits >= 2, (
+ f"cross validation for forecasting period={period}"
+ f" requires input data with at least {3 * period} examples.")
+ logger.info(
+ f"Using nsplits={n_splits} due to data size limit.")
self._state.kf = TimeSeriesSplit(
- n_splits=n_splits, test_size=self._state.fit_kwargs.get('period'))
+ n_splits=n_splits, test_size=period)
else:
self._state.kf = TimeSeriesSplit(n_splits=n_splits)
else:
- logger.info("Using RepeatedKFold")
+ # logger.info("Using RepeatedKFold")
self._state.kf = RepeatedKFold(
n_splits=n_splits, n_repeats=1, random_state=RANDOM_SEED)
@@ -745,7 +787,8 @@ class AutoML:
eval_method='auto',
split_ratio=SPLIT_RATIO,
n_splits=N_SPLITS,
- split_type="stratified",
+ split_type=None,
+ groups=None,
n_jobs=1,
train_best=True,
train_full=False,
@@ -754,31 +797,51 @@ class AutoML:
'''Retrain from log file
Args:
- time_budget: A float number of the time budget in seconds
log_file_name: A string of the log file name
X_train: A numpy array of training data in shape n*m
y_train: A numpy array of labels in shape n*1
+ dataframe: A dataframe of training data including label column.
+ For 'forecast' task, dataframe must be specified and should
+ have two columns: timestamp and value.
+ label: A str of the label column name for 'classification' or
+ 'regression' task, e.g., 'label';
+ or a tuple of strings for timestamp and value columns for
+ 'forecasting' task, e.g., ('timestamp', 'value').
+ Note: If X_train and y_train are provided,
+ dataframe and label are ignored;
+ If not, dataframe and label must be provided.
+ time_budget: A float number of the time budget in seconds.
task: A string of the task type, e.g.,
- 'classification', 'regression'
+ 'classification', 'regression', 'forecast', 'rank'.
eval_method: A string of resampling strategy, one of
- ['auto', 'cv', 'holdout']
- split_ratio: A float of the validation data percentage for holdout
- n_splits: An integer of the number of folds for cross-validation
- n_jobs: An integer of the number of threads for training
+ ['auto', 'cv', 'holdout'].
+ split_ratio: A float of the validation data percentage for holdout.
+ n_splits: An integer of the number of folds for cross-validation.
+ split_type: str or None, default=None | the data split type.
+ For classification tasks, valid choices are [
+ None, 'stratified', 'uniform', 'time']. None -> stratified.
+ For regression tasks, valid choices are [None, 'uniform', 'time'].
+ None -> uniform.
+ For time series forecasting, must be None or 'time'.
+ For ranking task, must be None or 'group'.
+ groups: None or array-like | Group labels (with matching length to
+ y_train) or groups counts (with sum equal to length of y_train)
+ for training data.
+ n_jobs: An integer of the number of threads for training.
train_best: A boolean of whether to train the best config in the
- time budget; if false, train the last config in the budget
+ time budget; if false, train the last config in the budget.
train_full: A boolean of whether to train on the full data. If true,
- eval_method and sample_size in the log file will be ignored
+ eval_method and sample_size in the log file will be ignored.
record_id: the ID of the training log record from which the model will
be retrained. By default `record_id = -1` which means this will be
ignored. `record_id = 0` corresponds to the first trial, and
when `record_id >= 0`, `time_budget` will be ignored.
**fit_kwargs: Other key word arguments to pass to fit() function of
- the searched learners, such as sample_weight
+ the searched learners, such as sample_weight.
'''
self._state.task = task
self._state.fit_kwargs = fit_kwargs
- self._validate_data(X_train, y_train, dataframe, label)
+ self._validate_data(X_train, y_train, dataframe, label, groups=groups)
logger.info('log file name {}'.format(log_file_name))
@@ -829,24 +892,17 @@ class AutoML:
# Partially copied from fit() function
# Initilize some attributes required for retrain_from_log
self._state.task = task
- if self._state.task == 'classification':
- self._state.task = get_classification_objective(
- len(np.unique(self._y_train_all)))
- assert split_type in ["stratified", "uniform", "time"]
- self._split_type = split_type
- elif self._state.task == 'regression':
- if split_type in ["uniform", "time"]:
- self._split_type = split_type
- else:
- self._split_type = "uniform"
- elif self._state.task == 'forecast':
- self._split_type = "time"
+ self._decide_split_type(split_type)
if record_id >= 0:
eval_method = 'cv'
elif eval_method == 'auto':
eval_method = self._decide_eval_method(time_budget)
self.modelcount = 0
- self._prepare_data(eval_method, split_ratio, n_splits)
+ if self._state.task != 'forecast':
+ self._prepare_data(eval_method, split_ratio, n_splits)
+ else:
+ self._prepare_data(eval_method, split_ratio, n_splits,
+ period=self._state.fit_kwargs['period'])
self._state.time_budget = None
self._state.n_jobs = n_jobs
self._trained_estimator = self._state._train_with_config(
@@ -854,6 +910,26 @@ class AutoML:
logger.info('retrain from log succeeded')
return training_duration
+ def _decide_split_type(self, split_type):
+ if self._state.task == 'classification':
+ self._state.task = get_classification_objective(
+ len(np.unique(self._y_train_all)))
+ assert split_type in [None, "stratified", "uniform", "time"]
+ self._split_type = split_type or "stratified"
+ elif self._state.task == 'regression':
+ assert split_type in [None, "uniform", "time"]
+ self._split_type = split_type or "uniform"
+ elif self._state.task == 'forecast':
+ assert split_type in [None, "time"]
+ self._split_type = "time"
+ assert isinstance(self._state.fit_kwargs.get('period'), int), (
+ "missing a required integer 'period' for forecast.")
+ elif self._state.task == 'rank':
+ assert self._state.groups is not None, \
+ 'groups must be specified for ranking task.'
+ assert split_type in [None, "group"]
+ self._split_type = 'group'
+
def _decide_eval_method(self, time_budget):
if self._state.X_val is not None:
return 'holdout'
@@ -1020,7 +1096,7 @@ class AutoML:
else:
return {'pred_time': 0,
'wall_clock_time': None,
- 'train_loss': np.inf,
+ 'metric_for_logging': np.inf,
'val_loss': np.inf,
'trained_estimator': None
}
@@ -1065,10 +1141,11 @@ class AutoML:
X_val=None,
y_val=None,
sample_weight_val=None,
+ groups_val=None,
groups=None,
verbose=1,
retrain_full=True,
- split_type="stratified",
+ split_type=None,
learner_selector='sample',
hpo_method=None,
starting_points={},
@@ -1104,14 +1181,15 @@ class AutoML:
def custom_metric(
X_test, y_test, estimator, labels,
- X_train, y_train, weight_test=None, weight_train=None
+ X_train, y_train, weight_test=None, weight_train=None,
+ config=None, groups_test=None, groups_train=None,
):
return metric_to_minimize, metrics_to_log
which returns a float number as the minimization objective,
and a tuple of floats or a dictionary as the metrics to log.
task: A string of the task type, e.g.,
- 'classification', 'regression', 'forecast'.
+ 'classification', 'regression', 'forecast', 'rank'.
n_jobs: An integer of the number of threads for training.
log_file_name: A string of the log file name.
estimator_list: A list of strings for estimator names, or 'auto'
@@ -1125,6 +1203,10 @@ class AutoML:
max_iter: An integer of the maximal number of iterations.
sample: A boolean of whether to sample the training data during
search.
+ ensemble: boolean or dict | default=False. Whether to perform
+ ensemble after search. Can be a dict with keys 'passthrough'
+ and 'final_estimator' to specify the passthrough and
+ final_estimator in the stacker.
eval_method: A string of resampling strategy, one of
['auto', 'cv', 'holdout'].
split_ratio: A float of the valiation data percentage for holdout.
@@ -1144,9 +1226,13 @@ class AutoML:
X_val: None or a numpy array or a pandas dataframe of validation data.
y_val: None or a numpy array or a pandas series of validation labels.
sample_weight_val: None or a numpy array of the sample weight of
- validation data.
- groups: None or an array-like of shape (n,) | Group labels for the
- samples used while splitting the dataset into train/valid set.
+ validation data of the same shape as y_val.
+ groups_val: None or array-like | group labels (with matching length
+ to y_val) or group counts (with sum equal to length of y_val)
+ for validation data. Need to be consistent with groups.
+ groups: None or array-like | Group labels (with matching length to
+ y_train) or groups counts (with sum equal to length of y_train)
+ for training data.
verbose: int, default=1 | Controls the verbosity, higher means more
messages.
retrain_full: bool or str, default=True | whether to retrain the
@@ -1154,6 +1240,13 @@ class AutoML:
True - retrain only after search finishes; False - no retraining;
'budget' - do best effort to retrain without violating the time
budget.
+ split_type: str or None, default=None | the data split type.
+ For classification tasks, valid choices are [
+ None, 'stratified', 'uniform', 'time']. None -> stratified.
+ For regression tasks, valid choices are [None, 'uniform', 'time'].
+ None -> uniform.
+ For time series forecasting, must be None or 'time'.
+ For ranking task, must be None or 'group'.
hpo_method: str or None, default=None | The hyperparameter
optimization method. When it is None, CFO is used.
No need to set when using flaml's default search space or using
@@ -1182,9 +1275,9 @@ class AutoML:
self._state.log_training_metric = log_training_metric
self._state.fit_kwargs = fit_kwargs
self._state.weight_val = sample_weight_val
- self._state.groups = groups
- self._validate_data(X_train, y_train, dataframe, label, X_val, y_val)
+ self._validate_data(X_train, y_train, dataframe, label, X_val, y_val,
+ groups_val, groups)
self._search_states = {} # key: estimator name; value: SearchState
self._random = np.random.RandomState(RANDOM_SEED)
if seed is not None:
@@ -1194,24 +1287,7 @@ class AutoML:
self.verbose = verbose
if verbose == 0:
logger.setLevel(logging.WARNING)
- if self._state.task == 'classification':
- self._state.task = get_classification_objective(
- len(np.unique(self._y_train_all)))
- assert split_type in ["stratified", "uniform", "time"]
- self._split_type = split_type
- elif self._state.task == 'regression':
- if split_type in ["uniform", "time"]:
- self._split_type = split_type
- else:
- self._split_type = "uniform"
- elif self._state.task == 'forecast':
- if split_type is not None and split_type != 'time':
- raise ValueError(
- "split_type must be 'time' when task is 'forecast'.")
- self._split_type = "time"
- if self._state.fit_kwargs.get('period') is None:
- raise TypeError(
- "missing 1 required argument for 'forecast' task: 'period'.")
+ self._decide_split_type(split_type)
if eval_method == 'auto' or self._state.X_val is not None:
eval_method = self._decide_eval_method(time_budget)
self._state.eval_method = eval_method
@@ -1227,12 +1303,8 @@ class AutoML:
self._retrain_final = retrain_full is True and (
eval_method == 'holdout' and self._state.X_val is None) or (
eval_method == 'cv')
- if self._state.task != 'forecast':
- self._prepare_data(eval_method, split_ratio, n_splits)
- else:
- self._prepare_data(eval_method, split_ratio, n_splits,
- period=self._state.fit_kwargs['period'])
- self._sample = sample and eval_method != 'cv' and (
+ self._prepare_data(eval_method, split_ratio, n_splits)
+ self._sample = sample and task != 'rank' and eval_method != 'cv' and (
MIN_SAMPLE_TRAIN * SAMPLE_MULTIPLY_FACTOR < self._state.data_size)
if 'auto' == metric:
if 'binary' in self._state.task:
@@ -1241,11 +1313,13 @@ class AutoML:
metric = 'log_loss'
elif self._state.task == 'forecast':
metric = 'mape'
+ elif self._state.task == 'rank':
+ metric = 'ndcg'
else:
metric = 'r2'
self._state.metric = metric
if metric in ['r2', 'accuracy', 'roc_auc', 'roc_auc_ovr', 'roc_auc_ovo',
- 'f1', 'ap', 'micro_f1', 'macro_f1']:
+ 'f1', 'ap', 'micro_f1', 'macro_f1', 'ndcg']:
error_metric = f"1-{metric}"
elif isinstance(metric, str):
error_metric = metric
@@ -1256,6 +1330,8 @@ class AutoML:
if 'auto' == estimator_list:
if self._state.task == 'forecast':
estimator_list = ['fbprophet', 'arima', 'sarimax']
+ elif self._state.task == 'rank':
+ estimator_list = ['lgbm', 'xgboost']
else:
estimator_list = [
'lgbm', 'rf', 'catboost', 'xgboost', 'extra_tree']
@@ -1278,7 +1354,9 @@ class AutoML:
logger.info("List of ML learners in AutoML Run: {}".format(
estimator_list))
self.estimator_list = estimator_list
- self._hpo_method = hpo_method or 'cfo'
+ self._hpo_method = hpo_method or (
+ 'cfo' if n_concurrent_trials == 1 or len(estimator_list) == 1
+ else 'bs')
self._state.time_budget = time_budget
self._active_estimators = estimator_list.copy()
self._ensemble = ensemble
@@ -1315,7 +1393,8 @@ class AutoML:
del self._X_train_all, self._y_train_all, self._state.kf
del self._state.X_train, self._state.X_train_all, self._state.X_val
del self._state.y_train, self._state.y_train_all, self._state.y_val
- del self._sample_weight_full, self._state.fit_kwargs, self._state.groups
+ del self._sample_weight_full, self._state.fit_kwargs
+ del self._state.groups, self._state.groups_all, self._state.groups_val
for state in self._search_states.values():
if state.trained_estimator:
del state.trained_estimator
@@ -1363,8 +1442,7 @@ class AutoML:
del p[k]
search_alg = SearchAlgo(max_concurrent=self._n_concurrent_trials,
- points_to_evaluate=points_to_evaluate
- )
+ points_to_evaluate=points_to_evaluate)
else:
search_alg = SearchAlgo(
metric='val_loss',
@@ -1387,7 +1465,8 @@ class AutoML:
analysis = ray.tune.run(
self.trainable, search_alg=search_alg, config=self.search_space,
metric='val_loss', mode='min', resources_per_trial=resources_per_trial,
- time_budget_s=self._state.time_budget, num_samples=self._max_iter)
+ time_budget_s=self._state.time_budget, num_samples=self._max_iter,
+ verbose=self.verbose)
# logger.info([trial.last_result for trial in analysis.trials])
trials = sorted((trial for trial in analysis.trials if trial.last_result
and trial.last_result['wall_clock_time'] is not None),
@@ -1421,7 +1500,7 @@ class AutoML:
if (better or self._log_type == 'all') and self._training_log:
self._training_log.append(
self._iter_per_learner[estimator],
- search_state.train_loss,
+ search_state.metric_for_logging,
search_state.trial_time,
self._state.time_from_start,
search_state.val_loss,
@@ -1591,7 +1670,7 @@ class AutoML:
if self._training_log:
self._training_log.append(
self._iter_per_learner[estimator],
- search_state.train_loss,
+ search_state.metric_for_logging,
search_state.trial_time,
self._state.time_from_start,
search_state.val_loss,
@@ -1604,8 +1683,8 @@ class AutoML:
with mlflow.start_run(nested=True):
mlflow.log_metric('iter_counter',
self._iter_per_learner[estimator])
- mlflow.log_param('train_loss',
- search_state.train_loss)
+ mlflow.log_param('metric_for_logging',
+ search_state.metric_for_logging)
mlflow.log_metric('trial_time',
search_state.trial_time)
mlflow.log_metric('wall_clock_time',
@@ -1702,7 +1781,9 @@ class AutoML:
for search_state in self._search_states.values())
if self._trained_estimator:
logger.info(f'selected model: {self._trained_estimator.model}')
- if self._ensemble:
+ if self._ensemble and self._state.task in (
+ 'binary:logistic', 'multi:softmax', 'regression',
+ ):
search_states = list(x for x in self._search_states.items()
if x[1].trained_estimator)
search_states.sort(key=lambda x: x[1].best_loss)
@@ -1714,15 +1795,20 @@ class AutoML:
logger.info(estimators)
if len(estimators) <= 1:
return
- if self._state.task != "regression":
+ if self._state.task in ('binary:logistic', 'multi:softmax'):
from sklearn.ensemble import StackingClassifier as Stacker
- for e in estimators:
- e[1]._estimator_type = 'classifier'
else:
from sklearn.ensemble import StackingRegressor as Stacker
- best_m = self._trained_estimator
- stacker = Stacker(estimators, best_m, n_jobs=self._state.n_jobs,
- passthrough=True)
+ if isinstance(self._ensemble, dict):
+ final_estimator = self._ensemble.get(
+ 'final_estimator', self._trained_estimator)
+ passthrough = self._ensemble.get('passthrough', True)
+ else:
+ final_estimator = self._trained_estimator
+ passthrough = True
+ stacker = Stacker(
+ estimators, final_estimator, n_jobs=self._state.n_jobs,
+ passthrough=passthrough)
if self._sample_weight_full is not None:
self._state.fit_kwargs[
'sample_weight'] = self._sample_weight_full
@@ -1734,9 +1820,11 @@ class AutoML:
elif self._retrain_final:
# reset time budget for retraining
self._state.time_from_start -= self._state.time_budget
- if (self._state.time_budget - self._state.time_from_start
- > self._selected.est_retrain_time(self.data_size_full)) \
- and self._selected.best_config_sample_size == self._state.data_size:
+ if self._state.task == 'forecast' or (
+ self._state.time_budget - self._state.time_from_start
+ > self._selected.est_retrain_time(self.data_size_full)
+ and self._selected.best_config_sample_size == self._state.data_size
+ ):
self._trained_estimator, \
retrain_time = self._state._train_with_config(
self._best_estimator,
diff --git a/flaml/data.py b/flaml/data.py
index b2eaeed19..765a44114 100644
--- a/flaml/data.py
+++ b/flaml/data.py
@@ -146,7 +146,7 @@ def get_output_from_log(filename, time_budget):
config = record.config
learner = record.learner.split('_')[0]
sample_size = record.sample_size
- train_loss = record.logged_metric
+ metric = record.logged_metric
if time_used < time_budget and np.isfinite(val_loss):
if val_loss < best_val_loss:
@@ -156,7 +156,7 @@ def get_output_from_log(filename, time_budget):
best_config_list.append(best_config)
search_time_list.append(time_used)
best_error_list.append(best_val_loss)
- logged_metric_list.append(train_loss)
+ logged_metric_list.append(metric)
error_list.append(val_loss)
config_list.append({"Current Learner": learner,
"Current Sample": sample_size,
@@ -242,8 +242,12 @@ class DataTransformer:
X[cat_columns] = X[cat_columns].astype('category')
if num_columns:
X_num = X[num_columns]
- if drop and np.issubdtype(X_num.columns.dtype, np.integer):
+ if np.issubdtype(X_num.columns.dtype, np.integer) and (
+ drop or min(X_num.columns) != 0
+ or max(X_num.columns) != X_num.shape[1] - 1
+ ):
X_num.columns = range(X_num.shape[1])
+ drop = True
else:
drop = False
from sklearn.impute import SimpleImputer
@@ -257,12 +261,12 @@ class DataTransformer:
cat_columns, num_columns, datetime_columns
self._drop = drop
- if task == 'regression':
- self.label_transformer = None
- else:
+ if task in ('binary:logistic', 'multi:softmax'):
from sklearn.preprocessing import LabelEncoder
self.label_transformer = LabelEncoder()
y = self.label_transformer.fit_transform(y)
+ else:
+ self.label_transformer = None
return X, y
def transform(self, X):
@@ -302,3 +306,8 @@ class DataTransformer:
X_num.columns = range(X_num.shape[1])
X[num_columns] = self.transformer.transform(X_num)
return X
+
+
+def group_counts(groups):
+ _, i, c = np.unique(groups, return_counts=True, return_index=True)
+ return c[np.argsort(i)]
diff --git a/flaml/ml.py b/flaml/ml.py
index 58a4659c2..8f1e88470 100644
--- a/flaml/ml.py
+++ b/flaml/ml.py
@@ -4,17 +4,17 @@
'''
import time
-from joblib.externals.cloudpickle.cloudpickle import instance
import numpy as np
import pandas as pd
from sklearn.metrics import mean_squared_error, r2_score, roc_auc_score, \
accuracy_score, mean_absolute_error, log_loss, average_precision_score, \
- f1_score, mean_absolute_percentage_error
+ f1_score, mean_absolute_percentage_error, ndcg_score
from sklearn.model_selection import RepeatedStratifiedKFold, GroupKFold, TimeSeriesSplit
from .model import (
XGBoostEstimator, XGBoostSklearnEstimator, RandomForestEstimator,
LGBMEstimator, LRL1Classifier, LRL2Classifier, CatBoostEstimator,
ExtraTreeEstimator, KNeighborsEstimator, FBProphet, ARIMA, SARIMAX)
+from .data import group_counts
import logging
logger = logging.getLogger(__name__)
@@ -56,26 +56,29 @@ def get_estimator_class(task, estimator_name):
def sklearn_metric_loss_score(
- metric_name, y_predict, y_true, labels=None, sample_weight=None
+ metric_name, y_predict, y_true, labels=None, sample_weight=None,
+ groups=None,
):
'''Loss using the specified metric
Args:
metric_name: A string of the metric name, one of
'r2', 'rmse', 'mae', 'mse', 'accuracy', 'roc_auc', 'roc_auc_ovr',
- 'roc_auc_ovo', 'log_loss', 'mape', 'f1', 'ap', 'micro_f1', 'macro_f1'
+ 'roc_auc_ovo', 'log_loss', 'mape', 'f1', 'ap', 'ndcg',
+ 'micro_f1', 'macro_f1'.
y_predict: A 1d or 2d numpy array of the predictions which can be
used to calculate the metric. E.g., 2d for log_loss and 1d
for others.
- y_true: A 1d numpy array of the true labels
- labels: A 1d numpy array of the unique labels
- sample_weight: A 1d numpy array of the sample weight
+ y_true: A 1d numpy array of the true labels.
+ labels: A 1d numpy array of the unique labels.
+ sample_weight: A 1d numpy array of the sample weight.
+ groups: A 1d numpy array of the group labels.
Returns:
- score: A float number of the loss, the lower the better
+ score: A float number of the loss, the lower the better.
'''
metric_name = metric_name.lower()
- if 'r2' in metric_name:
+ if 'r2' == metric_name:
score = 1.0 - r2_score(y_true, y_predict, sample_weight=sample_weight)
elif metric_name == 'rmse':
score = np.sqrt(mean_squared_error(
@@ -98,26 +101,40 @@ def sklearn_metric_loss_score(
elif metric_name == 'roc_auc_ovo':
score = 1.0 - roc_auc_score(
y_true, y_predict, sample_weight=sample_weight, multi_class='ovo')
- elif 'log_loss' in metric_name:
+ elif 'log_loss' == metric_name:
score = log_loss(
y_true, y_predict, labels=labels, sample_weight=sample_weight)
- elif 'mape' in metric_name:
+ elif 'mape' == metric_name:
try:
score = mean_absolute_percentage_error(
y_true, y_predict)
except ValueError:
return np.inf
- elif 'micro_f1' in metric_name:
+ elif 'micro_f1' == metric_name:
score = 1 - f1_score(
y_true, y_predict, sample_weight=sample_weight, average='micro')
- elif 'macro_f1' in metric_name:
+ elif 'macro_f1' == metric_name:
score = 1 - f1_score(
y_true, y_predict, sample_weight=sample_weight, average='macro')
- elif 'f1' in metric_name:
+ elif 'f1' == metric_name:
score = 1 - f1_score(y_true, y_predict, sample_weight=sample_weight)
- elif 'ap' in metric_name:
+ elif 'ap' == metric_name:
score = 1 - average_precision_score(
y_true, y_predict, sample_weight=sample_weight)
+ elif 'ndcg' in metric_name:
+ if '@' in metric_name:
+ k = int(metric_name.split('@', 1)[-1])
+ counts = group_counts(groups)
+ score = 0
+ psum = 0
+ for c in counts:
+ score -= ndcg_score(np.asarray([y_true[psum:psum + c]]),
+ np.asarray([y_predict[psum:psum + c]]), k=k)
+ psum += c
+ score /= len(counts)
+ score += 1
+ else:
+ score = 1 - ndcg_score([y_true], [y_predict])
else:
raise ValueError(
metric_name + ' is not a built-in metric, '
@@ -128,92 +145,60 @@ def sklearn_metric_loss_score(
return score
-def get_y_pred(estimator, X, eval_metric, obj, freq=None):
+def get_y_pred(estimator, X, eval_metric, obj):
if eval_metric in ['roc_auc', 'ap'] and 'binary' in obj:
y_pred_classes = estimator.predict_proba(X)
y_pred = y_pred_classes[
:, 1] if y_pred_classes.ndim > 1 else y_pred_classes
elif eval_metric in ['log_loss', 'roc_auc', 'roc_auc_ovr', 'roc_auc_ovo']:
y_pred = estimator.predict_proba(X)
- elif eval_metric == 'mape':
- y_pred = estimator.predict(X, freq=freq)
else:
y_pred = estimator.predict(X)
return y_pred
-def get_test_loss(
- estimator, X_train, y_train, X_test, y_test, weight_test,
- eval_metric, obj, labels=None, budget=None, log_training_metric=False, fit_kwargs={}
-):
+def get_test_loss(config, estimator, X_train, y_train, X_test, y_test, weight_test,
+ groups_test, eval_metric, obj, labels=None, budget=None,
+ log_training_metric=False, fit_kwargs={}):
+
start = time.time()
+ # if groups_test is not None:
+ # fit_kwargs['groups_val'] = groups_test
+ # fit_kwargs['X_val'] = X_test
+ # fit_kwargs['y_val'] = y_test
estimator.fit(X_train, y_train, budget, **fit_kwargs)
if isinstance(eval_metric, str):
pred_start = time.time()
test_pred_y = get_y_pred(estimator, X_test, eval_metric, obj)
pred_time = (time.time() - pred_start) / X_test.shape[0]
test_loss = sklearn_metric_loss_score(eval_metric, test_pred_y, y_test,
- labels, weight_test)
+ labels, weight_test, groups_test)
if log_training_metric:
test_pred_y = get_y_pred(estimator, X_train, eval_metric, obj)
- train_loss = sklearn_metric_loss_score(
- eval_metric, test_pred_y,
- y_train, labels, fit_kwargs.get('sample_weight'))
+ metric_for_logging = sklearn_metric_loss_score(
+ eval_metric, test_pred_y, y_train, labels,
+ fit_kwargs.get('sample_weight'), fit_kwargs.get('groups'))
else:
- train_loss = None
+ metric_for_logging = None
else: # customized metric function
test_loss, metrics = eval_metric(
- X_test, y_test, estimator, labels, X_train, y_train,
- weight_test, fit_kwargs.get('sample_weight'))
+ X_test, y_test, estimator, labels, X_train, y_train, weight_test,
+ fit_kwargs.get('sample_weight'), config, groups_test,
+ fit_kwargs.get('groups'))
if isinstance(metrics, dict):
pred_time = metrics.get('pred_time', 0)
- train_loss = metrics
+ metric_for_logging = metrics
train_time = time.time() - start
- return test_loss, train_time, train_loss, pred_time
-
-
-def train_model(estimator, X_train, y_train, budget, fit_kwargs={}):
- train_time = estimator.fit(X_train, y_train, budget, **fit_kwargs)
- return train_time
-
-
-def evaluate_model(
- estimator, X_train, y_train, X_val, y_val, weight_val,
- budget, kf, task, eval_method, eval_metric, best_val_loss, log_training_metric=False,
- fit_kwargs={}
-):
- if 'holdout' in eval_method:
- val_loss, train_loss, train_time, pred_time = evaluate_model_holdout(
- estimator, X_train, y_train, X_val, y_val, weight_val, budget,
- task, eval_metric, log_training_metric=log_training_metric,
- fit_kwargs=fit_kwargs)
- else:
- val_loss, train_loss, train_time, pred_time = evaluate_model_CV(
- estimator, X_train, y_train, budget, kf, task,
- eval_metric, best_val_loss, log_training_metric=log_training_metric,
- fit_kwargs=fit_kwargs)
- return val_loss, train_loss, train_time, pred_time
+ return test_loss, metric_for_logging, train_time, pred_time
-def evaluate_model_holdout(
- estimator, X_train, y_train, X_val, y_val,
- weight_val, budget, task, eval_metric, log_training_metric=False,
- fit_kwargs={}
-):
- val_loss, train_time, train_loss, pred_time = get_test_loss(
- estimator, X_train, y_train, X_val, y_val, weight_val, eval_metric,
- task, budget=budget, log_training_metric=log_training_metric, fit_kwargs=fit_kwargs)
- return val_loss, train_loss, train_time, pred_time
-
-
-def evaluate_model_CV(
- estimator, X_train_all, y_train_all, budget, kf,
- task, eval_metric, best_val_loss, log_training_metric=False, fit_kwargs={}
-):
+def evaluate_model_CV(config, estimator, X_train_all, y_train_all, budget, kf,
+ task, eval_metric, best_val_loss,
+ log_training_metric=False, fit_kwargs={}):
start_time = time.time()
total_val_loss = 0
- total_train_loss = None
- train_loss = None
+ total_metric = None
+ metric = None
train_time = pred_time = 0
valid_fold_num = total_fold_num = 0
n = kf.get_n_splits()
@@ -222,15 +207,19 @@ def evaluate_model_CV(
labels = np.unique(y_train_all)
else:
labels = None
-
+ groups = None
+ shuffle = True
if isinstance(kf, RepeatedStratifiedKFold):
kf = kf.split(X_train_split, y_train_split)
elif isinstance(kf, GroupKFold):
- kf = kf.split(X_train_split, y_train_split, kf.groups)
+ groups = kf.groups
+ kf = kf.split(X_train_split, y_train_split, groups)
+ shuffle = False
elif isinstance(kf, TimeSeriesSplit) and task == 'forecast':
y_train_all = pd.DataFrame(y_train_all, columns=['y'])
train = X_train_all.join(y_train_all)
kf = kf.split(train)
+ shuffle = False
elif isinstance(kf, TimeSeriesSplit):
kf = kf.split(X_train_split, y_train_split)
else:
@@ -244,7 +233,7 @@ def evaluate_model_CV(
else:
weight = weight_val = None
for train_index, val_index in kf:
- if not isinstance(kf, TimeSeriesSplit):
+ if shuffle:
train_index = rng.permutation(train_index)
if isinstance(X_train_all, pd.DataFrame):
X_train, X_val = X_train_split.iloc[
@@ -252,19 +241,19 @@ def evaluate_model_CV(
else:
X_train, X_val = X_train_split[
train_index], X_train_split[val_index]
- if isinstance(y_train_all, pd.Series):
- y_train, y_val = y_train_split.iloc[
- train_index], y_train_split.iloc[val_index]
- else:
- y_train, y_val = y_train_split[
- train_index], y_train_split[val_index]
+ y_train, y_val = y_train_split[train_index], y_train_split[val_index]
estimator.cleanup()
if weight is not None:
fit_kwargs['sample_weight'], weight_val = weight[
train_index], weight[val_index]
- val_loss_i, train_time_i, train_loss_i, pred_time_i = get_test_loss(
- estimator, X_train, y_train, X_val, y_val, weight_val,
- eval_metric, task, labels, budget_per_train,
+ if groups is not None:
+ fit_kwargs['groups'] = groups[train_index]
+ groups_val = groups[val_index]
+ else:
+ groups_val = None
+ val_loss_i, metric_i, train_time_i, pred_time_i = get_test_loss(
+ config, estimator, X_train, y_train, X_val, y_val, weight_val,
+ groups_val, eval_metric, task, labels, budget_per_train,
log_training_metric=log_training_metric, fit_kwargs=fit_kwargs)
if weight is not None:
fit_kwargs['sample_weight'] = weight
@@ -272,16 +261,16 @@ def evaluate_model_CV(
total_fold_num += 1
total_val_loss += val_loss_i
if log_training_metric or not isinstance(eval_metric, str):
- if isinstance(total_train_loss, list):
- total_train_loss = [
- total_train_loss[i] + v for i, v in enumerate(train_loss_i)]
- elif isinstance(total_train_loss, dict):
- total_train_loss = {
- k: total_train_loss[k] + v for k, v in train_loss_i.items()}
- elif total_train_loss is not None:
- total_train_loss += train_loss_i
+ if isinstance(total_metric, list):
+ total_metric = [
+ total_metric[i] + v for i, v in enumerate(metric_i)]
+ elif isinstance(total_metric, dict):
+ total_metric = {
+ k: total_metric[k] + v for k, v in metric_i.items()}
+ elif total_metric is not None:
+ total_metric += metric_i
else:
- total_train_loss = train_loss_i
+ total_metric = metric_i
train_time += train_time_i
pred_time += pred_time_i
if valid_fold_num == n:
@@ -293,22 +282,22 @@ def evaluate_model_CV(
val_loss = np.max(val_loss_list)
n = total_fold_num
if log_training_metric or not isinstance(eval_metric, str):
- if isinstance(total_train_loss, list):
- train_loss = [v / n for v in total_train_loss]
- elif isinstance(total_train_loss, dict):
- train_loss = {k: v / n for k, v in total_train_loss.items()}
+ if isinstance(total_metric, list):
+ metric = [v / n for v in total_metric]
+ elif isinstance(total_metric, dict):
+ metric = {k: v / n for k, v in total_metric.items()}
else:
- train_loss = total_train_loss / n
+ metric = total_metric / n
pred_time /= n
# budget -= time.time() - start_time
# if val_loss < best_val_loss and budget > budget_per_train:
# estimator.cleanup()
# estimator.fit(X_train_all, y_train_all, budget, **fit_kwargs)
- return val_loss, train_loss, train_time, pred_time
+ return val_loss, metric, train_time, pred_time
def compute_estimator(
- X_train, y_train, X_val, y_val, weight_val, budget, kf,
+ X_train, y_train, X_val, y_val, weight_val, groups_val, budget, kf,
config_dic, task, estimator_name, eval_method, eval_metric,
best_val_loss=np.Inf, n_jobs=1, estimator_class=None, log_training_metric=False,
fit_kwargs={}
@@ -317,11 +306,17 @@ def compute_estimator(
task, estimator_name)
estimator = estimator_class(
**config_dic, task=task, n_jobs=n_jobs)
- val_loss, train_loss, train_time, pred_time = evaluate_model(
- estimator, X_train, y_train, X_val, y_val, weight_val, budget, kf, task,
- eval_method, eval_metric, best_val_loss, log_training_metric=log_training_metric,
- fit_kwargs=fit_kwargs)
- return estimator, val_loss, train_loss, train_time, pred_time
+ if 'holdout' in eval_method:
+ val_loss, metric_for_logging, train_time, pred_time = get_test_loss(
+ config_dic, estimator, X_train, y_train, X_val, y_val, weight_val,
+ groups_val, eval_metric, task, budget=budget,
+ log_training_metric=log_training_metric, fit_kwargs=fit_kwargs)
+ else:
+ val_loss, metric_for_logging, train_time, pred_time = evaluate_model_CV(
+ config_dic, estimator, X_train, y_train, budget, kf, task,
+ eval_metric, best_val_loss, log_training_metric=log_training_metric,
+ fit_kwargs=fit_kwargs)
+ return estimator, val_loss, metric_for_logging, train_time, pred_time
def train_estimator(
@@ -333,8 +328,7 @@ def train_estimator(
task, estimator_name)
estimator = estimator_class(**config_dic, task=task, n_jobs=n_jobs)
if X_train is not None:
- train_time = train_model(
- estimator, X_train, y_train, budget, fit_kwargs)
+ train_time = estimator.fit(X_train, y_train, budget, **fit_kwargs)
else:
estimator = estimator.estimator_class(**estimator.params)
train_time = time.time() - start_time
diff --git a/flaml/model.py b/flaml/model.py
index 0ab812fa1..80014f846 100644
--- a/flaml/model.py
+++ b/flaml/model.py
@@ -3,16 +3,18 @@
* Licensed under the MIT License.
'''
+import warnings
import numpy as np
import xgboost as xgb
import time
from sklearn.ensemble import RandomForestRegressor, RandomForestClassifier
from sklearn.ensemble import ExtraTreesRegressor, ExtraTreesClassifier
from sklearn.linear_model import LogisticRegression
-from lightgbm import LGBMClassifier, LGBMRegressor
+from lightgbm import LGBMClassifier, LGBMRegressor, LGBMRanker
from scipy.sparse import issparse
import pandas as pd
from . import tune
+from .data import group_counts
import logging
@@ -45,8 +47,8 @@ class BaseEstimator:
self._estimator_type = params['_estimator_type']
del self.params['_estimator_type']
else:
- self._estimator_type = "regressor" if task == 'regression' \
- else "classifier"
+ self._estimator_type = "classifier" if task in (
+ 'binary:logistic', 'multi:softmax') else "regressor"
def get_params(self, deep=False):
params = self.params.copy()
@@ -81,6 +83,18 @@ class BaseEstimator:
def _fit(self, X_train, y_train, **kwargs):
current_time = time.time()
+ if 'groups' in kwargs:
+ kwargs = kwargs.copy()
+ if self._task == 'rank':
+ kwargs['group'] = group_counts(kwargs['groups'])
+ # groups_val = kwargs.get('groups_val')
+ # if groups_val is not None:
+ # kwargs['eval_group'] = [group_counts(groups_val)]
+ # kwargs['eval_set'] = [
+ # (kwargs['X_val'], kwargs['y_val'])]
+ # kwargs['verbose'] = False
+ # del kwargs['groups_val'], kwargs['X_val'], kwargs['y_val']
+ del kwargs['groups']
X_train = self._preprocess(X_train)
model = self.estimator_class(**self.params)
model.fit(X_train, y_train, **kwargs)
@@ -255,12 +269,14 @@ class LGBMEstimator(BaseEstimator):
if "objective" not in self.params:
# Default: ‘regression’ for LGBMRegressor,
# ‘binary’ or ‘multiclass’ for LGBMClassifier
- if 'regression' in task:
+ if 'regression' == task:
objective = 'regression'
elif 'binary' in task:
objective = 'binary'
elif 'multi' in task:
objective = 'multiclass'
+ elif 'rank' == task:
+ objective = 'lambdarank'
else:
objective = 'regression'
self.params["objective"] = objective
@@ -276,8 +292,10 @@ class LGBMEstimator(BaseEstimator):
self.params['verbose'] = -1
# if "subsample_freq" not in self.params:
# self.params['subsample_freq'] = 1
- if 'regression' in task:
+ if 'regression' == task:
self.estimator_class = LGBMRegressor
+ elif 'rank' == task:
+ self.estimator_class = LGBMRanker
else:
self.estimator_class = LGBMClassifier
self._time_per_iter = None
@@ -488,8 +506,10 @@ class XGBoostSklearnEstimator(SKLearnEstimator, LGBMEstimator):
'use_label_encoder': params.get('use_label_encoder', False),
})
- if 'regression' in task:
+ if 'regression' == task:
self.estimator_class = xgb.XGBRegressor
+ elif 'rank' == task:
+ self.estimator_class = xgb.XGBRanker
else:
self.estimator_class = xgb.XGBClassifier
self._time_per_iter = None
@@ -716,7 +736,9 @@ class CatBoostEstimator(BaseEstimator):
return params
def fit(self, X_train, y_train, budget=None, **kwargs):
+ import shutil
start_time = time.time()
+ train_dir = f'catboost_{str(start_time)}'
n_iter = self.params["n_estimators"]
X_train = self._preprocess(X_train)
if isinstance(X_train, pd.DataFrame):
@@ -730,16 +752,19 @@ class CatBoostEstimator(BaseEstimator):
CatBoostEstimator._train_size - len(y_train)) > 4) and budget:
# measure the time per iteration
self.params["n_estimators"] = 1
- CatBoostEstimator._smallmodel = self.estimator_class(**self.params)
+ CatBoostEstimator._smallmodel = self.estimator_class(
+ train_dir=train_dir, **self.params)
CatBoostEstimator._smallmodel.fit(
X_train, y_train, cat_features=cat_features, **kwargs)
CatBoostEstimator._t1 = time.time() - start_time
if CatBoostEstimator._t1 >= budget:
self.params["n_estimators"] = n_iter
self._model = CatBoostEstimator._smallmodel
+ shutil.rmtree(train_dir, ignore_errors=True)
return CatBoostEstimator._t1
self.params["n_estimators"] = 4
- CatBoostEstimator._smallmodel = self.estimator_class(**self.params)
+ CatBoostEstimator._smallmodel = self.estimator_class(
+ train_dir=train_dir, **self.params)
CatBoostEstimator._smallmodel.fit(
X_train, y_train, cat_features=cat_features, **kwargs)
CatBoostEstimator._time_per_iter = (
@@ -752,6 +777,7 @@ class CatBoostEstimator(BaseEstimator):
"n_estimators"]:
self.params["n_estimators"] = n_iter
self._model = CatBoostEstimator._smallmodel
+ shutil.rmtree(train_dir, ignore_errors=True)
return time.time() - start_time
if budget:
train_times = 1
@@ -769,13 +795,14 @@ class CatBoostEstimator(BaseEstimator):
else:
weight = None
from catboost import Pool
- model = self.estimator_class(**self.params)
+ model = self.estimator_class(train_dir=train_dir, **self.params)
model.fit(
X_tr, y_tr, cat_features=cat_features,
eval_set=Pool(
data=X_train[n:], label=y_train[n:],
cat_features=cat_features),
**kwargs) # model.get_best_iteration()
+ shutil.rmtree(train_dir, ignore_errors=True)
if weight is not None:
kwargs['sample_weight'] = weight
self._model = model
@@ -862,44 +889,43 @@ class FBProphet(BaseEstimator):
}
return space
- def fit(self, X_train, y_train, budget=None, **kwargs):
+ def __init__(self, task='forecast', **params):
+ if 'n_jobs' in params:
+ params.pop('n_jobs')
+ super().__init__(task, **params)
+
+ def _join(self, X_train, y_train):
+ assert 'ds' in X_train, (
+ 'Dataframe for training forecast model must have column'
+ ' "ds" with the dates in X_train.')
y_train = pd.DataFrame(y_train, columns=['y'])
train_df = X_train.join(y_train)
+ return train_df
- if ('ds' not in train_df) or ('y' not in train_df):
- raise ValueError(
- 'Dataframe for training forecast model must have columns "ds" and "y" with the dates and '
- 'values respectively.'
- )
-
- if 'n_jobs' in self.params:
- self.params.pop('n_jobs')
-
+ def fit(self, X_train, y_train, budget=None, **kwargs):
from prophet import Prophet
-
current_time = time.time()
+ train_df = self._join(X_train, y_train)
model = Prophet(**self.params).fit(train_df)
train_time = time.time() - current_time
self._model = model
return train_time
- def predict(self, X_test, freq=None):
+ def predict(self, X_test):
+ if isinstance(X_test, int):
+ raise ValueError(
+ "predict() with steps is only supported for arima/sarimax."
+ " For FBProphet, pass a dataframe with a date colum named ds.")
if self._model is not None:
- if isinstance(X_test, int) and freq is not None:
- future = self._model.make_future_dataframe(periods=X_test, freq=freq)
- forecast = self._model.predict(future)
- elif isinstance(X_test, pd.DataFrame):
- forecast = self._model.predict(X_test)
- else:
- raise ValueError(
- "either X_test(pd.Dataframe with dates for predictions, column ds) or"
- "X_test(int number of periods)+freq are required.")
+ forecast = self._model.predict(X_test)
return forecast['yhat']
else:
+ warnings.warn(
+ "Estimator is not fit yet. Please run fit() before predict().")
return np.ones(X_test.shape[0])
-class ARIMA(BaseEstimator):
+class ARIMA(FBProphet):
@classmethod
def search_space(cls, **params):
space = {
@@ -921,55 +947,45 @@ class ARIMA(BaseEstimator):
}
return space
- def fit(self, X_train, y_train, budget=None, **kwargs):
- y_train = pd.DataFrame(y_train, columns=['y'])
- train_df = X_train.join(y_train)
-
- if ('ds' not in train_df) or ('y' not in train_df):
- raise ValueError(
- 'Dataframe for training forecast model must have columns "ds" and "y" with the dates and '
- 'values respectively.'
- )
-
+ def _join(self, X_train, y_train):
+ train_df = super()._join(X_train, y_train)
train_df.index = pd.to_datetime(train_df['ds'])
train_df = train_df.drop('ds', axis=1)
+ return train_df
- if 'n_jobs' in self.params:
- self.params.pop('n_jobs')
-
+ def fit(self, X_train, y_train, budget=None, **kwargs):
from statsmodels.tsa.arima.model import ARIMA as ARIMA_estimator
- import warnings
warnings.filterwarnings("ignore")
-
current_time = time.time()
- model = ARIMA_estimator(train_df,
- order=(self.params['p'], self.params['d'], self.params['q']),
- enforce_stationarity=False,
- enforce_invertibility=False)
-
+ train_df = self._join(X_train, y_train)
+ model = ARIMA_estimator(
+ train_df, order=(
+ self.params['p'], self.params['d'], self.params['q']),
+ enforce_stationarity=False, enforce_invertibility=False)
model = model.fit()
train_time = time.time() - current_time
self._model = model
return train_time
- def predict(self, X_test, freq=None):
+ def predict(self, X_test):
if self._model is not None:
- if isinstance(X_test, int) and freq is not None:
- forecast = self._model.forecast(steps=X_test).to_frame().reset_index()
+ if isinstance(X_test, int):
+ forecast = self._model.forecast(steps=X_test)
elif isinstance(X_test, pd.DataFrame):
- start_date = X_test.iloc[0, 0]
- end_date = X_test.iloc[-1, 0]
- forecast = self._model.predict(start=start_date, end=end_date)
+ start = X_test.iloc[0, 0]
+ end = X_test.iloc[-1, 0]
+ forecast = self._model.predict(start=start, end=end)
else:
raise ValueError(
- "either X_test(pd.Dataframe with dates for predictions, column ds) or"
- "X_test(int number of periods)+freq are required.")
+ "X_test needs to be either a pd.Dataframe with dates as column ds)"
+ " or an int number of periods for predict().")
return forecast
else:
- return np.ones(X_test.shape[0])
+ return np.ones(X_test if isinstance(X_test, int)
+ else X_test.shape[0])
-class SARIMAX(BaseEstimator):
+class SARIMAX(ARIMA):
@classmethod
def search_space(cls, **params):
space = {
@@ -1011,47 +1027,17 @@ class SARIMAX(BaseEstimator):
return space
def fit(self, X_train, y_train, budget=None, **kwargs):
- y_train = pd.DataFrame(y_train, columns=['y'])
- train_df = X_train.join(y_train)
-
- if ('ds' not in train_df) or ('y' not in train_df):
- raise ValueError(
- 'Dataframe for training forecast model must have columns "ds" and "y" with the dates and '
- 'values respectively.'
- )
-
- train_df.index = pd.to_datetime(train_df['ds'])
- train_df = train_df.drop('ds', axis=1)
-
- if 'n_jobs' in self.params:
- self.params.pop('n_jobs')
-
from statsmodels.tsa.statespace.sarimax import SARIMAX as SARIMAX_estimator
-
current_time = time.time()
- model = SARIMAX_estimator(train_df,
- order=(self.params['p'], self.params['d'], self.params['q']),
- seasonality_order=(self.params['P'], self.params['D'], self.params['Q'], self.params['s']),
- enforce_stationarity=False,
- enforce_invertibility=False)
-
+ train_df = self._join(X_train, y_train)
+ model = SARIMAX_estimator(
+ train_df, order=(
+ self.params['p'], self.params['d'], self.params['q']),
+ seasonality_order=(
+ self.params['P'], self.params['D'], self.params['Q'],
+ self.params['s']),
+ enforce_stationarity=False, enforce_invertibility=False)
model = model.fit()
train_time = time.time() - current_time
self._model = model
return train_time
-
- def predict(self, X_test, freq=None):
- if self._model is not None:
- if isinstance(X_test, int) and freq is not None:
- forecast = self._model.forecast(steps=X_test).to_frame().reset_index()
- elif isinstance(X_test, pd.DataFrame):
- start_date = X_test.iloc[0, 0]
- end_date = X_test.iloc[-1, 0]
- forecast = self._model.predict(start=start_date, end=end_date)
- else:
- raise ValueError(
- "either X_test(pd.Dataframe with dates for predictions, column ds)"
- "or X_test(int number of periods)+freq are required.")
- return forecast
- else:
- return np.ones(X_test.shape[0])
diff --git a/flaml/searcher/blendsearch.py b/flaml/searcher/blendsearch.py
index 147694bbf..2773d53fb 100644
--- a/flaml/searcher/blendsearch.py
+++ b/flaml/searcher/blendsearch.py
@@ -8,19 +8,20 @@ import numpy as np
import time
import pickle
+
try:
from ray import __version__ as ray_version
assert ray_version >= '1.0.0'
from ray.tune.suggest import Searcher
from ray.tune.suggest.optuna import OptunaSearch as GlobalSearch
- from ray.tune.utils.util import flatten_dict
+ from ray.tune.utils.util import unflatten_dict
except (ImportError, AssertionError):
from .suggestion import Searcher
from .suggestion import OptunaSearch as GlobalSearch
- from .variant_generator import flatten_dict
+ from ..tune.trial import unflatten_dict
from .search_thread import SearchThread
from .flow2 import FLOW2
-from ..tune.space import add_cost_to_space, normalize # TODO: , define_by_run_func
+from ..tune.space import add_cost_to_space, indexof, normalize, define_by_run_func
import logging
logger = logging.getLogger(__name__)
@@ -133,9 +134,8 @@ class BlendSearch(Searcher):
if global_search_alg is not None:
self._gs = global_search_alg
elif getattr(self, '__name__', None) != 'CFO':
- gs_space = space
- # TODO: when define_by_run is supported
- # gs_space = define_by_run_func(space)
+ from functools import partial
+ gs_space = partial(define_by_run_func, space=space)
try:
gs_seed = seed - 10 if (seed - 10) >= 0 else seed - 11 + (1 << 32)
if experimental:
@@ -198,7 +198,10 @@ class BlendSearch(Searcher):
# reset search when metric or mode changed
self._ls.set_search_properties(metric, mode)
if self._gs is not None:
- self._gs.set_search_properties(metric, mode)
+ self._gs = GlobalSearch(
+ space=self._gs._space, metric=metric, mode=mode,
+ sampler=self._gs._sampler)
+ self._gs.space = self._ls.space
self._init_search()
if config:
if 'time_budget_s' in config:
@@ -312,9 +315,11 @@ class BlendSearch(Searcher):
self._expand_admissible_region(
self._ls_bound_min, self._ls_bound_max,
self._subspace.get(trial_id, self._ls.space))
- if self._gs is not None and self._experimental:
- # TODO: key match for hierarchical space
- self._gs.add_evaluated_point(flatten_dict(config), objective)
+ # if self._gs is not None and self._experimental:
+ # # TODO: recover when supported
+ # converted = convert_key(config, self._gs.space)
+ # logger.info(converted)
+ # self._gs.add_evaluated_point(converted, objective)
elif metric_constraint_satisfied and self._create_condition(
result):
# thread creator
@@ -339,7 +344,6 @@ class BlendSearch(Searcher):
del self._subspace[trial_id]
def _create_thread(self, config, result, space):
- # logger.info(f"create local search thread from {config}")
self._search_thread_pool[self._thread_count] = SearchThread(
self._ls.mode,
self._ls.create(
@@ -349,26 +353,29 @@ class BlendSearch(Searcher):
)
self._thread_count += 1
self._update_admissible_region(
- config, self._ls_bound_min, self._ls_bound_max, space)
+ unflatten_dict(config), self._ls_bound_min, self._ls_bound_max, space,
+ self._ls.space)
def _update_admissible_region(
- self, config, admissible_min, admissible_max, space: Dict = {}
+ self, config, admissible_min, admissible_max, subspace: Dict = {},
+ space: Dict = {}
):
# update admissible region
- normalized_config = normalize(config, space, config, {})
+ normalized_config = normalize(config, subspace, config, {})
for key in admissible_min:
value = normalized_config[key]
if isinstance(admissible_max[key], list):
- choice = space[key]['_choice_']
+ domain = space[key]
+ choice = indexof(domain, value)
self._update_admissible_region(
value,
admissible_min[key][choice], admissible_max[key][choice],
- space[key]
+ subspace[key], domain[choice]
)
elif isinstance(value, dict):
self._update_admissible_region(
- value,
- admissible_min[key], admissible_max[key], space[key])
+ value, admissible_min[key], admissible_max[key],
+ subspace[key], space[key])
else:
if value > admissible_max[key]:
admissible_max[key] = value
@@ -514,7 +521,8 @@ class BlendSearch(Searcher):
return None
use_rs = 1
if choice or self._valid(
- config, space, self._gs_admissible_min, self._gs_admissible_max):
+ config, self._ls.space, space, self._gs_admissible_min,
+ self._gs_admissible_max):
# LS or valid or no backup choice
self._trial_proposed_by[trial_id] = choice
self._search_thread_pool[choice].running += use_rs
@@ -542,10 +550,11 @@ class BlendSearch(Searcher):
# temporarily relax admissible region for parallel proposals
self._update_admissible_region(
config, self._gs_admissible_min, self._gs_admissible_max,
- space)
+ space, self._ls.space)
else:
self._update_admissible_region(
- config, self._ls_bound_min, self._ls_bound_max, space)
+ config, self._ls_bound_min, self._ls_bound_max, space,
+ self._ls.space)
self._gs_admissible_min.update(self._ls_bound_min)
self._gs_admissible_max.update(self._ls_bound_max)
signature = self._ls.config_signature(config, space)
@@ -632,11 +641,6 @@ class BlendSearch(Searcher):
top_thread_id = backup_thread_id = 0
priority1 = priority2 = self._search_thread_pool[0].priority
for thread_id, thread in self._search_thread_pool.items():
- # if thread_id:
- # print(
- # f"priority of thread {thread_id}={thread.priority}")
- # logger.debug(
- # f"thread {thread_id}.can_suggest={thread.can_suggest}")
if thread_id and thread.can_suggest:
priority = thread.priority
if priority > priority1:
@@ -647,21 +651,29 @@ class BlendSearch(Searcher):
backup_thread_id = thread_id
return top_thread_id, backup_thread_id
- def _valid(self, config: Dict, space: Dict, lower: Dict, upper: Dict) -> bool:
+ def _valid(self, config: Dict, space: Dict, subspace: Dict,
+ lower: Dict, upper: Dict) -> bool:
''' config validator
'''
- normalized_config = normalize(config, space, config, {})
+ normalized_config = normalize(config, subspace, config, {})
for key, lb in lower.items():
if key in config:
value = normalized_config[key]
if isinstance(lb, list):
- subspace = space[key]['_choice_']
+ domain = space[key]
+ index = indexof(domain, value)
+ nestedspace = subspace[key]
+ lb = lb[index]
+ ub = upper[key][index]
elif isinstance(lb, dict):
- subspace = space[key]
+ nestedspace = subspace[key]
+ domain = space[key]
+ ub = upper[key]
else:
- subspace = None
- if subspace:
- valid = self._valid(value, subspace, lb, upper[key])
+ nestedspace = None
+ if nestedspace:
+ valid = self._valid(
+ value, domain, nestedspace, lb, ub)
if not valid:
return False
elif (value + self._ls.STEPSIZE < lower[key]
diff --git a/flaml/searcher/flow2.py b/flaml/searcher/flow2.py
index 9c1fadf79..8dc8bcf32 100644
--- a/flaml/searcher/flow2.py
+++ b/flaml/searcher/flow2.py
@@ -543,8 +543,9 @@ class FLOW2(Searcher):
return False
for key in self._unordered_cat_hp:
# unordered cat choice is hard to reach by chance
- if config1[key] != config2[key]:
+ if config1[key] != config2.get(key):
return False
delta = np.array(
- [incumbent1[key] - incumbent2[key] for key in self._tunable_keys])
+ [incumbent1[key] - incumbent2.get(key, np.inf)
+ for key in self._tunable_keys])
return np.linalg.norm(delta) <= self.step
diff --git a/flaml/searcher/search_thread.py b/flaml/searcher/search_thread.py
index 9c6a7fb05..64fcbae32 100644
--- a/flaml/searcher/search_thread.py
+++ b/flaml/searcher/search_thread.py
@@ -12,7 +12,7 @@ try:
except (ImportError, AssertionError):
from .suggestion import Searcher
from .flow2 import FLOW2
-from ..tune.space import (add_cost_to_space, unflatten_hierarchical)
+from ..tune.space import unflatten_hierarchical
import logging
logger = logging.getLogger(__name__)
@@ -46,10 +46,6 @@ class SearchThread:
self.cost_attr = cost_attr
if search_alg:
self.space = self._space = search_alg.space # unflattened space
- # TODO: remove when define_by_run is supported
- if not isinstance(self._search_alg, FLOW2):
- # remember const config
- self._const = add_cost_to_space(self.space, {}, {})
@classmethod
def set_eps(cls, time_budget_s):
@@ -63,8 +59,6 @@ class SearchThread:
else:
try:
config = self._search_alg.suggest(trial_id)
- # TODO: remove when define_by_run is supported
- config.update(self._const)
config, self.space = unflatten_hierarchical(config, self._space)
except FloatingPointError:
logger.warning(
diff --git a/flaml/searcher/suggestion.py b/flaml/searcher/suggestion.py
index d49579fba..ce1ec8347 100644
--- a/flaml/searcher/suggestion.py
+++ b/flaml/searcher/suggestion.py
@@ -17,9 +17,12 @@ This source file is adapted here because ray does not fully support Windows.
Copyright (c) Microsoft Corporation.
'''
+import time
+import functools
+import warnings
import copy
import logging
-from typing import Any, Dict, Optional, Union, List, Tuple
+from typing import Any, Dict, Optional, Union, List, Tuple, Callable
import pickle
from .variant_generator import parse_spec_vars
from ..tune.sample import Categorical, Domain, Float, Integer, LogUniform, \
@@ -332,13 +335,16 @@ class ConcurrencyLimiter(Searcher):
try:
import optuna as ot
- from optuna.trial import TrialState as OptunaTrialState
+ from optuna.distributions import BaseDistribution as OptunaDistribution
from optuna.samplers import BaseSampler
+ from optuna.trial import TrialState as OptunaTrialState
+ from optuna.trial import Trial as OptunaTrial
except ImportError:
ot = None
- OptunaTrialState = None
+ OptunaDistribution = None
BaseSampler = None
-
+ OptunaTrialState = None
+ OptunaTrial = None
# (Optional) Default (anonymous) metric when using tune.report(x)
DEFAULT_METRIC = "_metric"
@@ -346,6 +352,78 @@ DEFAULT_METRIC = "_metric"
# (Auto-filled) The index of this training iteration.
TRAINING_ITERATION = "training_iteration"
+# print a warning if define by run function takes longer than this to execute
+DEFINE_BY_RUN_WARN_THRESHOLD_S = 1 # 1 is arbitrary
+
+
+def validate_warmstart(parameter_names: List[str],
+ points_to_evaluate: List[Union[List, Dict]],
+ evaluated_rewards: List,
+ validate_point_name_lengths: bool = True):
+ """Generic validation of a Searcher's warm start functionality.
+ Raises exceptions in case of type and length mismatches between
+ parameters.
+ If ``validate_point_name_lengths`` is False, the equality of lengths
+ between ``points_to_evaluate`` and ``parameter_names`` will not be
+ validated.
+ """
+ if points_to_evaluate:
+ if not isinstance(points_to_evaluate, list):
+ raise TypeError(
+ "points_to_evaluate expected to be a list, got {}.".format(
+ type(points_to_evaluate)))
+ for point in points_to_evaluate:
+ if not isinstance(point, (dict, list)):
+ raise TypeError(
+ f"points_to_evaluate expected to include list or dict, "
+ f"got {point}.")
+
+ if validate_point_name_lengths and (
+ not len(point) == len(parameter_names)):
+ raise ValueError("Dim of point {}".format(point)
+ + " and parameter_names {}".format(
+ parameter_names) + " do not match.")
+
+ if points_to_evaluate and evaluated_rewards:
+ if not isinstance(evaluated_rewards, list):
+ raise TypeError(
+ "evaluated_rewards expected to be a list, got {}.".format(
+ type(evaluated_rewards)))
+ if not len(evaluated_rewards) == len(points_to_evaluate):
+ raise ValueError(
+ "Dim of evaluated_rewards {}".format(evaluated_rewards)
+ + " and points_to_evaluate {}".format(points_to_evaluate)
+ + " do not match.")
+
+
+class _OptunaTrialSuggestCaptor:
+ """Utility to capture returned values from Optuna's suggest_ methods.
+ This will wrap around the ``optuna.Trial` object and decorate all
+ `suggest_` callables with a function capturing the returned value,
+ which will be saved in the ``captured_values`` dict.
+ """
+
+ def __init__(self, ot_trial: OptunaTrial) -> None:
+ self.ot_trial = ot_trial
+ self.captured_values: Dict[str, Any] = {}
+
+ def _get_wrapper(self, func: Callable) -> Callable:
+ @functools.wraps(func)
+ def wrapper(*args, **kwargs):
+ # name is always the first arg for suggest_ methods
+ name = kwargs.get("name", args[0])
+ ret = func(*args, **kwargs)
+ self.captured_values[name] = ret
+ return ret
+
+ return wrapper
+
+ def __getattr__(self, item_name: str) -> Any:
+ item = getattr(self.ot_trial, item_name)
+ if item_name.startswith("suggest_") and callable(item):
+ return self._get_wrapper(item)
+ return item
+
class OptunaSearch(Searcher):
"""A wrapper around Optuna to provide trial suggestions.
@@ -355,16 +433,20 @@ class OptunaSearch(Searcher):
This Searcher is a thin wrapper around Optuna's search algorithms.
You can pass any Optuna sampler, which will be used to generate
hyperparameter suggestions.
- Please note that this wrapper does not support define-by-run, so the
- search space will be configured before running the optimization. You will
- also need to use a Tune trainable (e.g. using the function API) with
- this wrapper.
- For defining the search space, use ``ray.tune.suggest.optuna.param``
- (see example).
Args:
- space (list): Hyperparameter search space definition for Optuna's
- sampler. This is a list, and samples for the parameters will
- be obtained in order.
+ space (dict|Callable): Hyperparameter search space definition for
+ Optuna's sampler. This can be either a :class:`dict` with
+ parameter names as keys and ``optuna.distributions`` as values,
+ or a Callable - in which case, it should be a define-by-run
+ function using ``optuna.trial`` to obtain the hyperparameter
+ values. The function should return either a :class:`dict` of
+ constant values with names as keys, or None.
+ For more information, see https://optuna.readthedocs.io\
+/en/stable/tutorial/10_key_features/002_configurations.html.
+ .. warning::
+ No actual computation should take place in the define-by-run
+ function. Instead, put the training logic inside the function
+ or class trainable passed to ``tune.run``.
metric (str): The training result objective value attribute. If None
but a mode was passed, the anonymous metric `_metric` will be used
per default.
@@ -411,15 +493,28 @@ class OptunaSearch(Searcher):
metric="loss",
mode="min")
tune.run(trainable, search_alg=optuna_search)
+ # Equivalent Optuna define-by-run function approach:
+ def define_search_space(trial: optuna.Trial):
+ trial.suggest_float("a", 6, 8)
+ trial.suggest_float("b", 1e-4, 1e-2, log=True)
+ # training logic goes into trainable, this is just
+ # for search space definition
+ optuna_search = OptunaSearch(
+ define_search_space,
+ metric="loss",
+ mode="min")
+ tune.run(trainable, search_alg=optuna_search)
.. versionadded:: 0.8.8
"""
def __init__(self,
- space: Optional[Union[Dict, List[Tuple]]] = None,
+ space: Optional[Union[Dict[str, "OptunaDistribution"], List[
+ Tuple], Callable[["OptunaTrial"], Optional[Dict[
+ str, Any]]]]] = None,
metric: Optional[str] = None,
mode: Optional[str] = None,
points_to_evaluate: Optional[List[Dict]] = None,
- sampler: Optional[BaseSampler] = None,
+ sampler: Optional["BaseSampler"] = None,
seed: Optional[int] = None,
evaluated_rewards: Optional[List] = None):
assert ot is not None, (
@@ -490,6 +585,11 @@ class OptunaSearch(Searcher):
load_if_exists=True)
if self._points_to_evaluate:
+ validate_warmstart(
+ self._space,
+ self._points_to_evaluate,
+ self._evaluated_rewards,
+ validate_point_name_lengths=not callable(self._space))
if self._evaluated_rewards:
for point, reward in zip(self._points_to_evaluate,
self._evaluated_rewards):
@@ -512,6 +612,37 @@ class OptunaSearch(Searcher):
self._setup_study(mode)
return True
+ def _suggest_from_define_by_run_func(
+ self, func: Callable[["OptunaTrial"], Optional[Dict[str, Any]]],
+ ot_trial: "OptunaTrial") -> Dict:
+ captor = _OptunaTrialSuggestCaptor(ot_trial)
+ time_start = time.time()
+ ret = func(captor)
+ time_taken = time.time() - time_start
+ if time_taken > DEFINE_BY_RUN_WARN_THRESHOLD_S:
+ warnings.warn(
+ "Define-by-run function passed in the `space` argument "
+ f"took {time_taken} seconds to "
+ "run. Ensure that actual computation, training takes "
+ "place inside Tune's train functions or Trainables "
+ "passed to `tune.run`.")
+ if ret is not None:
+ if not isinstance(ret, dict):
+ raise TypeError(
+ "The return value of the define-by-run function "
+ "passed in the `space` argument should be "
+ "either None or a `dict` with `str` keys. "
+ f"Got {type(ret)}.")
+ if not all(isinstance(k, str) for k in ret.keys()):
+ raise TypeError(
+ "At least one of the keys in the dict returned by the "
+ "define-by-run function passed in the `space` argument "
+ "was not a `str`.")
+ return {
+ **captor.captured_values,
+ **ret
+ } if ret else captor.captured_values
+
def suggest(self, trial_id: str) -> Optional[Dict]:
if not self._space:
raise RuntimeError(
@@ -538,6 +669,14 @@ class OptunaSearch(Searcher):
ot_trial, fn)(*args, **kwargs)
for (fn, args, kwargs) in self._space
}
+ elif callable(self._space):
+ if trial_id not in self._ot_trials:
+ self._ot_trials[trial_id] = self._ot_study.ask()
+
+ ot_trial = self._ot_trials[trial_id]
+
+ params = self._suggest_from_define_by_run_func(
+ self._space, ot_trial)
else:
# Use Optuna ask interface (since version 2.6.0)
if trial_id not in self._ot_trials:
diff --git a/flaml/tune/space.py b/flaml/tune/space.py
index 59cd295b5..18ae2aad9 100644
--- a/flaml/tune/space.py
+++ b/flaml/tune/space.py
@@ -26,6 +26,9 @@ def define_by_run_func(
for key, domain in space.items():
if path:
key = path + '/' + key
+ if isinstance(domain, dict):
+ config.update(define_by_run_func(trial, domain, key))
+ continue
if not isinstance(domain, sample.Domain):
config[key] = domain
continue
@@ -57,7 +60,7 @@ def define_by_run_func(
trial.suggest_int(
key, domain.lower,
domain.upper - int(bool(not quantize)),
- step=quantize or 1, log=True)
+ log=True)
elif isinstance(sampler, sample.Uniform):
# Upper bound should be inclusive for quantization and
# exclusive otherwise
@@ -76,7 +79,7 @@ def define_by_run_func(
if isinstance(choice, dict):
key += f":{index}"
# the suffix needs to be removed from the final config
- config[key] = define_by_run_func(trial, choice, key)
+ config.update(define_by_run_func(trial, choice, key))
else:
raise ValueError(
"Optuna search does not support parameters of type "
@@ -87,6 +90,32 @@ def define_by_run_func(
return config
+def convert_key(
+ conf: Dict, space: Dict, path: str = ""
+) -> Optional[Dict[str, Any]]:
+ """Convert config keys to define-by-run keys.
+
+ Returns:
+ A dict with converted keys.
+ """
+ config = {}
+ for key, domain in space.items():
+ value = conf[key]
+ if path:
+ key = path + '/' + key
+ if isinstance(domain, dict):
+ config.update(convert_key(conf[key], domain, key))
+ elif isinstance(domain, sample.Categorical):
+ index = indexof(domain, value)
+ config[key + '_choice_'] = index
+ if isinstance(value, dict):
+ key += f":{index}"
+ config.update(convert_key(value, domain.categories[index], key))
+ else:
+ config[key] = value
+ return config
+
+
def unflatten_hierarchical(config: Dict, space: Dict) -> Tuple[Dict, Dict]:
'''unflatten hierarchical config'''
hier = {}
@@ -101,12 +130,18 @@ def unflatten_hierarchical(config: Dict, space: Dict) -> Tuple[Dict, Dict]:
hier[true_key], subspace[true_key] = unflatten_hierarchical(
value, space[true_key][choice])
else:
+ if key.endswith("_choice_"):
+ key = key[:-8]
domain = space.get(key)
if domain is not None:
subspace[key] = domain
if isinstance(domain, sample.Domain):
sampler = domain.sampler
- if isinstance(sampler, sample.Quantized):
+ if isinstance(domain, sample.Categorical):
+ value = domain.categories[value]
+ if isinstance(value, dict):
+ continue
+ elif isinstance(sampler, sample.Quantized):
q = sampler.q
sampler = sampler.sampler
if isinstance(sampler, sample.LogUniform):
diff --git a/notebook/flaml_automl.ipynb b/notebook/flaml_automl.ipynb
index aa4919d67..fb0904a9d 100644
--- a/notebook/flaml_automl.ipynb
+++ b/notebook/flaml_automl.ipynb
@@ -68,7 +68,7 @@
"output_type": "stream",
"name": "stdout",
"text": [
- "download dataset from openml\n",
+ "load dataset from ./openml_ds1169.pkl\n",
"Dataset name: airlines\n",
"X_train.shape: (404537, 7), y_train.shape: (404537,);\n",
"X_test.shape: (134846, 7), y_test.shape: (134846,)\n"
@@ -114,8 +114,9 @@
"execution_count": 3,
"source": [
"settings = {\n",
- " \"time_budget\": 300, # total running time in seconds\n",
- " \"metric\": 'accuracy', # primary metrics can be chosen from: ['accuracy','roc_auc','roc_auc_ovr','roc_auc_ovo','f1','log_loss','mae','mse','r2']\n",
+ " \"time_budget\": 240, # total running time in seconds\n",
+ " \"metric\": 'accuracy', # can be: 'r2', 'rmse', 'mae', 'mse', 'accuracy', 'roc_auc', 'roc_auc_ovr',\n",
+ " # 'roc_auc_ovo', 'log_loss', 'mape', 'f1', 'ap', 'ndcg', 'micro_f1', 'macro_f1'\n",
" \"task\": 'classification', # task type \n",
" \"log_file_name\": 'airlines_experiment.log', # flaml log file\n",
" \"seed\": 7654321, # random seed\n",
@@ -140,291 +141,270 @@
"output_type": "stream",
"name": "stderr",
"text": [
- "[flaml.automl: 08-22 20:58:37] {1130} INFO - Evaluation method: holdout\n",
- "[flaml.automl: 08-22 20:58:37] {624} INFO - Using StratifiedKFold\n",
- "[flaml.automl: 08-22 20:58:37] {1155} INFO - Minimizing error metric: 1-accuracy\n",
- "[flaml.automl: 08-22 20:58:37] {1175} INFO - List of ML learners in AutoML Run: ['lgbm', 'rf', 'catboost', 'xgboost', 'extra_tree', 'lrl1']\n",
- "[flaml.automl: 08-22 20:58:37] {1358} INFO - iteration 0, current learner lgbm\n",
- "[flaml.automl: 08-22 20:58:37] {1515} INFO - at 1.1s,\tbest lgbm's error=0.3777,\tbest lgbm's error=0.3777\n",
- "[flaml.automl: 08-22 20:58:37] {1358} INFO - iteration 1, current learner lgbm\n",
- "[flaml.automl: 08-22 20:58:38] {1515} INFO - at 1.2s,\tbest lgbm's error=0.3777,\tbest lgbm's error=0.3777\n",
- "[flaml.automl: 08-22 20:58:38] {1358} INFO - iteration 2, current learner lgbm\n",
- "[flaml.automl: 08-22 20:58:38] {1515} INFO - at 1.3s,\tbest lgbm's error=0.3777,\tbest lgbm's error=0.3777\n",
- "[flaml.automl: 08-22 20:58:38] {1358} INFO - iteration 3, current learner lgbm\n",
- "[flaml.automl: 08-22 20:58:38] {1515} INFO - at 1.4s,\tbest lgbm's error=0.3661,\tbest lgbm's error=0.3661\n",
- "[flaml.automl: 08-22 20:58:38] {1358} INFO - iteration 4, current learner lgbm\n",
- "[flaml.automl: 08-22 20:58:38] {1515} INFO - at 1.5s,\tbest lgbm's error=0.3645,\tbest lgbm's error=0.3645\n",
- "[flaml.automl: 08-22 20:58:38] {1358} INFO - iteration 5, current learner lgbm\n",
- "[flaml.automl: 08-22 20:58:38] {1515} INFO - at 1.6s,\tbest lgbm's error=0.3645,\tbest lgbm's error=0.3645\n",
- "[flaml.automl: 08-22 20:58:38] {1358} INFO - iteration 6, current learner lgbm\n",
- "[flaml.automl: 08-22 20:58:38] {1515} INFO - at 1.7s,\tbest lgbm's error=0.3645,\tbest lgbm's error=0.3645\n",
- "[flaml.automl: 08-22 20:58:38] {1358} INFO - iteration 7, current learner lgbm\n",
- "[flaml.automl: 08-22 20:58:38] {1515} INFO - at 1.8s,\tbest lgbm's error=0.3610,\tbest lgbm's error=0.3610\n",
- "[flaml.automl: 08-22 20:58:38] {1358} INFO - iteration 8, current learner lgbm\n",
- "[flaml.automl: 08-22 20:58:38] {1515} INFO - at 1.9s,\tbest lgbm's error=0.3610,\tbest lgbm's error=0.3610\n",
- "[flaml.automl: 08-22 20:58:38] {1358} INFO - iteration 9, current learner lgbm\n",
- "[flaml.automl: 08-22 20:58:39] {1515} INFO - at 2.4s,\tbest lgbm's error=0.3610,\tbest lgbm's error=0.3610\n",
- "[flaml.automl: 08-22 20:58:39] {1358} INFO - iteration 10, current learner lgbm\n",
- "[flaml.automl: 08-22 20:58:39] {1515} INFO - at 2.7s,\tbest lgbm's error=0.3604,\tbest lgbm's error=0.3604\n",
- "[flaml.automl: 08-22 20:58:39] {1358} INFO - iteration 11, current learner xgboost\n",
- "[flaml.automl: 08-22 20:58:39] {1515} INFO - at 2.9s,\tbest xgboost's error=0.3787,\tbest lgbm's error=0.3604\n",
- "[flaml.automl: 08-22 20:58:39] {1358} INFO - iteration 12, current learner xgboost\n",
- "[flaml.automl: 08-22 20:58:39] {1515} INFO - at 2.9s,\tbest xgboost's error=0.3769,\tbest lgbm's error=0.3604\n",
- "[flaml.automl: 08-22 20:58:39] {1358} INFO - iteration 13, current learner extra_tree\n",
- "[flaml.automl: 08-22 20:58:39] {1515} INFO - at 3.0s,\tbest extra_tree's error=0.3788,\tbest lgbm's error=0.3604\n",
- "[flaml.automl: 08-22 20:58:39] {1358} INFO - iteration 14, current learner extra_tree\n",
- "[flaml.automl: 08-22 20:58:39] {1515} INFO - at 3.1s,\tbest extra_tree's error=0.3763,\tbest lgbm's error=0.3604\n",
- "[flaml.automl: 08-22 20:58:39] {1358} INFO - iteration 15, current learner rf\n",
- "[flaml.automl: 08-22 20:58:40] {1515} INFO - at 3.3s,\tbest rf's error=0.3787,\tbest lgbm's error=0.3604\n",
- "[flaml.automl: 08-22 20:58:40] {1358} INFO - iteration 16, current learner rf\n",
- "[flaml.automl: 08-22 20:58:40] {1515} INFO - at 3.4s,\tbest rf's error=0.3689,\tbest lgbm's error=0.3604\n",
- "[flaml.automl: 08-22 20:58:40] {1358} INFO - iteration 17, current learner xgboost\n",
- "[flaml.automl: 08-22 20:58:40] {1515} INFO - at 3.5s,\tbest xgboost's error=0.3765,\tbest lgbm's error=0.3604\n",
- "[flaml.automl: 08-22 20:58:40] {1358} INFO - iteration 18, current learner lgbm\n",
- "[flaml.automl: 08-22 20:58:40] {1515} INFO - at 3.8s,\tbest lgbm's error=0.3549,\tbest lgbm's error=0.3549\n",
- "[flaml.automl: 08-22 20:58:40] {1358} INFO - iteration 19, current learner rf\n",
- "[flaml.automl: 08-22 20:58:40] {1515} INFO - at 3.9s,\tbest rf's error=0.3689,\tbest lgbm's error=0.3549\n",
- "[flaml.automl: 08-22 20:58:40] {1358} INFO - iteration 20, current learner lgbm\n",
- "[flaml.automl: 08-22 20:58:41] {1515} INFO - at 4.2s,\tbest lgbm's error=0.3549,\tbest lgbm's error=0.3549\n",
- "[flaml.automl: 08-22 20:58:41] {1358} INFO - iteration 21, current learner lgbm\n",
- "[flaml.automl: 08-22 20:58:41] {1515} INFO - at 4.7s,\tbest lgbm's error=0.3549,\tbest lgbm's error=0.3549\n",
- "[flaml.automl: 08-22 20:58:41] {1358} INFO - iteration 22, current learner lgbm\n",
- "[flaml.automl: 08-22 20:58:41] {1515} INFO - at 5.0s,\tbest lgbm's error=0.3549,\tbest lgbm's error=0.3549\n",
- "[flaml.automl: 08-22 20:58:41] {1358} INFO - iteration 23, current learner lgbm\n",
- "[flaml.automl: 08-22 20:58:42] {1515} INFO - at 5.4s,\tbest lgbm's error=0.3549,\tbest lgbm's error=0.3549\n",
- "[flaml.automl: 08-22 20:58:42] {1358} INFO - iteration 24, current learner extra_tree\n",
- "[flaml.automl: 08-22 20:58:42] {1515} INFO - at 5.5s,\tbest extra_tree's error=0.3763,\tbest lgbm's error=0.3549\n",
- "[flaml.automl: 08-22 20:58:42] {1358} INFO - iteration 25, current learner extra_tree\n",
- "[flaml.automl: 08-22 20:58:42] {1515} INFO - at 5.6s,\tbest extra_tree's error=0.3763,\tbest lgbm's error=0.3549\n",
- "[flaml.automl: 08-22 20:58:42] {1358} INFO - iteration 26, current learner rf\n",
- "[flaml.automl: 08-22 20:58:42] {1515} INFO - at 5.8s,\tbest rf's error=0.3689,\tbest lgbm's error=0.3549\n",
- "[flaml.automl: 08-22 20:58:42] {1358} INFO - iteration 27, current learner rf\n",
- "[flaml.automl: 08-22 20:58:42] {1515} INFO - at 5.9s,\tbest rf's error=0.3668,\tbest lgbm's error=0.3549\n",
- "[flaml.automl: 08-22 20:58:42] {1358} INFO - iteration 28, current learner extra_tree\n",
- "[flaml.automl: 08-22 20:58:42] {1515} INFO - at 6.0s,\tbest extra_tree's error=0.3763,\tbest lgbm's error=0.3549\n",
- "[flaml.automl: 08-22 20:58:42] {1358} INFO - iteration 29, current learner extra_tree\n",
- "[flaml.automl: 08-22 20:58:42] {1515} INFO - at 6.2s,\tbest extra_tree's error=0.3747,\tbest lgbm's error=0.3549\n",
- "[flaml.automl: 08-22 20:58:42] {1358} INFO - iteration 30, current learner lgbm\n",
- "[flaml.automl: 08-22 20:58:45] {1515} INFO - at 8.5s,\tbest lgbm's error=0.3491,\tbest lgbm's error=0.3491\n",
- "[flaml.automl: 08-22 20:58:45] {1358} INFO - iteration 31, current learner lgbm\n",
- "[flaml.automl: 08-22 20:58:47] {1515} INFO - at 10.3s,\tbest lgbm's error=0.3422,\tbest lgbm's error=0.3422\n",
- "[flaml.automl: 08-22 20:58:47] {1358} INFO - iteration 32, current learner lgbm\n",
- "[flaml.automl: 08-22 20:58:49] {1515} INFO - at 12.4s,\tbest lgbm's error=0.3422,\tbest lgbm's error=0.3422\n",
- "[flaml.automl: 08-22 20:58:49] {1358} INFO - iteration 33, current learner xgboost\n",
- "[flaml.automl: 08-22 20:58:49] {1515} INFO - at 12.5s,\tbest xgboost's error=0.3746,\tbest lgbm's error=0.3422\n",
- "[flaml.automl: 08-22 20:58:49] {1358} INFO - iteration 34, current learner lgbm\n",
- "[flaml.automl: 08-22 20:58:50] {1515} INFO - at 13.9s,\tbest lgbm's error=0.3422,\tbest lgbm's error=0.3422\n",
- "[flaml.automl: 08-22 20:58:50] {1358} INFO - iteration 35, current learner rf\n",
- "[flaml.automl: 08-22 20:58:50] {1515} INFO - at 14.1s,\tbest rf's error=0.3668,\tbest lgbm's error=0.3422\n",
- "[flaml.automl: 08-22 20:58:50] {1358} INFO - iteration 36, current learner extra_tree\n",
- "[flaml.automl: 08-22 20:58:50] {1515} INFO - at 14.2s,\tbest extra_tree's error=0.3747,\tbest lgbm's error=0.3422\n",
- "[flaml.automl: 08-22 20:58:50] {1358} INFO - iteration 37, current learner xgboost\n",
- "[flaml.automl: 08-22 20:58:51] {1515} INFO - at 14.3s,\tbest xgboost's error=0.3673,\tbest lgbm's error=0.3422\n",
- "[flaml.automl: 08-22 20:58:51] {1358} INFO - iteration 38, current learner xgboost\n",
- "[flaml.automl: 08-22 20:58:51] {1515} INFO - at 14.3s,\tbest xgboost's error=0.3673,\tbest lgbm's error=0.3422\n",
- "[flaml.automl: 08-22 20:58:51] {1358} INFO - iteration 39, current learner xgboost\n",
- "[flaml.automl: 08-22 20:58:51] {1515} INFO - at 14.4s,\tbest xgboost's error=0.3617,\tbest lgbm's error=0.3422\n",
- "[flaml.automl: 08-22 20:58:51] {1358} INFO - iteration 40, current learner xgboost\n",
- "[flaml.automl: 08-22 20:58:51] {1515} INFO - at 14.6s,\tbest xgboost's error=0.3617,\tbest lgbm's error=0.3422\n",
- "[flaml.automl: 08-22 20:58:51] {1358} INFO - iteration 41, current learner xgboost\n",
- "[flaml.automl: 08-22 20:58:51] {1515} INFO - at 14.7s,\tbest xgboost's error=0.3617,\tbest lgbm's error=0.3422\n",
- "[flaml.automl: 08-22 20:58:51] {1358} INFO - iteration 42, current learner lgbm\n",
- "[flaml.automl: 08-22 20:58:54] {1515} INFO - at 17.6s,\tbest lgbm's error=0.3385,\tbest lgbm's error=0.3385\n",
- "[flaml.automl: 08-22 20:58:54] {1358} INFO - iteration 43, current learner xgboost\n",
- "[flaml.automl: 08-22 20:58:54] {1515} INFO - at 17.7s,\tbest xgboost's error=0.3591,\tbest lgbm's error=0.3385\n",
- "[flaml.automl: 08-22 20:58:54] {1358} INFO - iteration 44, current learner catboost\n",
- "[flaml.automl: 08-22 20:58:55] {1515} INFO - at 18.5s,\tbest catboost's error=0.3602,\tbest lgbm's error=0.3385\n",
- "[flaml.automl: 08-22 20:58:55] {1358} INFO - iteration 45, current learner extra_tree\n",
- "[flaml.automl: 08-22 20:58:55] {1515} INFO - at 18.7s,\tbest extra_tree's error=0.3747,\tbest lgbm's error=0.3385\n",
- "[flaml.automl: 08-22 20:58:55] {1358} INFO - iteration 46, current learner catboost\n",
- "[flaml.automl: 08-22 20:58:56] {1515} INFO - at 19.4s,\tbest catboost's error=0.3602,\tbest lgbm's error=0.3385\n",
- "[flaml.automl: 08-22 20:58:56] {1358} INFO - iteration 47, current learner catboost\n",
- "[flaml.automl: 08-22 20:58:56] {1515} INFO - at 19.7s,\tbest catboost's error=0.3602,\tbest lgbm's error=0.3385\n",
- "[flaml.automl: 08-22 20:58:56] {1358} INFO - iteration 48, current learner catboost\n",
- "[flaml.automl: 08-22 20:58:57] {1515} INFO - at 20.8s,\tbest catboost's error=0.3602,\tbest lgbm's error=0.3385\n",
- "[flaml.automl: 08-22 20:58:57] {1358} INFO - iteration 49, current learner lgbm\n",
- "[flaml.automl: 08-22 20:59:02] {1515} INFO - at 25.8s,\tbest lgbm's error=0.3378,\tbest lgbm's error=0.3378\n",
- "[flaml.automl: 08-22 20:59:02] {1358} INFO - iteration 50, current learner catboost\n",
- "[flaml.automl: 08-22 20:59:02] {1515} INFO - at 26.1s,\tbest catboost's error=0.3602,\tbest lgbm's error=0.3378\n",
- "[flaml.automl: 08-22 20:59:02] {1358} INFO - iteration 51, current learner xgboost\n",
- "[flaml.automl: 08-22 20:59:03] {1515} INFO - at 26.3s,\tbest xgboost's error=0.3591,\tbest lgbm's error=0.3378\n",
- "[flaml.automl: 08-22 20:59:03] {1358} INFO - iteration 52, current learner rf\n",
- "[flaml.automl: 08-22 20:59:03] {1515} INFO - at 26.5s,\tbest rf's error=0.3659,\tbest lgbm's error=0.3378\n",
- "[flaml.automl: 08-22 20:59:03] {1358} INFO - iteration 53, current learner rf\n",
- "[flaml.automl: 08-22 20:59:03] {1515} INFO - at 26.7s,\tbest rf's error=0.3633,\tbest lgbm's error=0.3378\n",
- "[flaml.automl: 08-22 20:59:03] {1358} INFO - iteration 54, current learner lgbm\n",
- "[flaml.automl: 08-22 20:59:06] {1515} INFO - at 29.9s,\tbest lgbm's error=0.3378,\tbest lgbm's error=0.3378\n",
- "[flaml.automl: 08-22 20:59:06] {1358} INFO - iteration 55, current learner lgbm\n",
- "[flaml.automl: 08-22 20:59:12] {1515} INFO - at 35.8s,\tbest lgbm's error=0.3378,\tbest lgbm's error=0.3378\n",
- "[flaml.automl: 08-22 20:59:12] {1358} INFO - iteration 56, current learner catboost\n",
- "[flaml.automl: 08-22 20:59:14] {1515} INFO - at 37.6s,\tbest catboost's error=0.3493,\tbest lgbm's error=0.3378\n",
- "[flaml.automl: 08-22 20:59:14] {1358} INFO - iteration 57, current learner rf\n",
- "[flaml.automl: 08-22 20:59:14] {1515} INFO - at 37.8s,\tbest rf's error=0.3633,\tbest lgbm's error=0.3378\n",
- "[flaml.automl: 08-22 20:59:14] {1358} INFO - iteration 58, current learner rf\n",
- "[flaml.automl: 08-22 20:59:14] {1515} INFO - at 38.0s,\tbest rf's error=0.3633,\tbest lgbm's error=0.3378\n",
- "[flaml.automl: 08-22 20:59:14] {1358} INFO - iteration 59, current learner catboost\n",
- "[flaml.automl: 08-22 20:59:21] {1515} INFO - at 45.0s,\tbest catboost's error=0.3493,\tbest lgbm's error=0.3378\n",
- "[flaml.automl: 08-22 20:59:21] {1358} INFO - iteration 60, current learner lgbm\n",
- "[flaml.automl: 08-22 20:59:25] {1515} INFO - at 48.6s,\tbest lgbm's error=0.3346,\tbest lgbm's error=0.3346\n",
- "[flaml.automl: 08-22 20:59:25] {1358} INFO - iteration 61, current learner catboost\n",
- "[flaml.automl: 08-22 20:59:26] {1515} INFO - at 50.0s,\tbest catboost's error=0.3475,\tbest lgbm's error=0.3346\n",
- "[flaml.automl: 08-22 20:59:26] {1358} INFO - iteration 62, current learner lgbm\n",
- "[flaml.automl: 08-22 20:59:30] {1515} INFO - at 54.1s,\tbest lgbm's error=0.3335,\tbest lgbm's error=0.3335\n",
- "[flaml.automl: 08-22 20:59:30] {1358} INFO - iteration 63, current learner rf\n",
- "[flaml.automl: 08-22 20:59:31] {1515} INFO - at 54.4s,\tbest rf's error=0.3633,\tbest lgbm's error=0.3335\n",
- "[flaml.automl: 08-22 20:59:31] {1358} INFO - iteration 64, current learner catboost\n",
- "[flaml.automl: 08-22 20:59:32] {1515} INFO - at 55.5s,\tbest catboost's error=0.3475,\tbest lgbm's error=0.3335\n",
- "[flaml.automl: 08-22 20:59:32] {1358} INFO - iteration 65, current learner lgbm\n",
- "[flaml.automl: 08-22 20:59:35] {1515} INFO - at 59.1s,\tbest lgbm's error=0.3334,\tbest lgbm's error=0.3334\n",
- "[flaml.automl: 08-22 20:59:35] {1358} INFO - iteration 66, current learner lgbm\n",
- "[flaml.automl: 08-22 20:59:42] {1515} INFO - at 65.4s,\tbest lgbm's error=0.3334,\tbest lgbm's error=0.3334\n",
- "[flaml.automl: 08-22 20:59:42] {1358} INFO - iteration 67, current learner xgboost\n",
- "[flaml.automl: 08-22 20:59:42] {1515} INFO - at 65.5s,\tbest xgboost's error=0.3591,\tbest lgbm's error=0.3334\n",
- "[flaml.automl: 08-22 20:59:42] {1358} INFO - iteration 68, current learner lgbm\n",
- "[flaml.automl: 08-22 20:59:44] {1515} INFO - at 67.7s,\tbest lgbm's error=0.3334,\tbest lgbm's error=0.3334\n",
- "[flaml.automl: 08-22 20:59:44] {1358} INFO - iteration 69, current learner lgbm\n",
- "[flaml.automl: 08-22 20:59:46] {1515} INFO - at 70.2s,\tbest lgbm's error=0.3334,\tbest lgbm's error=0.3334\n",
- "[flaml.automl: 08-22 20:59:46] {1358} INFO - iteration 70, current learner rf\n",
- "[flaml.automl: 08-22 20:59:47] {1515} INFO - at 70.3s,\tbest rf's error=0.3633,\tbest lgbm's error=0.3334\n",
- "[flaml.automl: 08-22 20:59:47] {1358} INFO - iteration 71, current learner xgboost\n",
- "[flaml.automl: 08-22 20:59:47] {1515} INFO - at 70.5s,\tbest xgboost's error=0.3591,\tbest lgbm's error=0.3334\n",
- "[flaml.automl: 08-22 20:59:47] {1358} INFO - iteration 72, current learner rf\n",
- "[flaml.automl: 08-22 20:59:47] {1515} INFO - at 70.8s,\tbest rf's error=0.3633,\tbest lgbm's error=0.3334\n",
- "[flaml.automl: 08-22 20:59:47] {1358} INFO - iteration 73, current learner extra_tree\n",
- "[flaml.automl: 08-22 20:59:47] {1515} INFO - at 70.9s,\tbest extra_tree's error=0.3747,\tbest lgbm's error=0.3334\n",
- "[flaml.automl: 08-22 20:59:47] {1358} INFO - iteration 74, current learner catboost\n",
- "[flaml.automl: 08-22 20:59:48] {1515} INFO - at 71.9s,\tbest catboost's error=0.3475,\tbest lgbm's error=0.3334\n",
- "[flaml.automl: 08-22 20:59:48] {1358} INFO - iteration 75, current learner extra_tree\n",
- "[flaml.automl: 08-22 20:59:48] {1515} INFO - at 72.1s,\tbest extra_tree's error=0.3747,\tbest lgbm's error=0.3334\n",
- "[flaml.automl: 08-22 20:59:48] {1358} INFO - iteration 76, current learner lgbm\n",
- "[flaml.automl: 08-22 20:59:54] {1515} INFO - at 77.6s,\tbest lgbm's error=0.3334,\tbest lgbm's error=0.3334\n",
- "[flaml.automl: 08-22 20:59:54] {1358} INFO - iteration 77, current learner lgbm\n",
- "[flaml.automl: 08-22 20:59:56] {1515} INFO - at 79.7s,\tbest lgbm's error=0.3334,\tbest lgbm's error=0.3334\n",
- "[flaml.automl: 08-22 20:59:56] {1358} INFO - iteration 78, current learner xgboost\n",
- "[flaml.automl: 08-22 20:59:56] {1515} INFO - at 79.8s,\tbest xgboost's error=0.3591,\tbest lgbm's error=0.3334\n",
- "[flaml.automl: 08-22 20:59:56] {1358} INFO - iteration 79, current learner rf\n",
- "[flaml.automl: 08-22 20:59:56] {1515} INFO - at 80.2s,\tbest rf's error=0.3598,\tbest lgbm's error=0.3334\n",
- "[flaml.automl: 08-22 20:59:56] {1358} INFO - iteration 80, current learner lgbm\n",
- "[flaml.automl: 08-22 21:00:02] {1515} INFO - at 85.8s,\tbest lgbm's error=0.3334,\tbest lgbm's error=0.3334\n",
- "[flaml.automl: 08-22 21:00:02] {1358} INFO - iteration 81, current learner extra_tree\n",
- "[flaml.automl: 08-22 21:00:02] {1515} INFO - at 86.0s,\tbest extra_tree's error=0.3747,\tbest lgbm's error=0.3334\n",
- "[flaml.automl: 08-22 21:00:02] {1358} INFO - iteration 82, current learner rf\n",
- "[flaml.automl: 08-22 21:00:03] {1515} INFO - at 86.2s,\tbest rf's error=0.3598,\tbest lgbm's error=0.3334\n",
- "[flaml.automl: 08-22 21:00:03] {1358} INFO - iteration 83, current learner xgboost\n",
- "[flaml.automl: 08-22 21:00:03] {1515} INFO - at 86.5s,\tbest xgboost's error=0.3574,\tbest lgbm's error=0.3334\n",
- "[flaml.automl: 08-22 21:00:03] {1358} INFO - iteration 84, current learner xgboost\n",
- "[flaml.automl: 08-22 21:00:03] {1515} INFO - at 86.8s,\tbest xgboost's error=0.3574,\tbest lgbm's error=0.3334\n",
- "[flaml.automl: 08-22 21:00:03] {1358} INFO - iteration 85, current learner extra_tree\n",
- "[flaml.automl: 08-22 21:00:03] {1515} INFO - at 87.0s,\tbest extra_tree's error=0.3747,\tbest lgbm's error=0.3334\n",
- "[flaml.automl: 08-22 21:00:03] {1358} INFO - iteration 86, current learner catboost\n",
- "[flaml.automl: 08-22 21:00:08] {1515} INFO - at 91.9s,\tbest catboost's error=0.3475,\tbest lgbm's error=0.3334\n",
- "[flaml.automl: 08-22 21:00:08] {1358} INFO - iteration 87, current learner xgboost\n",
- "[flaml.automl: 08-22 21:00:09] {1515} INFO - at 92.2s,\tbest xgboost's error=0.3534,\tbest lgbm's error=0.3334\n",
- "[flaml.automl: 08-22 21:00:09] {1358} INFO - iteration 88, current learner xgboost\n",
- "[flaml.automl: 08-22 21:00:09] {1515} INFO - at 92.5s,\tbest xgboost's error=0.3534,\tbest lgbm's error=0.3334\n",
- "[flaml.automl: 08-22 21:00:09] {1358} INFO - iteration 89, current learner rf\n",
- "[flaml.automl: 08-22 21:00:09] {1515} INFO - at 93.1s,\tbest rf's error=0.3598,\tbest lgbm's error=0.3334\n",
- "[flaml.automl: 08-22 21:00:09] {1358} INFO - iteration 90, current learner xgboost\n",
- "[flaml.automl: 08-22 21:00:10] {1515} INFO - at 93.9s,\tbest xgboost's error=0.3504,\tbest lgbm's error=0.3334\n",
- "[flaml.automl: 08-22 21:00:10] {1358} INFO - iteration 91, current learner catboost\n",
- "[flaml.automl: 08-22 21:00:17] {1515} INFO - at 101.0s,\tbest catboost's error=0.3378,\tbest lgbm's error=0.3334\n",
- "[flaml.automl: 08-22 21:00:17] {1358} INFO - iteration 92, current learner extra_tree\n",
- "[flaml.automl: 08-22 21:00:17] {1515} INFO - at 101.2s,\tbest extra_tree's error=0.3697,\tbest lgbm's error=0.3334\n",
- "[flaml.automl: 08-22 21:00:17] {1358} INFO - iteration 93, current learner xgboost\n",
- "[flaml.automl: 08-22 21:00:18] {1515} INFO - at 101.6s,\tbest xgboost's error=0.3504,\tbest lgbm's error=0.3334\n",
- "[flaml.automl: 08-22 21:00:18] {1358} INFO - iteration 94, current learner xgboost\n",
- "[flaml.automl: 08-22 21:00:21] {1515} INFO - at 104.4s,\tbest xgboost's error=0.3504,\tbest lgbm's error=0.3334\n",
- "[flaml.automl: 08-22 21:00:21] {1358} INFO - iteration 95, current learner lgbm\n",
- "[flaml.automl: 08-22 21:00:24] {1515} INFO - at 107.4s,\tbest lgbm's error=0.3316,\tbest lgbm's error=0.3316\n",
- "[flaml.automl: 08-22 21:00:24] {1358} INFO - iteration 96, current learner extra_tree\n",
- "[flaml.automl: 08-22 21:00:24] {1515} INFO - at 107.6s,\tbest extra_tree's error=0.3688,\tbest lgbm's error=0.3316\n",
- "[flaml.automl: 08-22 21:00:24] {1358} INFO - iteration 97, current learner catboost\n",
- "[flaml.automl: 08-22 21:00:52] {1515} INFO - at 135.7s,\tbest catboost's error=0.3378,\tbest lgbm's error=0.3316\n",
- "[flaml.automl: 08-22 21:00:52] {1358} INFO - iteration 98, current learner xgboost\n",
- "[flaml.automl: 08-22 21:00:53] {1515} INFO - at 136.4s,\tbest xgboost's error=0.3504,\tbest lgbm's error=0.3316\n",
- "[flaml.automl: 08-22 21:00:53] {1358} INFO - iteration 99, current learner catboost\n",
- "[flaml.automl: 08-22 21:00:59] {1515} INFO - at 142.3s,\tbest catboost's error=0.3378,\tbest lgbm's error=0.3316\n",
- "[flaml.automl: 08-22 21:00:59] {1358} INFO - iteration 100, current learner rf\n",
- "[flaml.automl: 08-22 21:00:59] {1515} INFO - at 142.7s,\tbest rf's error=0.3572,\tbest lgbm's error=0.3316\n",
- "[flaml.automl: 08-22 21:00:59] {1358} INFO - iteration 101, current learner extra_tree\n",
- "[flaml.automl: 08-22 21:00:59] {1515} INFO - at 142.9s,\tbest extra_tree's error=0.3688,\tbest lgbm's error=0.3316\n",
- "[flaml.automl: 08-22 21:00:59] {1358} INFO - iteration 102, current learner catboost\n",
- "[flaml.automl: 08-22 21:02:06] {1515} INFO - at 209.6s,\tbest catboost's error=0.3378,\tbest lgbm's error=0.3316\n",
- "[flaml.automl: 08-22 21:02:06] {1358} INFO - iteration 103, current learner lgbm\n",
- "[flaml.automl: 08-22 21:02:10] {1515} INFO - at 213.2s,\tbest lgbm's error=0.3316,\tbest lgbm's error=0.3316\n",
- "[flaml.automl: 08-22 21:02:10] {1358} INFO - iteration 104, current learner catboost\n",
- "[flaml.automl: 08-22 21:02:10] {1515} INFO - at 213.6s,\tbest catboost's error=0.3378,\tbest lgbm's error=0.3316\n",
- "[flaml.automl: 08-22 21:02:10] {1358} INFO - iteration 105, current learner rf\n",
- "[flaml.automl: 08-22 21:02:10] {1515} INFO - at 214.0s,\tbest rf's error=0.3572,\tbest lgbm's error=0.3316\n",
- "[flaml.automl: 08-22 21:02:10] {1358} INFO - iteration 106, current learner rf\n",
- "[flaml.automl: 08-22 21:02:11] {1515} INFO - at 214.3s,\tbest rf's error=0.3572,\tbest lgbm's error=0.3316\n",
- "[flaml.automl: 08-22 21:02:11] {1358} INFO - iteration 107, current learner extra_tree\n",
- "[flaml.automl: 08-22 21:02:11] {1515} INFO - at 214.4s,\tbest extra_tree's error=0.3605,\tbest lgbm's error=0.3316\n",
- "[flaml.automl: 08-22 21:02:11] {1358} INFO - iteration 108, current learner extra_tree\n",
- "[flaml.automl: 08-22 21:02:11] {1515} INFO - at 214.6s,\tbest extra_tree's error=0.3605,\tbest lgbm's error=0.3316\n",
- "[flaml.automl: 08-22 21:02:11] {1358} INFO - iteration 109, current learner extra_tree\n",
- "[flaml.automl: 08-22 21:02:11] {1515} INFO - at 214.8s,\tbest extra_tree's error=0.3605,\tbest lgbm's error=0.3316\n",
- "[flaml.automl: 08-22 21:02:11] {1358} INFO - iteration 110, current learner extra_tree\n",
- "[flaml.automl: 08-22 21:02:11] {1515} INFO - at 215.0s,\tbest extra_tree's error=0.3605,\tbest lgbm's error=0.3316\n",
- "[flaml.automl: 08-22 21:02:11] {1358} INFO - iteration 111, current learner lgbm\n",
- "[flaml.automl: 08-22 21:02:20] {1515} INFO - at 223.7s,\tbest lgbm's error=0.3316,\tbest lgbm's error=0.3316\n",
- "[flaml.automl: 08-22 21:02:20] {1358} INFO - iteration 112, current learner extra_tree\n",
- "[flaml.automl: 08-22 21:02:20] {1515} INFO - at 223.9s,\tbest extra_tree's error=0.3605,\tbest lgbm's error=0.3316\n",
- "[flaml.automl: 08-22 21:02:20] {1358} INFO - iteration 113, current learner extra_tree\n",
- "[flaml.automl: 08-22 21:02:21] {1515} INFO - at 224.7s,\tbest extra_tree's error=0.3605,\tbest lgbm's error=0.3316\n",
- "[flaml.automl: 08-22 21:02:21] {1358} INFO - iteration 114, current learner extra_tree\n",
- "[flaml.automl: 08-22 21:02:22] {1515} INFO - at 225.9s,\tbest extra_tree's error=0.3605,\tbest lgbm's error=0.3316\n",
- "[flaml.automl: 08-22 21:02:22] {1358} INFO - iteration 115, current learner lgbm\n",
- "[flaml.automl: 08-22 21:02:24] {1515} INFO - at 227.4s,\tbest lgbm's error=0.3316,\tbest lgbm's error=0.3316\n",
- "[flaml.automl: 08-22 21:02:24] {1358} INFO - iteration 116, current learner lgbm\n",
- "[flaml.automl: 08-22 21:02:29] {1515} INFO - at 232.6s,\tbest lgbm's error=0.3299,\tbest lgbm's error=0.3299\n",
- "[flaml.automl: 08-22 21:02:29] {1358} INFO - iteration 117, current learner extra_tree\n",
- "[flaml.automl: 08-22 21:02:30] {1515} INFO - at 233.3s,\tbest extra_tree's error=0.3605,\tbest lgbm's error=0.3299\n",
- "[flaml.automl: 08-22 21:02:30] {1358} INFO - iteration 118, current learner xgboost\n",
- "[flaml.automl: 08-22 21:02:35] {1515} INFO - at 238.5s,\tbest xgboost's error=0.3406,\tbest lgbm's error=0.3299\n",
- "[flaml.automl: 08-22 21:02:35] {1358} INFO - iteration 119, current learner lgbm\n",
- "[flaml.automl: 08-22 21:02:38] {1515} INFO - at 241.5s,\tbest lgbm's error=0.3299,\tbest lgbm's error=0.3299\n",
- "[flaml.automl: 08-22 21:02:38] {1358} INFO - iteration 120, current learner xgboost\n",
- "[flaml.automl: 08-22 21:02:41] {1515} INFO - at 244.7s,\tbest xgboost's error=0.3406,\tbest lgbm's error=0.3299\n",
- "[flaml.automl: 08-22 21:02:41] {1358} INFO - iteration 121, current learner xgboost\n",
- "[flaml.automl: 08-22 21:02:50] {1515} INFO - at 253.9s,\tbest xgboost's error=0.3382,\tbest lgbm's error=0.3299\n",
- "[flaml.automl: 08-22 21:02:50] {1358} INFO - iteration 122, current learner extra_tree\n",
- "[flaml.automl: 08-22 21:02:51] {1515} INFO - at 254.9s,\tbest extra_tree's error=0.3605,\tbest lgbm's error=0.3299\n",
- "[flaml.automl: 08-22 21:02:51] {1358} INFO - iteration 123, current learner xgboost\n",
- "[flaml.automl: 08-22 21:02:55] {1515} INFO - at 258.2s,\tbest xgboost's error=0.3382,\tbest lgbm's error=0.3299\n",
- "[flaml.automl: 08-22 21:02:55] {1358} INFO - iteration 124, current learner lgbm\n",
- "[flaml.automl: 08-22 21:03:12] {1515} INFO - at 275.9s,\tbest lgbm's error=0.3299,\tbest lgbm's error=0.3299\n",
- "[flaml.automl: 08-22 21:03:12] {1358} INFO - iteration 125, current learner lgbm\n",
- "[flaml.automl: 08-22 21:03:15] {1515} INFO - at 278.4s,\tbest lgbm's error=0.3299,\tbest lgbm's error=0.3299\n",
- "[flaml.automl: 08-22 21:03:15] {1358} INFO - iteration 126, current learner lgbm\n",
- "[flaml.automl: 08-22 21:03:17] {1515} INFO - at 280.3s,\tbest lgbm's error=0.3299,\tbest lgbm's error=0.3299\n",
- "[flaml.automl: 08-22 21:03:17] {1358} INFO - iteration 127, current learner lgbm\n",
- "[flaml.automl: 08-22 21:03:35] {1515} INFO - at 298.5s,\tbest lgbm's error=0.3268,\tbest lgbm's error=0.3268\n",
- "[flaml.automl: 08-22 21:03:35] {1358} INFO - iteration 128, current learner rf\n",
- "[flaml.automl: 08-22 21:03:35] {1515} INFO - at 298.6s,\tbest rf's error=0.3572,\tbest lgbm's error=0.3268\n",
- "[flaml.automl: 08-22 21:03:35] {1358} INFO - iteration 129, current learner extra_tree\n",
- "[flaml.automl: 08-22 21:03:36] {1515} INFO - at 299.5s,\tbest extra_tree's error=0.3573,\tbest lgbm's error=0.3268\n",
- "[flaml.automl: 08-22 21:03:36] {1358} INFO - iteration 130, current learner rf\n",
- "[flaml.automl: 08-22 21:03:36] {1515} INFO - at 299.6s,\tbest rf's error=0.3572,\tbest lgbm's error=0.3268\n",
- "[flaml.automl: 08-22 21:03:36] {1358} INFO - iteration 131, current learner lrl1\n",
+ "[flaml.automl: 08-31 00:53:33] {1279} INFO - Evaluation method: holdout\n",
+ "[flaml.automl: 08-31 00:53:34] {1312} INFO - Minimizing error metric: 1-accuracy\n",
+ "[flaml.automl: 08-31 00:53:34] {1338} INFO - List of ML learners in AutoML Run: ['lgbm', 'rf', 'catboost', 'xgboost', 'extra_tree', 'lrl1']\n",
+ "[flaml.automl: 08-31 00:53:34] {1532} INFO - iteration 0, current learner lgbm\n",
+ "[flaml.automl: 08-31 00:53:34] {1689} INFO - at 1.4s,\tbest lgbm's error=0.3777,\tbest lgbm's error=0.3777\n",
+ "[flaml.automl: 08-31 00:53:34] {1532} INFO - iteration 1, current learner lgbm\n",
+ "[flaml.automl: 08-31 00:53:34] {1689} INFO - at 1.6s,\tbest lgbm's error=0.3777,\tbest lgbm's error=0.3777\n",
+ "[flaml.automl: 08-31 00:53:34] {1532} INFO - iteration 2, current learner lgbm\n",
+ "[flaml.automl: 08-31 00:53:34] {1689} INFO - at 1.7s,\tbest lgbm's error=0.3777,\tbest lgbm's error=0.3777\n",
+ "[flaml.automl: 08-31 00:53:34] {1532} INFO - iteration 3, current learner lgbm\n",
+ "[flaml.automl: 08-31 00:53:34] {1689} INFO - at 1.9s,\tbest lgbm's error=0.3661,\tbest lgbm's error=0.3661\n",
+ "[flaml.automl: 08-31 00:53:34] {1532} INFO - iteration 4, current learner xgboost\n",
+ "[flaml.automl: 08-31 00:53:35] {1689} INFO - at 2.1s,\tbest xgboost's error=0.3787,\tbest lgbm's error=0.3661\n",
+ "[flaml.automl: 08-31 00:53:35] {1532} INFO - iteration 5, current learner xgboost\n",
+ "[flaml.automl: 08-31 00:53:35] {1689} INFO - at 2.2s,\tbest xgboost's error=0.3769,\tbest lgbm's error=0.3661\n",
+ "[flaml.automl: 08-31 00:53:35] {1532} INFO - iteration 6, current learner extra_tree\n",
+ "[flaml.automl: 08-31 00:53:35] {1689} INFO - at 2.4s,\tbest extra_tree's error=0.3788,\tbest lgbm's error=0.3661\n",
+ "[flaml.automl: 08-31 00:53:35] {1532} INFO - iteration 7, current learner lgbm\n",
+ "[flaml.automl: 08-31 00:53:35] {1689} INFO - at 2.5s,\tbest lgbm's error=0.3645,\tbest lgbm's error=0.3645\n",
+ "[flaml.automl: 08-31 00:53:35] {1532} INFO - iteration 8, current learner lgbm\n",
+ "[flaml.automl: 08-31 00:53:35] {1689} INFO - at 2.7s,\tbest lgbm's error=0.3645,\tbest lgbm's error=0.3645\n",
+ "[flaml.automl: 08-31 00:53:35] {1532} INFO - iteration 9, current learner lgbm\n",
+ "[flaml.automl: 08-31 00:53:35] {1689} INFO - at 2.8s,\tbest lgbm's error=0.3645,\tbest lgbm's error=0.3645\n",
+ "[flaml.automl: 08-31 00:53:35] {1532} INFO - iteration 10, current learner lgbm\n",
+ "[flaml.automl: 08-31 00:53:35] {1689} INFO - at 3.0s,\tbest lgbm's error=0.3610,\tbest lgbm's error=0.3610\n",
+ "[flaml.automl: 08-31 00:53:35] {1532} INFO - iteration 11, current learner extra_tree\n",
+ "[flaml.automl: 08-31 00:53:36] {1689} INFO - at 3.2s,\tbest extra_tree's error=0.3763,\tbest lgbm's error=0.3610\n",
+ "[flaml.automl: 08-31 00:53:36] {1532} INFO - iteration 12, current learner rf\n",
+ "[flaml.automl: 08-31 00:53:36] {1689} INFO - at 3.4s,\tbest rf's error=0.3787,\tbest lgbm's error=0.3610\n",
+ "[flaml.automl: 08-31 00:53:36] {1532} INFO - iteration 13, current learner rf\n",
+ "[flaml.automl: 08-31 00:53:36] {1689} INFO - at 3.5s,\tbest rf's error=0.3689,\tbest lgbm's error=0.3610\n",
+ "[flaml.automl: 08-31 00:53:36] {1532} INFO - iteration 14, current learner rf\n",
+ "[flaml.automl: 08-31 00:53:36] {1689} INFO - at 3.7s,\tbest rf's error=0.3689,\tbest lgbm's error=0.3610\n",
+ "[flaml.automl: 08-31 00:53:36] {1532} INFO - iteration 15, current learner rf\n",
+ "[flaml.automl: 08-31 00:53:36] {1689} INFO - at 4.0s,\tbest rf's error=0.3689,\tbest lgbm's error=0.3610\n",
+ "[flaml.automl: 08-31 00:53:36] {1532} INFO - iteration 16, current learner lgbm\n",
+ "[flaml.automl: 08-31 00:53:37] {1689} INFO - at 4.2s,\tbest lgbm's error=0.3610,\tbest lgbm's error=0.3610\n",
+ "[flaml.automl: 08-31 00:53:37] {1532} INFO - iteration 17, current learner xgboost\n",
+ "[flaml.automl: 08-31 00:53:37] {1689} INFO - at 4.3s,\tbest xgboost's error=0.3765,\tbest lgbm's error=0.3610\n",
+ "[flaml.automl: 08-31 00:53:37] {1532} INFO - iteration 18, current learner lgbm\n",
+ "[flaml.automl: 08-31 00:53:37] {1689} INFO - at 4.9s,\tbest lgbm's error=0.3610,\tbest lgbm's error=0.3610\n",
+ "[flaml.automl: 08-31 00:53:37] {1532} INFO - iteration 19, current learner rf\n",
+ "[flaml.automl: 08-31 00:53:38] {1689} INFO - at 5.1s,\tbest rf's error=0.3689,\tbest lgbm's error=0.3610\n",
+ "[flaml.automl: 08-31 00:53:38] {1532} INFO - iteration 20, current learner lgbm\n",
+ "[flaml.automl: 08-31 00:53:38] {1689} INFO - at 5.3s,\tbest lgbm's error=0.3610,\tbest lgbm's error=0.3610\n",
+ "[flaml.automl: 08-31 00:53:38] {1532} INFO - iteration 21, current learner rf\n",
+ "[flaml.automl: 08-31 00:53:38] {1689} INFO - at 5.6s,\tbest rf's error=0.3689,\tbest lgbm's error=0.3610\n",
+ "[flaml.automl: 08-31 00:53:38] {1532} INFO - iteration 22, current learner lgbm\n",
+ "[flaml.automl: 08-31 00:53:38] {1689} INFO - at 6.0s,\tbest lgbm's error=0.3604,\tbest lgbm's error=0.3604\n",
+ "[flaml.automl: 08-31 00:53:38] {1532} INFO - iteration 23, current learner lgbm\n",
+ "[flaml.automl: 08-31 00:53:39] {1689} INFO - at 6.5s,\tbest lgbm's error=0.3545,\tbest lgbm's error=0.3545\n",
+ "[flaml.automl: 08-31 00:53:39] {1532} INFO - iteration 24, current learner rf\n",
+ "[flaml.automl: 08-31 00:53:39] {1689} INFO - at 6.8s,\tbest rf's error=0.3631,\tbest lgbm's error=0.3545\n",
+ "[flaml.automl: 08-31 00:53:39] {1532} INFO - iteration 25, current learner extra_tree\n",
+ "[flaml.automl: 08-31 00:53:39] {1689} INFO - at 7.0s,\tbest extra_tree's error=0.3763,\tbest lgbm's error=0.3545\n",
+ "[flaml.automl: 08-31 00:53:39] {1532} INFO - iteration 26, current learner lgbm\n",
+ "[flaml.automl: 08-31 00:53:40] {1689} INFO - at 7.5s,\tbest lgbm's error=0.3523,\tbest lgbm's error=0.3523\n",
+ "[flaml.automl: 08-31 00:53:40] {1532} INFO - iteration 27, current learner lgbm\n",
+ "[flaml.automl: 08-31 00:53:40] {1689} INFO - at 8.0s,\tbest lgbm's error=0.3523,\tbest lgbm's error=0.3523\n",
+ "[flaml.automl: 08-31 00:53:40] {1532} INFO - iteration 28, current learner rf\n",
+ "[flaml.automl: 08-31 00:53:41] {1689} INFO - at 8.5s,\tbest rf's error=0.3621,\tbest lgbm's error=0.3523\n",
+ "[flaml.automl: 08-31 00:53:41] {1532} INFO - iteration 29, current learner rf\n",
+ "[flaml.automl: 08-31 00:53:41] {1689} INFO - at 8.7s,\tbest rf's error=0.3621,\tbest lgbm's error=0.3523\n",
+ "[flaml.automl: 08-31 00:53:41] {1532} INFO - iteration 30, current learner lgbm\n",
+ "[flaml.automl: 08-31 00:53:42] {1689} INFO - at 9.2s,\tbest lgbm's error=0.3523,\tbest lgbm's error=0.3523\n",
+ "[flaml.automl: 08-31 00:53:42] {1532} INFO - iteration 31, current learner lgbm\n",
+ "[flaml.automl: 08-31 00:53:42] {1689} INFO - at 9.7s,\tbest lgbm's error=0.3523,\tbest lgbm's error=0.3523\n",
+ "[flaml.automl: 08-31 00:53:42] {1532} INFO - iteration 32, current learner lgbm\n",
+ "[flaml.automl: 08-31 00:53:43] {1689} INFO - at 10.2s,\tbest lgbm's error=0.3523,\tbest lgbm's error=0.3523\n",
+ "[flaml.automl: 08-31 00:53:43] {1532} INFO - iteration 33, current learner extra_tree\n",
+ "[flaml.automl: 08-31 00:53:43] {1689} INFO - at 10.4s,\tbest extra_tree's error=0.3763,\tbest lgbm's error=0.3523\n",
+ "[flaml.automl: 08-31 00:53:43] {1532} INFO - iteration 34, current learner lgbm\n",
+ "[flaml.automl: 08-31 00:53:46] {1689} INFO - at 13.3s,\tbest lgbm's error=0.3475,\tbest lgbm's error=0.3475\n",
+ "[flaml.automl: 08-31 00:53:46] {1532} INFO - iteration 35, current learner catboost\n",
+ "[flaml.automl: 08-31 00:53:46] {1689} INFO - at 13.9s,\tbest catboost's error=0.3602,\tbest lgbm's error=0.3475\n",
+ "[flaml.automl: 08-31 00:53:46] {1532} INFO - iteration 36, current learner catboost\n",
+ "[flaml.automl: 08-31 00:53:47] {1689} INFO - at 14.4s,\tbest catboost's error=0.3602,\tbest lgbm's error=0.3475\n",
+ "[flaml.automl: 08-31 00:53:47] {1532} INFO - iteration 37, current learner xgboost\n",
+ "[flaml.automl: 08-31 00:53:47] {1689} INFO - at 14.5s,\tbest xgboost's error=0.3746,\tbest lgbm's error=0.3475\n",
+ "[flaml.automl: 08-31 00:53:47] {1532} INFO - iteration 38, current learner catboost\n",
+ "[flaml.automl: 08-31 00:53:47] {1689} INFO - at 14.8s,\tbest catboost's error=0.3602,\tbest lgbm's error=0.3475\n",
+ "[flaml.automl: 08-31 00:53:47] {1532} INFO - iteration 39, current learner catboost\n",
+ "[flaml.automl: 08-31 00:53:48] {1689} INFO - at 15.4s,\tbest catboost's error=0.3602,\tbest lgbm's error=0.3475\n",
+ "[flaml.automl: 08-31 00:53:48] {1532} INFO - iteration 40, current learner catboost\n",
+ "[flaml.automl: 08-31 00:53:48] {1689} INFO - at 15.6s,\tbest catboost's error=0.3602,\tbest lgbm's error=0.3475\n",
+ "[flaml.automl: 08-31 00:53:48] {1532} INFO - iteration 41, current learner catboost\n",
+ "[flaml.automl: 08-31 00:53:50] {1689} INFO - at 17.4s,\tbest catboost's error=0.3493,\tbest lgbm's error=0.3475\n",
+ "[flaml.automl: 08-31 00:53:50] {1532} INFO - iteration 42, current learner xgboost\n",
+ "[flaml.automl: 08-31 00:53:50] {1689} INFO - at 17.6s,\tbest xgboost's error=0.3673,\tbest lgbm's error=0.3475\n",
+ "[flaml.automl: 08-31 00:53:50] {1532} INFO - iteration 43, current learner lgbm\n",
+ "[flaml.automl: 08-31 00:53:52] {1689} INFO - at 19.8s,\tbest lgbm's error=0.3475,\tbest lgbm's error=0.3475\n",
+ "[flaml.automl: 08-31 00:53:52] {1532} INFO - iteration 44, current learner xgboost\n",
+ "[flaml.automl: 08-31 00:53:52] {1689} INFO - at 19.9s,\tbest xgboost's error=0.3673,\tbest lgbm's error=0.3475\n",
+ "[flaml.automl: 08-31 00:53:52] {1532} INFO - iteration 45, current learner extra_tree\n",
+ "[flaml.automl: 08-31 00:53:53] {1689} INFO - at 20.1s,\tbest extra_tree's error=0.3755,\tbest lgbm's error=0.3475\n",
+ "[flaml.automl: 08-31 00:53:53] {1532} INFO - iteration 46, current learner xgboost\n",
+ "[flaml.automl: 08-31 00:53:53] {1689} INFO - at 20.3s,\tbest xgboost's error=0.3617,\tbest lgbm's error=0.3475\n",
+ "[flaml.automl: 08-31 00:53:53] {1532} INFO - iteration 47, current learner catboost\n",
+ "[flaml.automl: 08-31 00:53:55] {1689} INFO - at 22.6s,\tbest catboost's error=0.3469,\tbest catboost's error=0.3469\n",
+ "[flaml.automl: 08-31 00:53:55] {1532} INFO - iteration 48, current learner xgboost\n",
+ "[flaml.automl: 08-31 00:53:55] {1689} INFO - at 22.8s,\tbest xgboost's error=0.3617,\tbest catboost's error=0.3469\n",
+ "[flaml.automl: 08-31 00:53:55] {1532} INFO - iteration 49, current learner lgbm\n",
+ "[flaml.automl: 08-31 00:54:00] {1689} INFO - at 27.4s,\tbest lgbm's error=0.3455,\tbest lgbm's error=0.3455\n",
+ "[flaml.automl: 08-31 00:54:00] {1532} INFO - iteration 50, current learner catboost\n",
+ "[flaml.automl: 08-31 00:54:01] {1689} INFO - at 29.0s,\tbest catboost's error=0.3469,\tbest lgbm's error=0.3455\n",
+ "[flaml.automl: 08-31 00:54:01] {1532} INFO - iteration 51, current learner xgboost\n",
+ "[flaml.automl: 08-31 00:54:02] {1689} INFO - at 29.2s,\tbest xgboost's error=0.3617,\tbest lgbm's error=0.3455\n",
+ "[flaml.automl: 08-31 00:54:02] {1532} INFO - iteration 52, current learner catboost\n",
+ "[flaml.automl: 08-31 00:54:03] {1689} INFO - at 30.3s,\tbest catboost's error=0.3469,\tbest lgbm's error=0.3455\n",
+ "[flaml.automl: 08-31 00:54:03] {1532} INFO - iteration 53, current learner rf\n",
+ "[flaml.automl: 08-31 00:54:03] {1689} INFO - at 30.7s,\tbest rf's error=0.3621,\tbest lgbm's error=0.3455\n",
+ "[flaml.automl: 08-31 00:54:03] {1532} INFO - iteration 54, current learner lgbm\n",
+ "[flaml.automl: 08-31 00:54:10] {1689} INFO - at 37.2s,\tbest lgbm's error=0.3444,\tbest lgbm's error=0.3444\n",
+ "[flaml.automl: 08-31 00:54:10] {1532} INFO - iteration 55, current learner lgbm\n",
+ "[flaml.automl: 08-31 00:54:14] {1689} INFO - at 41.7s,\tbest lgbm's error=0.3444,\tbest lgbm's error=0.3444\n",
+ "[flaml.automl: 08-31 00:54:14] {1532} INFO - iteration 56, current learner xgboost\n",
+ "[flaml.automl: 08-31 00:54:14] {1689} INFO - at 41.9s,\tbest xgboost's error=0.3591,\tbest lgbm's error=0.3444\n",
+ "[flaml.automl: 08-31 00:54:14] {1532} INFO - iteration 57, current learner lgbm\n",
+ "[flaml.automl: 08-31 00:54:22] {1689} INFO - at 49.3s,\tbest lgbm's error=0.3444,\tbest lgbm's error=0.3444\n",
+ "[flaml.automl: 08-31 00:54:22] {1532} INFO - iteration 58, current learner rf\n",
+ "[flaml.automl: 08-31 00:54:22] {1689} INFO - at 49.8s,\tbest rf's error=0.3567,\tbest lgbm's error=0.3444\n",
+ "[flaml.automl: 08-31 00:54:22] {1532} INFO - iteration 59, current learner rf\n",
+ "[flaml.automl: 08-31 00:54:23] {1689} INFO - at 50.2s,\tbest rf's error=0.3567,\tbest lgbm's error=0.3444\n",
+ "[flaml.automl: 08-31 00:54:23] {1532} INFO - iteration 60, current learner lgbm\n",
+ "[flaml.automl: 08-31 00:54:28] {1689} INFO - at 55.4s,\tbest lgbm's error=0.3356,\tbest lgbm's error=0.3356\n",
+ "[flaml.automl: 08-31 00:54:28] {1532} INFO - iteration 61, current learner catboost\n",
+ "[flaml.automl: 08-31 00:54:32] {1689} INFO - at 59.4s,\tbest catboost's error=0.3469,\tbest lgbm's error=0.3356\n",
+ "[flaml.automl: 08-31 00:54:32] {1532} INFO - iteration 62, current learner lgbm\n",
+ "[flaml.automl: 08-31 00:54:37] {1689} INFO - at 64.7s,\tbest lgbm's error=0.3300,\tbest lgbm's error=0.3300\n",
+ "[flaml.automl: 08-31 00:54:37] {1532} INFO - iteration 63, current learner rf\n",
+ "[flaml.automl: 08-31 00:54:38] {1689} INFO - at 65.4s,\tbest rf's error=0.3565,\tbest lgbm's error=0.3300\n",
+ "[flaml.automl: 08-31 00:54:38] {1532} INFO - iteration 64, current learner xgboost\n",
+ "[flaml.automl: 08-31 00:54:38] {1689} INFO - at 65.6s,\tbest xgboost's error=0.3591,\tbest lgbm's error=0.3300\n",
+ "[flaml.automl: 08-31 00:54:38] {1532} INFO - iteration 65, current learner lgbm\n",
+ "[flaml.automl: 08-31 00:54:43] {1689} INFO - at 70.4s,\tbest lgbm's error=0.3300,\tbest lgbm's error=0.3300\n",
+ "[flaml.automl: 08-31 00:54:43] {1532} INFO - iteration 66, current learner lgbm\n",
+ "[flaml.automl: 08-31 00:54:54] {1689} INFO - at 81.3s,\tbest lgbm's error=0.3300,\tbest lgbm's error=0.3300\n",
+ "[flaml.automl: 08-31 00:54:54] {1532} INFO - iteration 67, current learner xgboost\n",
+ "[flaml.automl: 08-31 00:54:54] {1689} INFO - at 81.5s,\tbest xgboost's error=0.3591,\tbest lgbm's error=0.3300\n",
+ "[flaml.automl: 08-31 00:54:54] {1532} INFO - iteration 68, current learner lgbm\n",
+ "[flaml.automl: 08-31 00:54:57] {1689} INFO - at 84.9s,\tbest lgbm's error=0.3300,\tbest lgbm's error=0.3300\n",
+ "[flaml.automl: 08-31 00:54:57] {1532} INFO - iteration 69, current learner lgbm\n",
+ "[flaml.automl: 08-31 00:55:01] {1689} INFO - at 88.3s,\tbest lgbm's error=0.3300,\tbest lgbm's error=0.3300\n",
+ "[flaml.automl: 08-31 00:55:01] {1532} INFO - iteration 70, current learner xgboost\n",
+ "[flaml.automl: 08-31 00:55:01] {1689} INFO - at 88.5s,\tbest xgboost's error=0.3591,\tbest lgbm's error=0.3300\n",
+ "[flaml.automl: 08-31 00:55:01] {1532} INFO - iteration 71, current learner xgboost\n",
+ "[flaml.automl: 08-31 00:55:01] {1689} INFO - at 88.6s,\tbest xgboost's error=0.3591,\tbest lgbm's error=0.3300\n",
+ "[flaml.automl: 08-31 00:55:01] {1532} INFO - iteration 72, current learner catboost\n",
+ "[flaml.automl: 08-31 00:55:04] {1689} INFO - at 91.8s,\tbest catboost's error=0.3469,\tbest lgbm's error=0.3300\n",
+ "[flaml.automl: 08-31 00:55:04] {1532} INFO - iteration 73, current learner extra_tree\n",
+ "[flaml.automl: 08-31 00:55:05] {1689} INFO - at 92.1s,\tbest extra_tree's error=0.3755,\tbest lgbm's error=0.3300\n",
+ "[flaml.automl: 08-31 00:55:05] {1532} INFO - iteration 74, current learner xgboost\n",
+ "[flaml.automl: 08-31 00:55:05] {1689} INFO - at 92.3s,\tbest xgboost's error=0.3591,\tbest lgbm's error=0.3300\n",
+ "[flaml.automl: 08-31 00:55:05] {1532} INFO - iteration 75, current learner extra_tree\n",
+ "[flaml.automl: 08-31 00:55:05] {1689} INFO - at 92.5s,\tbest extra_tree's error=0.3644,\tbest lgbm's error=0.3300\n",
+ "[flaml.automl: 08-31 00:55:05] {1532} INFO - iteration 76, current learner xgboost\n",
+ "[flaml.automl: 08-31 00:55:05] {1689} INFO - at 92.9s,\tbest xgboost's error=0.3574,\tbest lgbm's error=0.3300\n",
+ "[flaml.automl: 08-31 00:55:05] {1532} INFO - iteration 77, current learner xgboost\n",
+ "[flaml.automl: 08-31 00:55:06] {1689} INFO - at 93.3s,\tbest xgboost's error=0.3574,\tbest lgbm's error=0.3300\n",
+ "[flaml.automl: 08-31 00:55:06] {1532} INFO - iteration 78, current learner extra_tree\n",
+ "[flaml.automl: 08-31 00:55:06] {1689} INFO - at 93.5s,\tbest extra_tree's error=0.3644,\tbest lgbm's error=0.3300\n",
+ "[flaml.automl: 08-31 00:55:06] {1532} INFO - iteration 79, current learner extra_tree\n",
+ "[flaml.automl: 08-31 00:55:06] {1689} INFO - at 93.7s,\tbest extra_tree's error=0.3644,\tbest lgbm's error=0.3300\n",
+ "[flaml.automl: 08-31 00:55:06] {1532} INFO - iteration 80, current learner rf\n",
+ "[flaml.automl: 08-31 00:55:07] {1689} INFO - at 94.3s,\tbest rf's error=0.3565,\tbest lgbm's error=0.3300\n",
+ "[flaml.automl: 08-31 00:55:07] {1532} INFO - iteration 81, current learner extra_tree\n",
+ "[flaml.automl: 08-31 00:55:07] {1689} INFO - at 94.5s,\tbest extra_tree's error=0.3644,\tbest lgbm's error=0.3300\n",
+ "[flaml.automl: 08-31 00:55:07] {1532} INFO - iteration 82, current learner extra_tree\n",
+ "[flaml.automl: 08-31 00:55:07] {1689} INFO - at 94.7s,\tbest extra_tree's error=0.3644,\tbest lgbm's error=0.3300\n",
+ "[flaml.automl: 08-31 00:55:07] {1532} INFO - iteration 83, current learner extra_tree\n",
+ "[flaml.automl: 08-31 00:55:07] {1689} INFO - at 94.9s,\tbest extra_tree's error=0.3644,\tbest lgbm's error=0.3300\n",
+ "[flaml.automl: 08-31 00:55:07] {1532} INFO - iteration 84, current learner extra_tree\n",
+ "[flaml.automl: 08-31 00:55:08] {1689} INFO - at 95.2s,\tbest extra_tree's error=0.3644,\tbest lgbm's error=0.3300\n",
+ "[flaml.automl: 08-31 00:55:08] {1532} INFO - iteration 85, current learner extra_tree\n",
+ "[flaml.automl: 08-31 00:55:08] {1689} INFO - at 95.5s,\tbest extra_tree's error=0.3640,\tbest lgbm's error=0.3300\n",
+ "[flaml.automl: 08-31 00:55:08] {1532} INFO - iteration 86, current learner rf\n",
+ "[flaml.automl: 08-31 00:55:09] {1689} INFO - at 96.5s,\tbest rf's error=0.3565,\tbest lgbm's error=0.3300\n",
+ "[flaml.automl: 08-31 00:55:09] {1532} INFO - iteration 87, current learner xgboost\n",
+ "[flaml.automl: 08-31 00:55:09] {1689} INFO - at 96.9s,\tbest xgboost's error=0.3534,\tbest lgbm's error=0.3300\n",
+ "[flaml.automl: 08-31 00:55:09] {1532} INFO - iteration 88, current learner xgboost\n",
+ "[flaml.automl: 08-31 00:55:10] {1689} INFO - at 97.2s,\tbest xgboost's error=0.3534,\tbest lgbm's error=0.3300\n",
+ "[flaml.automl: 08-31 00:55:10] {1532} INFO - iteration 89, current learner lgbm\n",
+ "[flaml.automl: 08-31 00:55:19] {1689} INFO - at 106.4s,\tbest lgbm's error=0.3300,\tbest lgbm's error=0.3300\n",
+ "[flaml.automl: 08-31 00:55:19] {1532} INFO - iteration 90, current learner xgboost\n",
+ "[flaml.automl: 08-31 00:55:20] {1689} INFO - at 107.3s,\tbest xgboost's error=0.3504,\tbest lgbm's error=0.3300\n",
+ "[flaml.automl: 08-31 00:55:20] {1532} INFO - iteration 91, current learner xgboost\n",
+ "[flaml.automl: 08-31 00:55:20] {1689} INFO - at 107.8s,\tbest xgboost's error=0.3504,\tbest lgbm's error=0.3300\n",
+ "[flaml.automl: 08-31 00:55:20] {1532} INFO - iteration 92, current learner extra_tree\n",
+ "[flaml.automl: 08-31 00:55:20] {1689} INFO - at 108.0s,\tbest extra_tree's error=0.3624,\tbest lgbm's error=0.3300\n",
+ "[flaml.automl: 08-31 00:55:20] {1532} INFO - iteration 93, current learner extra_tree\n",
+ "[flaml.automl: 08-31 00:55:21] {1689} INFO - at 108.3s,\tbest extra_tree's error=0.3624,\tbest lgbm's error=0.3300\n",
+ "[flaml.automl: 08-31 00:55:21] {1532} INFO - iteration 94, current learner xgboost\n",
+ "[flaml.automl: 08-31 00:55:24] {1689} INFO - at 111.2s,\tbest xgboost's error=0.3504,\tbest lgbm's error=0.3300\n",
+ "[flaml.automl: 08-31 00:55:24] {1532} INFO - iteration 95, current learner lgbm\n",
+ "[flaml.automl: 08-31 00:55:27] {1689} INFO - at 114.6s,\tbest lgbm's error=0.3300,\tbest lgbm's error=0.3300\n",
+ "[flaml.automl: 08-31 00:55:27] {1532} INFO - iteration 96, current learner extra_tree\n",
+ "[flaml.automl: 08-31 00:55:27] {1689} INFO - at 114.8s,\tbest extra_tree's error=0.3598,\tbest lgbm's error=0.3300\n",
+ "[flaml.automl: 08-31 00:55:27] {1532} INFO - iteration 97, current learner extra_tree\n",
+ "[flaml.automl: 08-31 00:55:28] {1689} INFO - at 115.2s,\tbest extra_tree's error=0.3598,\tbest lgbm's error=0.3300\n",
+ "[flaml.automl: 08-31 00:55:28] {1532} INFO - iteration 98, current learner extra_tree\n",
+ "[flaml.automl: 08-31 00:55:28] {1689} INFO - at 115.4s,\tbest extra_tree's error=0.3597,\tbest lgbm's error=0.3300\n",
+ "[flaml.automl: 08-31 00:55:28] {1532} INFO - iteration 99, current learner lrl1\n",
"No low-cost partial config given to the search algorithm. For cost-frugal search, consider providing low-cost values for cost-related hps via 'low_cost_partial_config'.\n",
"/home/dmx/miniconda2/envs/blend/lib/python3.8/site-packages/sklearn/linear_model/_sag.py:328: ConvergenceWarning: The max_iter was reached which means the coef_ did not converge\n",
" warnings.warn(\"The max_iter was reached which means \"\n",
- "[flaml.automl: 08-22 21:03:36] {1515} INFO - at 299.9s,\tbest lrl1's error=0.4339,\tbest lgbm's error=0.3268\n",
- "[flaml.automl: 08-22 21:03:36] {1592} INFO - selected model: LGBMClassifier(colsample_bytree=0.5874727619500845,\n",
- " learning_rate=0.046670380654293554, max_bin=512,\n",
- " min_child_samples=8, n_estimators=665, num_leaves=227,\n",
- " objective='binary', reg_alpha=0.001975258376030875,\n",
- " reg_lambda=0.006468020364053276, verbose=-1)\n",
- "[flaml.automl: 08-22 21:03:55] {1633} INFO - retrain lgbm for 18.9s\n",
- "[flaml.automl: 08-22 21:03:55] {1636} INFO - retrained model: LGBMClassifier(colsample_bytree=0.5874727619500845,\n",
- " learning_rate=0.046670380654293554, max_bin=512,\n",
- " min_child_samples=8, n_estimators=683, num_leaves=227,\n",
- " objective='binary', reg_alpha=0.001975258376030875,\n",
- " reg_lambda=0.006468020364053276, verbose=-1)\n",
- "[flaml.automl: 08-22 21:03:55] {1199} INFO - fit succeeded\n",
- "[flaml.automl: 08-22 21:03:55] {1200} INFO - Time taken to find the best model: 298.465936422348\n",
- "[flaml.automl: 08-22 21:03:55] {1205} WARNING - Time taken to find the best model is 99% of the provided time budget and not all estimators' hyperparameter search converged. Consider increasing the time budget.\n"
+ "[flaml.automl: 08-31 00:55:28] {1689} INFO - at 115.8s,\tbest lrl1's error=0.4338,\tbest lgbm's error=0.3300\n",
+ "[flaml.automl: 08-31 00:55:28] {1532} INFO - iteration 100, current learner lrl1\n",
+ "/home/dmx/miniconda2/envs/blend/lib/python3.8/site-packages/sklearn/linear_model/_sag.py:328: ConvergenceWarning: The max_iter was reached which means the coef_ did not converge\n",
+ " warnings.warn(\"The max_iter was reached which means \"\n",
+ "[flaml.automl: 08-31 00:55:29] {1689} INFO - at 116.1s,\tbest lrl1's error=0.4338,\tbest lgbm's error=0.3300\n",
+ "[flaml.automl: 08-31 00:55:29] {1532} INFO - iteration 101, current learner lrl1\n",
+ "/home/dmx/miniconda2/envs/blend/lib/python3.8/site-packages/sklearn/linear_model/_sag.py:328: ConvergenceWarning: The max_iter was reached which means the coef_ did not converge\n",
+ " warnings.warn(\"The max_iter was reached which means \"\n",
+ "[flaml.automl: 08-31 00:55:29] {1689} INFO - at 116.4s,\tbest lrl1's error=0.4338,\tbest lgbm's error=0.3300\n",
+ "[flaml.automl: 08-31 00:55:29] {1532} INFO - iteration 102, current learner lrl1\n",
+ "/home/dmx/miniconda2/envs/blend/lib/python3.8/site-packages/sklearn/linear_model/_sag.py:328: ConvergenceWarning: The max_iter was reached which means the coef_ did not converge\n",
+ " warnings.warn(\"The max_iter was reached which means \"\n",
+ "[flaml.automl: 08-31 00:55:30] {1689} INFO - at 117.3s,\tbest lrl1's error=0.4334,\tbest lgbm's error=0.3300\n",
+ "[flaml.automl: 08-31 00:55:30] {1532} INFO - iteration 103, current learner catboost\n",
+ "[flaml.automl: 08-31 00:55:42] {1689} INFO - at 130.0s,\tbest catboost's error=0.3385,\tbest lgbm's error=0.3300\n",
+ "[flaml.automl: 08-31 00:55:42] {1532} INFO - iteration 104, current learner lgbm\n",
+ "[flaml.automl: 08-31 00:55:52] {1689} INFO - at 139.2s,\tbest lgbm's error=0.3300,\tbest lgbm's error=0.3300\n",
+ "[flaml.automl: 08-31 00:55:52] {1532} INFO - iteration 105, current learner catboost\n",
+ "[flaml.automl: 08-31 00:56:44] {1689} INFO - at 191.8s,\tbest catboost's error=0.3385,\tbest lgbm's error=0.3300\n",
+ "[flaml.automl: 08-31 00:56:44] {1532} INFO - iteration 106, current learner lgbm\n",
+ "[flaml.automl: 08-31 00:56:49] {1689} INFO - at 196.9s,\tbest lgbm's error=0.3300,\tbest lgbm's error=0.3300\n",
+ "[flaml.automl: 08-31 00:56:49] {1532} INFO - iteration 107, current learner catboost\n",
+ "[flaml.automl: 08-31 00:56:56] {1689} INFO - at 203.1s,\tbest catboost's error=0.3378,\tbest lgbm's error=0.3300\n",
+ "[flaml.automl: 08-31 00:56:56] {1532} INFO - iteration 108, current learner xgboost\n",
+ "[flaml.automl: 08-31 00:56:56] {1689} INFO - at 203.8s,\tbest xgboost's error=0.3504,\tbest lgbm's error=0.3300\n",
+ "[flaml.automl: 08-31 00:56:56] {1532} INFO - iteration 109, current learner lgbm\n",
+ "[flaml.automl: 08-31 00:57:02] {1689} INFO - at 209.3s,\tbest lgbm's error=0.3300,\tbest lgbm's error=0.3300\n",
+ "[flaml.automl: 08-31 00:57:02] {1532} INFO - iteration 110, current learner extra_tree\n",
+ "[flaml.automl: 08-31 00:57:02] {1689} INFO - at 209.8s,\tbest extra_tree's error=0.3580,\tbest lgbm's error=0.3300\n",
+ "[flaml.automl: 08-31 00:57:02] {1532} INFO - iteration 111, current learner extra_tree\n",
+ "[flaml.automl: 08-31 00:57:03] {1689} INFO - at 210.2s,\tbest extra_tree's error=0.3555,\tbest lgbm's error=0.3300\n",
+ "[flaml.automl: 08-31 00:57:03] {1532} INFO - iteration 112, current learner lgbm\n",
+ "[flaml.automl: 08-31 00:57:21] {1689} INFO - at 228.3s,\tbest lgbm's error=0.3300,\tbest lgbm's error=0.3300\n",
+ "[flaml.automl: 08-31 00:57:21] {1532} INFO - iteration 113, current learner extra_tree\n",
+ "[flaml.automl: 08-31 00:57:21] {1689} INFO - at 228.6s,\tbest extra_tree's error=0.3555,\tbest lgbm's error=0.3300\n",
+ "[flaml.automl: 08-31 00:57:21] {1532} INFO - iteration 114, current learner extra_tree\n",
+ "[flaml.automl: 08-31 00:57:21] {1689} INFO - at 229.0s,\tbest extra_tree's error=0.3555,\tbest lgbm's error=0.3300\n",
+ "[flaml.automl: 08-31 00:57:21] {1532} INFO - iteration 115, current learner lrl1\n",
+ "/home/dmx/miniconda2/envs/blend/lib/python3.8/site-packages/sklearn/linear_model/_sag.py:328: ConvergenceWarning: The max_iter was reached which means the coef_ did not converge\n",
+ " warnings.warn(\"The max_iter was reached which means \"\n",
+ "[flaml.automl: 08-31 00:57:22] {1689} INFO - at 229.9s,\tbest lrl1's error=0.4334,\tbest lgbm's error=0.3300\n",
+ "[flaml.automl: 08-31 00:57:22] {1532} INFO - iteration 116, current learner lgbm\n",
+ "[flaml.automl: 08-31 00:57:25] {1689} INFO - at 232.4s,\tbest lgbm's error=0.3300,\tbest lgbm's error=0.3300\n",
+ "[flaml.automl: 08-31 00:57:25] {1532} INFO - iteration 117, current learner lgbm\n",
+ "[flaml.automl: 08-31 00:57:34] {1689} INFO - at 241.7s,\tbest lgbm's error=0.3300,\tbest lgbm's error=0.3300\n",
+ "[flaml.automl: 08-31 00:57:34] {1766} INFO - selected model: LGBMClassifier(colsample_bytree=0.3841266992710469,\n",
+ " learning_rate=0.04886499949999022, max_bin=512,\n",
+ " min_child_samples=4, n_estimators=220, num_leaves=270,\n",
+ " objective='binary', reg_alpha=0.0009765625,\n",
+ " reg_lambda=0.07539015928723636, verbose=-1)\n",
+ "[flaml.automl: 08-31 00:57:43] {1814} INFO - retrain lgbm for 9.1s\n",
+ "[flaml.automl: 08-31 00:57:43] {1817} INFO - retrained model: LGBMClassifier(colsample_bytree=0.3841266992710469,\n",
+ " learning_rate=0.04886499949999022, max_bin=512,\n",
+ " min_child_samples=4, n_estimators=220, num_leaves=270,\n",
+ " objective='binary', reg_alpha=0.0009765625,\n",
+ " reg_lambda=0.07539015928723636, verbose=-1)\n",
+ "[flaml.automl: 08-31 00:57:43] {1364} INFO - fit succeeded\n",
+ "[flaml.automl: 08-31 00:57:43] {1365} INFO - Time taken to find the best model: 241.71747207641602\n",
+ "[flaml.automl: 08-31 00:57:43] {1370} WARNING - Time taken to find the best model is 101% of the provided time budget and not all estimators' hyperparameter search converged. Consider increasing the time budget.\n"
]
}
],
@@ -464,9 +444,9 @@
"name": "stdout",
"text": [
"Best ML leaner: lgbm\n",
- "Best hyperparmeter config: {'n_estimators': 683, 'num_leaves': 227, 'min_child_samples': 8, 'learning_rate': 0.046670380654293554, 'log_max_bin': 10, 'colsample_bytree': 0.5874727619500845, 'reg_alpha': 0.001975258376030875, 'reg_lambda': 0.006468020364053276, 'FLAML_sample_size': 364083}\n",
- "Best accuracy on validation data: 0.6732\n",
- "Training duration of best run: 18.12 s\n"
+ "Best hyperparmeter config: {'n_estimators': 220, 'num_leaves': 270, 'min_child_samples': 4, 'learning_rate': 0.04886499949999022, 'log_max_bin': 10, 'colsample_bytree': 0.3841266992710469, 'reg_alpha': 0.0009765625, 'reg_lambda': 0.07539015928723636, 'FLAML_sample_size': 364083}\n",
+ "Best accuracy on validation data: 0.67\n",
+ "Training duration of best run: 9.323 s\n"
]
}
],
@@ -488,11 +468,11 @@
"output_type": "execute_result",
"data": {
"text/plain": [
- "LGBMClassifier(colsample_bytree=0.5874727619500845,\n",
- " learning_rate=0.046670380654293554, max_bin=512,\n",
- " min_child_samples=8, n_estimators=683, num_leaves=227,\n",
- " objective='binary', reg_alpha=0.001975258376030875,\n",
- " reg_lambda=0.006468020364053276, verbose=-1)"
+ "LGBMClassifier(colsample_bytree=0.3841266992710469,\n",
+ " learning_rate=0.04886499949999022, max_bin=512,\n",
+ " min_child_samples=4, n_estimators=220, num_leaves=270,\n",
+ " objective='binary', reg_alpha=0.0009765625,\n",
+ " reg_lambda=0.07539015928723636, verbose=-1)"
]
},
"metadata": {},
@@ -575,9 +555,9 @@
"output_type": "stream",
"name": "stdout",
"text": [
- "accuracy = 0.6741542203699035\n",
- "roc_auc = 0.729539654237154\n",
- "log_loss = 0.600001589965153\n"
+ "accuracy = 0.6729231864497278\n",
+ "roc_auc = 0.7261961112785199\n",
+ "log_loss = 0.6033707263741326\n"
]
}
],
@@ -606,8 +586,8 @@
"execution_count": 10,
"source": [
"from flaml.data import get_output_from_log\n",
- "time_history, best_valid_loss_history, valid_loss_history, config_history, train_loss_history = \\\n",
- " get_output_from_log(filename=settings['log_file_name'], time_budget=300)\n",
+ "time_history, best_valid_loss_history, valid_loss_history, config_history, metric_history = \\\n",
+ " get_output_from_log(filename=settings['log_file_name'], time_budget=240)\n",
"for config in config_history:\n",
" print(config)"
],
@@ -621,17 +601,14 @@
"{'Current Learner': 'lgbm', 'Current Sample': 10000, 'Current Hyper-parameters': {'n_estimators': 14, 'num_leaves': 5, 'min_child_samples': 9, 'learning_rate': 0.2835381908967212, 'log_max_bin': 9, 'colsample_bytree': 0.8304072431299575, 'reg_alpha': 0.0014132988481787994, 'reg_lambda': 0.033183495034912504, 'FLAML_sample_size': 10000}, 'Best Learner': 'lgbm', 'Best Hyper-parameters': {'n_estimators': 14, 'num_leaves': 5, 'min_child_samples': 9, 'learning_rate': 0.2835381908967212, 'log_max_bin': 9, 'colsample_bytree': 0.8304072431299575, 'reg_alpha': 0.0014132988481787994, 'reg_lambda': 0.033183495034912504, 'FLAML_sample_size': 10000}}\n",
"{'Current Learner': 'lgbm', 'Current Sample': 10000, 'Current Hyper-parameters': {'n_estimators': 53, 'num_leaves': 4, 'min_child_samples': 7, 'learning_rate': 0.15662398373030859, 'log_max_bin': 10, 'colsample_bytree': 0.7610534336273627, 'reg_alpha': 0.0009765625, 'reg_lambda': 0.0064258982194552745, 'FLAML_sample_size': 10000}, 'Best Learner': 'lgbm', 'Best Hyper-parameters': {'n_estimators': 53, 'num_leaves': 4, 'min_child_samples': 7, 'learning_rate': 0.15662398373030859, 'log_max_bin': 10, 'colsample_bytree': 0.7610534336273627, 'reg_alpha': 0.0009765625, 'reg_lambda': 0.0064258982194552745, 'FLAML_sample_size': 10000}}\n",
"{'Current Learner': 'lgbm', 'Current Sample': 40000, 'Current Hyper-parameters': {'n_estimators': 53, 'num_leaves': 4, 'min_child_samples': 7, 'learning_rate': 0.15662398373030859, 'log_max_bin': 10, 'colsample_bytree': 0.7610534336273627, 'reg_alpha': 0.0009765625, 'reg_lambda': 0.0064258982194552745, 'FLAML_sample_size': 40000}, 'Best Learner': 'lgbm', 'Best Hyper-parameters': {'n_estimators': 53, 'num_leaves': 4, 'min_child_samples': 7, 'learning_rate': 0.15662398373030859, 'log_max_bin': 10, 'colsample_bytree': 0.7610534336273627, 'reg_alpha': 0.0009765625, 'reg_lambda': 0.0064258982194552745, 'FLAML_sample_size': 40000}}\n",
- "{'Current Learner': 'lgbm', 'Current Sample': 40000, 'Current Hyper-parameters': {'n_estimators': 72, 'num_leaves': 5, 'min_child_samples': 6, 'learning_rate': 0.6822817724617938, 'log_max_bin': 10, 'colsample_bytree': 0.6975165606652173, 'reg_alpha': 0.0009765625, 'reg_lambda': 0.0012212021562021567, 'FLAML_sample_size': 40000}, 'Best Learner': 'lgbm', 'Best Hyper-parameters': {'n_estimators': 72, 'num_leaves': 5, 'min_child_samples': 6, 'learning_rate': 0.6822817724617938, 'log_max_bin': 10, 'colsample_bytree': 0.6975165606652173, 'reg_alpha': 0.0009765625, 'reg_lambda': 0.0012212021562021567, 'FLAML_sample_size': 40000}}\n",
- "{'Current Learner': 'lgbm', 'Current Sample': 364083, 'Current Hyper-parameters': {'n_estimators': 72, 'num_leaves': 5, 'min_child_samples': 6, 'learning_rate': 0.6822817724617938, 'log_max_bin': 10, 'colsample_bytree': 0.6975165606652173, 'reg_alpha': 0.0009765625, 'reg_lambda': 0.0012212021562021567, 'FLAML_sample_size': 364083}, 'Best Learner': 'lgbm', 'Best Hyper-parameters': {'n_estimators': 72, 'num_leaves': 5, 'min_child_samples': 6, 'learning_rate': 0.6822817724617938, 'log_max_bin': 10, 'colsample_bytree': 0.6975165606652173, 'reg_alpha': 0.0009765625, 'reg_lambda': 0.0012212021562021567, 'FLAML_sample_size': 364083}}\n",
- "{'Current Learner': 'lgbm', 'Current Sample': 364083, 'Current Hyper-parameters': {'n_estimators': 41, 'num_leaves': 21, 'min_child_samples': 4, 'learning_rate': 0.6001063475389127, 'log_max_bin': 10, 'colsample_bytree': 0.7789325923328158, 'reg_alpha': 0.0009765625, 'reg_lambda': 0.0022935398380276623, 'FLAML_sample_size': 364083}, 'Best Learner': 'lgbm', 'Best Hyper-parameters': {'n_estimators': 41, 'num_leaves': 21, 'min_child_samples': 4, 'learning_rate': 0.6001063475389127, 'log_max_bin': 10, 'colsample_bytree': 0.7789325923328158, 'reg_alpha': 0.0009765625, 'reg_lambda': 0.0022935398380276623, 'FLAML_sample_size': 364083}}\n",
- "{'Current Learner': 'lgbm', 'Current Sample': 364083, 'Current Hyper-parameters': {'n_estimators': 86, 'num_leaves': 47, 'min_child_samples': 4, 'learning_rate': 0.19470316589735667, 'log_max_bin': 9, 'colsample_bytree': 0.631882070615302, 'reg_alpha': 0.0009765625, 'reg_lambda': 0.0035266222848593562, 'FLAML_sample_size': 364083}, 'Best Learner': 'lgbm', 'Best Hyper-parameters': {'n_estimators': 86, 'num_leaves': 47, 'min_child_samples': 4, 'learning_rate': 0.19470316589735667, 'log_max_bin': 9, 'colsample_bytree': 0.631882070615302, 'reg_alpha': 0.0009765625, 'reg_lambda': 0.0035266222848593562, 'FLAML_sample_size': 364083}}\n",
- "{'Current Learner': 'lgbm', 'Current Sample': 364083, 'Current Hyper-parameters': {'n_estimators': 172, 'num_leaves': 22, 'min_child_samples': 2, 'learning_rate': 0.24053152671715367, 'log_max_bin': 10, 'colsample_bytree': 0.6820700830442894, 'reg_alpha': 0.004577823970660193, 'reg_lambda': 0.007561964401113763, 'FLAML_sample_size': 364083}, 'Best Learner': 'lgbm', 'Best Hyper-parameters': {'n_estimators': 172, 'num_leaves': 22, 'min_child_samples': 2, 'learning_rate': 0.24053152671715367, 'log_max_bin': 10, 'colsample_bytree': 0.6820700830442894, 'reg_alpha': 0.004577823970660193, 'reg_lambda': 0.007561964401113763, 'FLAML_sample_size': 364083}}\n",
- "{'Current Learner': 'lgbm', 'Current Sample': 364083, 'Current Hyper-parameters': {'n_estimators': 122, 'num_leaves': 63, 'min_child_samples': 2, 'learning_rate': 0.5931378900500869, 'log_max_bin': 10, 'colsample_bytree': 0.47445295252109176, 'reg_alpha': 0.0033202544897837413, 'reg_lambda': 0.004252702807634206, 'FLAML_sample_size': 364083}, 'Best Learner': 'lgbm', 'Best Hyper-parameters': {'n_estimators': 122, 'num_leaves': 63, 'min_child_samples': 2, 'learning_rate': 0.5931378900500869, 'log_max_bin': 10, 'colsample_bytree': 0.47445295252109176, 'reg_alpha': 0.0033202544897837413, 'reg_lambda': 0.004252702807634206, 'FLAML_sample_size': 364083}}\n",
- "{'Current Learner': 'lgbm', 'Current Sample': 364083, 'Current Hyper-parameters': {'n_estimators': 77, 'num_leaves': 362, 'min_child_samples': 2, 'learning_rate': 0.3674198928731587, 'log_max_bin': 10, 'colsample_bytree': 0.419059595944657, 'reg_alpha': 0.0014611649438296117, 'reg_lambda': 0.007191830853534194, 'FLAML_sample_size': 364083}, 'Best Learner': 'lgbm', 'Best Hyper-parameters': {'n_estimators': 77, 'num_leaves': 362, 'min_child_samples': 2, 'learning_rate': 0.3674198928731587, 'log_max_bin': 10, 'colsample_bytree': 0.419059595944657, 'reg_alpha': 0.0014611649438296117, 'reg_lambda': 0.007191830853534194, 'FLAML_sample_size': 364083}}\n",
- "{'Current Learner': 'lgbm', 'Current Sample': 364083, 'Current Hyper-parameters': {'n_estimators': 123, 'num_leaves': 63, 'min_child_samples': 4, 'learning_rate': 0.5931378900500864, 'log_max_bin': 9, 'colsample_bytree': 0.47445295252109176, 'reg_alpha': 0.0033202544897837413, 'reg_lambda': 0.004252702807634205, 'FLAML_sample_size': 364083}, 'Best Learner': 'lgbm', 'Best Hyper-parameters': {'n_estimators': 123, 'num_leaves': 63, 'min_child_samples': 4, 'learning_rate': 0.5931378900500864, 'log_max_bin': 9, 'colsample_bytree': 0.47445295252109176, 'reg_alpha': 0.0033202544897837413, 'reg_lambda': 0.004252702807634205, 'FLAML_sample_size': 364083}}\n",
- "{'Current Learner': 'lgbm', 'Current Sample': 364083, 'Current Hyper-parameters': {'n_estimators': 68, 'num_leaves': 194, 'min_child_samples': 3, 'learning_rate': 0.2431279112969044, 'log_max_bin': 8, 'colsample_bytree': 0.5862836266928158, 'reg_alpha': 0.008410564196066936, 'reg_lambda': 0.0024014793155735497, 'FLAML_sample_size': 364083}, 'Best Learner': 'lgbm', 'Best Hyper-parameters': {'n_estimators': 68, 'num_leaves': 194, 'min_child_samples': 3, 'learning_rate': 0.2431279112969044, 'log_max_bin': 8, 'colsample_bytree': 0.5862836266928158, 'reg_alpha': 0.008410564196066936, 'reg_lambda': 0.0024014793155735497, 'FLAML_sample_size': 364083}}\n",
- "{'Current Learner': 'lgbm', 'Current Sample': 364083, 'Current Hyper-parameters': {'n_estimators': 150, 'num_leaves': 169, 'min_child_samples': 6, 'learning_rate': 0.12389107062093162, 'log_max_bin': 9, 'colsample_bytree': 0.569229888724659, 'reg_alpha': 0.0009765625, 'reg_lambda': 0.008985174012040886, 'FLAML_sample_size': 364083}, 'Best Learner': 'lgbm', 'Best Hyper-parameters': {'n_estimators': 150, 'num_leaves': 169, 'min_child_samples': 6, 'learning_rate': 0.12389107062093162, 'log_max_bin': 9, 'colsample_bytree': 0.569229888724659, 'reg_alpha': 0.0009765625, 'reg_lambda': 0.008985174012040886, 'FLAML_sample_size': 364083}}\n",
- "{'Current Learner': 'lgbm', 'Current Sample': 364083, 'Current Hyper-parameters': {'n_estimators': 683, 'num_leaves': 227, 'min_child_samples': 8, 'learning_rate': 0.046670380654293554, 'log_max_bin': 10, 'colsample_bytree': 0.5874727619500845, 'reg_alpha': 0.001975258376030875, 'reg_lambda': 0.006468020364053276, 'FLAML_sample_size': 364083}, 'Best Learner': 'lgbm', 'Best Hyper-parameters': {'n_estimators': 683, 'num_leaves': 227, 'min_child_samples': 8, 'learning_rate': 0.046670380654293554, 'log_max_bin': 10, 'colsample_bytree': 0.5874727619500845, 'reg_alpha': 0.001975258376030875, 'reg_lambda': 0.006468020364053276, 'FLAML_sample_size': 364083}}\n"
+ "{'Current Learner': 'lgbm', 'Current Sample': 40000, 'Current Hyper-parameters': {'n_estimators': 89, 'num_leaves': 4, 'min_child_samples': 6, 'learning_rate': 0.2915468353191124, 'log_max_bin': 10, 'colsample_bytree': 0.8291836310024803, 'reg_alpha': 0.0009765625, 'reg_lambda': 0.022917008702549507, 'FLAML_sample_size': 40000}, 'Best Learner': 'lgbm', 'Best Hyper-parameters': {'n_estimators': 89, 'num_leaves': 4, 'min_child_samples': 6, 'learning_rate': 0.2915468353191124, 'log_max_bin': 10, 'colsample_bytree': 0.8291836310024803, 'reg_alpha': 0.0009765625, 'reg_lambda': 0.022917008702549507, 'FLAML_sample_size': 40000}}\n",
+ "{'Current Learner': 'lgbm', 'Current Sample': 40000, 'Current Hyper-parameters': {'n_estimators': 53, 'num_leaves': 19, 'min_child_samples': 7, 'learning_rate': 0.15662398373030845, 'log_max_bin': 9, 'colsample_bytree': 0.7610534336273627, 'reg_alpha': 0.006958608037974516, 'reg_lambda': 0.0064258982194552745, 'FLAML_sample_size': 40000}, 'Best Learner': 'lgbm', 'Best Hyper-parameters': {'n_estimators': 53, 'num_leaves': 19, 'min_child_samples': 7, 'learning_rate': 0.15662398373030845, 'log_max_bin': 9, 'colsample_bytree': 0.7610534336273627, 'reg_alpha': 0.006958608037974516, 'reg_lambda': 0.0064258982194552745, 'FLAML_sample_size': 40000}}\n",
+ "{'Current Learner': 'lgbm', 'Current Sample': 364083, 'Current Hyper-parameters': {'n_estimators': 53, 'num_leaves': 19, 'min_child_samples': 7, 'learning_rate': 0.15662398373030845, 'log_max_bin': 9, 'colsample_bytree': 0.7610534336273627, 'reg_alpha': 0.006958608037974516, 'reg_lambda': 0.0064258982194552745, 'FLAML_sample_size': 364083}, 'Best Learner': 'lgbm', 'Best Hyper-parameters': {'n_estimators': 53, 'num_leaves': 19, 'min_child_samples': 7, 'learning_rate': 0.15662398373030845, 'log_max_bin': 9, 'colsample_bytree': 0.7610534336273627, 'reg_alpha': 0.006958608037974516, 'reg_lambda': 0.0064258982194552745, 'FLAML_sample_size': 364083}}\n",
+ "{'Current Learner': 'catboost', 'Current Sample': 40000, 'Current Hyper-parameters': {'early_stopping_rounds': 11, 'learning_rate': 0.0943289179113066, 'FLAML_sample_size': 40000}, 'Best Learner': 'catboost', 'Best Hyper-parameters': {'early_stopping_rounds': 11, 'learning_rate': 0.0943289179113066, 'FLAML_sample_size': 40000}}\n",
+ "{'Current Learner': 'lgbm', 'Current Sample': 364083, 'Current Hyper-parameters': {'n_estimators': 112, 'num_leaves': 42, 'min_child_samples': 6, 'learning_rate': 0.05081630216512539, 'log_max_bin': 8, 'colsample_bytree': 0.6140029119098487, 'reg_alpha': 0.0043659867548350275, 'reg_lambda': 0.00988067243709054, 'FLAML_sample_size': 364083}, 'Best Learner': 'lgbm', 'Best Hyper-parameters': {'n_estimators': 112, 'num_leaves': 42, 'min_child_samples': 6, 'learning_rate': 0.05081630216512539, 'log_max_bin': 8, 'colsample_bytree': 0.6140029119098487, 'reg_alpha': 0.0043659867548350275, 'reg_lambda': 0.00988067243709054, 'FLAML_sample_size': 364083}}\n",
+ "{'Current Learner': 'lgbm', 'Current Sample': 364083, 'Current Hyper-parameters': {'n_estimators': 224, 'num_leaves': 19, 'min_child_samples': 3, 'learning_rate': 0.06277721620788371, 'log_max_bin': 9, 'colsample_bytree': 0.6641909243388362, 'reg_alpha': 0.02046640007359354, 'reg_lambda': 0.021186644668220945, 'FLAML_sample_size': 364083}, 'Best Learner': 'lgbm', 'Best Hyper-parameters': {'n_estimators': 224, 'num_leaves': 19, 'min_child_samples': 3, 'learning_rate': 0.06277721620788371, 'log_max_bin': 9, 'colsample_bytree': 0.6641909243388362, 'reg_alpha': 0.02046640007359354, 'reg_lambda': 0.021186644668220945, 'FLAML_sample_size': 364083}}\n",
+ "{'Current Learner': 'lgbm', 'Current Sample': 364083, 'Current Hyper-parameters': {'n_estimators': 159, 'num_leaves': 54, 'min_child_samples': 3, 'learning_rate': 0.15480526013767984, 'log_max_bin': 9, 'colsample_bytree': 0.4565737938156385, 'reg_alpha': 0.014844095616079196, 'reg_lambda': 0.01191495998733094, 'FLAML_sample_size': 364083}, 'Best Learner': 'lgbm', 'Best Hyper-parameters': {'n_estimators': 159, 'num_leaves': 54, 'min_child_samples': 3, 'learning_rate': 0.15480526013767984, 'log_max_bin': 9, 'colsample_bytree': 0.4565737938156385, 'reg_alpha': 0.014844095616079196, 'reg_lambda': 0.01191495998733094, 'FLAML_sample_size': 364083}}\n",
+ "{'Current Learner': 'lgbm', 'Current Sample': 364083, 'Current Hyper-parameters': {'n_estimators': 100, 'num_leaves': 310, 'min_child_samples': 2, 'learning_rate': 0.0958942820044505, 'log_max_bin': 10, 'colsample_bytree': 0.40118043723920377, 'reg_alpha': 0.006532533034382694, 'reg_lambda': 0.02014962736208268, 'FLAML_sample_size': 364083}, 'Best Learner': 'lgbm', 'Best Hyper-parameters': {'n_estimators': 100, 'num_leaves': 310, 'min_child_samples': 2, 'learning_rate': 0.0958942820044505, 'log_max_bin': 10, 'colsample_bytree': 0.40118043723920377, 'reg_alpha': 0.006532533034382694, 'reg_lambda': 0.02014962736208268, 'FLAML_sample_size': 364083}}\n"
]
}
],
@@ -663,8 +640,8 @@
"text/plain": [
"<Figure size 432x288 with 1 Axes>"
],
- "image/svg+xml": "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\n<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n<!-- Created with matplotlib (https://matplotlib.org/) -->\n<svg height=\"277.314375pt\" version=\"1.1\" viewBox=\"0 0 392.14375 277.314375\" width=\"392.14375pt\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n <defs>\n <style type=\"text/css\">\n*{stroke-linecap:butt;stroke-linejoin:round;}\n </style>\n </defs>\n <g id=\"figure_1\">\n <g id=\"patch_1\">\n <path d=\"M 0 277.314375 \nL 392.14375 277.314375 \nL 392.14375 0 \nL 0 0 \nz\n\" style=\"fill:none;\"/>\n </g>\n <g id=\"axes_1\">\n <g id=\"patch_2\">\n <path d=\"M 50.14375 239.758125 \nL 384.94375 239.758125 \nL 384.94375 22.318125 \nL 50.14375 22.318125 \nz\n\" style=\"fill:#ffffff;\"/>\n </g>\n <g id=\"PathCollection_1\">\n <defs>\n <path d=\"M 0 3 \nC 0.795609 3 1.55874 2.683901 2.12132 2.12132 \nC 2.683901 1.55874 3 0.795609 3 0 \nC 3 -0.795609 2.683901 -1.55874 2.12132 -2.12132 \nC 1.55874 -2.683901 0.795609 -3 0 -3 \nC -0.795609 -3 -1.55874 -2.683901 -2.12132 -2.12132 \nC -2.683901 -1.55874 -3 -0.795609 -3 0 \nC -3 0.795609 -2.683901 1.55874 -2.12132 2.12132 \nC -1.55874 2.683901 -0.795609 3 0 3 \nz\n\" id=\"m3d38b36106\" style=\"stroke:#1f77b4;\"/>\n </defs>\n <g clip-path=\"url(#p887a4fee6e)\">\n <use style=\"fill:#1f77b4;stroke:#1f77b4;\" x=\"65.361932\" xlink:href=\"#m3d38b36106\" y=\"229.874489\"/>\n <use style=\"fill:#1f77b4;stroke:#1f77b4;\" x=\"65.654055\" xlink:href=\"#m3d38b36106\" y=\"184.944505\"/>\n <use style=\"fill:#1f77b4;stroke:#1f77b4;\" x=\"65.782756\" xlink:href=\"#m3d38b36106\" y=\"178.608225\"/>\n <use style=\"fill:#1f77b4;stroke:#1f77b4;\" x=\"66.07472\" xlink:href=\"#m3d38b36106\" y=\"165.167632\"/>\n <use style=\"fill:#1f77b4;stroke:#1f77b4;\" x=\"67.048912\" xlink:href=\"#m3d38b36106\" y=\"162.86353\"/>\n <use style=\"fill:#1f77b4;stroke:#1f77b4;\" x=\"68.137087\" xlink:href=\"#m3d38b36106\" y=\"141.454585\"/>\n <use style=\"fill:#1f77b4;stroke:#1f77b4;\" x=\"72.899795\" xlink:href=\"#m3d38b36106\" y=\"119.085597\"/>\n <use style=\"fill:#1f77b4;stroke:#1f77b4;\" x=\"74.823475\" xlink:href=\"#m3d38b36106\" y=\"92.300415\"/>\n <use style=\"fill:#1f77b4;stroke:#1f77b4;\" x=\"82.238065\" xlink:href=\"#m3d38b36106\" y=\"77.70777\"/>\n <use style=\"fill:#1f77b4;stroke:#1f77b4;\" x=\"90.681338\" xlink:href=\"#m3d38b36106\" y=\"75.21166\"/>\n <use style=\"fill:#1f77b4;stroke:#1f77b4;\" x=\"113.974276\" xlink:href=\"#m3d38b36106\" y=\"62.539101\"/>\n <use style=\"fill:#1f77b4;stroke:#1f77b4;\" x=\"119.609612\" xlink:href=\"#m3d38b36106\" y=\"58.21891\"/>\n <use style=\"fill:#1f77b4;stroke:#1f77b4;\" x=\"124.679039\" xlink:href=\"#m3d38b36106\" y=\"58.026902\"/>\n <use style=\"fill:#1f77b4;stroke:#1f77b4;\" x=\"174.157665\" xlink:href=\"#m3d38b36106\" y=\"50.922588\"/>\n <use style=\"fill:#1f77b4;stroke:#1f77b4;\" x=\"302.341024\" xlink:href=\"#m3d38b36106\" y=\"44.202291\"/>\n <use style=\"fill:#1f77b4;stroke:#1f77b4;\" x=\"369.725568\" xlink:href=\"#m3d38b36106\" y=\"32.201761\"/>\n </g>\n </g>\n <g id=\"matplotlib.axis_1\">\n <g id=\"xtick_1\">\n <g id=\"line2d_1\">\n <defs>\n <path d=\"M 0 0 \nL 0 3.5 \n\" id=\"m1ea846b3c5\" style=\"stroke:#000000;stroke-width:0.8;\"/>\n </defs>\n <g>\n <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"64.23862\" xlink:href=\"#m1ea846b3c5\" y=\"239.758125\"/>\n </g>\n </g>\n <g id=\"text_1\">\n <!-- 0 -->\n <defs>\n <path d=\"M 31.78125 66.40625 \nQ 24.171875 66.40625 20.328125 58.90625 \nQ 16.5 51.421875 16.5 36.375 \nQ 16.5 21.390625 20.328125 13.890625 \nQ 24.171875 6.390625 31.78125 6.390625 \nQ 39.453125 6.390625 43.28125 13.890625 \nQ 47.125 21.390625 47.125 36.375 \nQ 47.125 51.421875 43.28125 58.90625 \nQ 39.453125 66.40625 31.78125 66.40625 \nz\nM 31.78125 74.21875 \nQ 44.046875 74.21875 50.515625 64.515625 \nQ 56.984375 54.828125 56.984375 36.375 \nQ 56.984375 17.96875 50.515625 8.265625 \nQ 44.046875 -1.421875 31.78125 -1.421875 \nQ 19.53125 -1.421875 13.0625 8.265625 \nQ 6.59375 17.96875 6.59375 36.375 \nQ 6.59375 54.828125 13.0625 64.515625 \nQ 19.53125 74.21875 31.78125 74.21875 \nz\n\" id=\"DejaVuSans-48\"/>\n </defs>\n <g transform=\"translate(61.05737 254.356562)scale(0.1 -0.1)\">\n <use xlink:href=\"#DejaVuSans-48\"/>\n </g>\n </g>\n </g>\n <g id=\"xtick_2\">\n <g id=\"line2d_2\">\n <g>\n <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"115.414803\" xlink:href=\"#m1ea846b3c5\" y=\"239.758125\"/>\n </g>\n </g>\n <g id=\"text_2\">\n <!-- 50 -->\n <defs>\n <path d=\"M 10.796875 72.90625 \nL 49.515625 72.90625 \nL 49.515625 64.59375 \nL 19.828125 64.59375 \nL 19.828125 46.734375 \nQ 21.96875 47.46875 24.109375 47.828125 \nQ 26.265625 48.1875 28.421875 48.1875 \nQ 40.625 48.1875 47.75 41.5 \nQ 54.890625 34.8125 54.890625 23.390625 \nQ 54.890625 11.625 47.5625 5.09375 \nQ 40.234375 -1.421875 26.90625 -1.421875 \nQ 22.3125 -1.421875 17.546875 -0.640625 \nQ 12.796875 0.140625 7.71875 1.703125 \nL 7.71875 11.625 \nQ 12.109375 9.234375 16.796875 8.0625 \nQ 21.484375 6.890625 26.703125 6.890625 \nQ 35.15625 6.890625 40.078125 11.328125 \nQ 45.015625 15.765625 45.015625 23.390625 \nQ 45.015625 31 40.078125 35.4375 \nQ 35.15625 39.890625 26.703125 39.890625 \nQ 22.75 39.890625 18.8125 39.015625 \nQ 14.890625 38.140625 10.796875 36.28125 \nz\n\" id=\"DejaVuSans-53\"/>\n </defs>\n <g transform=\"translate(109.052303 254.356562)scale(0.1 -0.1)\">\n <use xlink:href=\"#DejaVuSans-53\"/>\n <use x=\"63.623047\" xlink:href=\"#DejaVuSans-48\"/>\n </g>\n </g>\n </g>\n <g id=\"xtick_3\">\n <g id=\"line2d_3\">\n <g>\n <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"166.590986\" xlink:href=\"#m1ea846b3c5\" y=\"239.758125\"/>\n </g>\n </g>\n <g id=\"text_3\">\n <!-- 100 -->\n <defs>\n <path d=\"M 12.40625 8.296875 \nL 28.515625 8.296875 \nL 28.515625 63.921875 \nL 10.984375 60.40625 \nL 10.984375 69.390625 \nL 28.421875 72.90625 \nL 38.28125 72.90625 \nL 38.28125 8.296875 \nL 54.390625 8.296875 \nL 54.390625 0 \nL 12.40625 0 \nz\n\" id=\"DejaVuSans-49\"/>\n </defs>\n <g transform=\"translate(157.047236 254.356562)scale(0.1 -0.1)\">\n <use xlink:href=\"#DejaVuSans-49\"/>\n <use x=\"63.623047\" xlink:href=\"#DejaVuSans-48\"/>\n <use x=\"127.246094\" xlink:href=\"#DejaVuSans-48\"/>\n </g>\n </g>\n </g>\n <g id=\"xtick_4\">\n <g id=\"line2d_4\">\n <g>\n <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"217.767169\" xlink:href=\"#m1ea846b3c5\" y=\"239.758125\"/>\n </g>\n </g>\n <g id=\"text_4\">\n <!-- 150 -->\n <g transform=\"translate(208.223419 254.356562)scale(0.1 -0.1)\">\n <use xlink:href=\"#DejaVuSans-49\"/>\n <use x=\"63.623047\" xlink:href=\"#DejaVuSans-53\"/>\n <use x=\"127.246094\" xlink:href=\"#DejaVuSans-48\"/>\n </g>\n </g>\n </g>\n <g id=\"xtick_5\">\n <g id=\"line2d_5\">\n <g>\n <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"268.943352\" xlink:href=\"#m1ea846b3c5\" y=\"239.758125\"/>\n </g>\n </g>\n <g id=\"text_5\">\n <!-- 200 -->\n <defs>\n <path d=\"M 19.1875 8.296875 \nL 53.609375 8.296875 \nL 53.609375 0 \nL 7.328125 0 \nL 7.328125 8.296875 \nQ 12.9375 14.109375 22.625 23.890625 \nQ 32.328125 33.6875 34.8125 36.53125 \nQ 39.546875 41.84375 41.421875 45.53125 \nQ 43.3125 49.21875 43.3125 52.78125 \nQ 43.3125 58.59375 39.234375 62.25 \nQ 35.15625 65.921875 28.609375 65.921875 \nQ 23.96875 65.921875 18.8125 64.3125 \nQ 13.671875 62.703125 7.8125 59.421875 \nL 7.8125 69.390625 \nQ 13.765625 71.78125 18.9375 73 \nQ 24.125 74.21875 28.421875 74.21875 \nQ 39.75 74.21875 46.484375 68.546875 \nQ 53.21875 62.890625 53.21875 53.421875 \nQ 53.21875 48.921875 51.53125 44.890625 \nQ 49.859375 40.875 45.40625 35.40625 \nQ 44.1875 33.984375 37.640625 27.21875 \nQ 31.109375 20.453125 19.1875 8.296875 \nz\n\" id=\"DejaVuSans-50\"/>\n </defs>\n <g transform=\"translate(259.399602 254.356562)scale(0.1 -0.1)\">\n <use xlink:href=\"#DejaVuSans-50\"/>\n <use x=\"63.623047\" xlink:href=\"#DejaVuSans-48\"/>\n <use x=\"127.246094\" xlink:href=\"#DejaVuSans-48\"/>\n </g>\n </g>\n </g>\n <g id=\"xtick_6\">\n <g id=\"line2d_6\">\n <g>\n <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"320.119536\" xlink:href=\"#m1ea846b3c5\" y=\"239.758125\"/>\n </g>\n </g>\n <g id=\"text_6\">\n <!-- 250 -->\n <g transform=\"translate(310.575786 254.356562)scale(0.1 -0.1)\">\n <use xlink:href=\"#DejaVuSans-50\"/>\n <use x=\"63.623047\" xlink:href=\"#DejaVuSans-53\"/>\n <use x=\"127.246094\" xlink:href=\"#DejaVuSans-48\"/>\n </g>\n </g>\n </g>\n <g id=\"xtick_7\">\n <g id=\"line2d_7\">\n <g>\n <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"371.295719\" xlink:href=\"#m1ea846b3c5\" y=\"239.758125\"/>\n </g>\n </g>\n <g id=\"text_7\">\n <!-- 300 -->\n <defs>\n <path d=\"M 40.578125 39.3125 \nQ 47.65625 37.796875 51.625 33 \nQ 55.609375 28.21875 55.609375 21.1875 \nQ 55.609375 10.40625 48.1875 4.484375 \nQ 40.765625 -1.421875 27.09375 -1.421875 \nQ 22.515625 -1.421875 17.65625 -0.515625 \nQ 12.796875 0.390625 7.625 2.203125 \nL 7.625 11.71875 \nQ 11.71875 9.328125 16.59375 8.109375 \nQ 21.484375 6.890625 26.8125 6.890625 \nQ 36.078125 6.890625 40.9375 10.546875 \nQ 45.796875 14.203125 45.796875 21.1875 \nQ 45.796875 27.640625 41.28125 31.265625 \nQ 36.765625 34.90625 28.71875 34.90625 \nL 20.21875 34.90625 \nL 20.21875 43.015625 \nL 29.109375 43.015625 \nQ 36.375 43.015625 40.234375 45.921875 \nQ 44.09375 48.828125 44.09375 54.296875 \nQ 44.09375 59.90625 40.109375 62.90625 \nQ 36.140625 65.921875 28.71875 65.921875 \nQ 24.65625 65.921875 20.015625 65.03125 \nQ 15.375 64.15625 9.8125 62.3125 \nL 9.8125 71.09375 \nQ 15.4375 72.65625 20.34375 73.4375 \nQ 25.25 74.21875 29.59375 74.21875 \nQ 40.828125 74.21875 47.359375 69.109375 \nQ 53.90625 64.015625 53.90625 55.328125 \nQ 53.90625 49.265625 50.4375 45.09375 \nQ 46.96875 40.921875 40.578125 39.3125 \nz\n\" id=\"DejaVuSans-51\"/>\n </defs>\n <g transform=\"translate(361.751969 254.356562)scale(0.1 -0.1)\">\n <use xlink:href=\"#DejaVuSans-51\"/>\n <use x=\"63.623047\" xlink:href=\"#DejaVuSans-48\"/>\n <use x=\"127.246094\" xlink:href=\"#DejaVuSans-48\"/>\n </g>\n </g>\n </g>\n <g id=\"text_8\">\n <!-- Wall Clock Time (s) -->\n <defs>\n <path d=\"M 3.328125 72.90625 \nL 13.28125 72.90625 \nL 28.609375 11.28125 \nL 43.890625 72.90625 \nL 54.984375 72.90625 \nL 70.3125 11.28125 \nL 85.59375 72.90625 \nL 95.609375 72.90625 \nL 77.296875 0 \nL 64.890625 0 \nL 49.515625 63.28125 \nL 33.984375 0 \nL 21.578125 0 \nz\n\" id=\"DejaVuSans-87\"/>\n <path d=\"M 34.28125 27.484375 \nQ 23.390625 27.484375 19.1875 25 \nQ 14.984375 22.515625 14.984375 16.5 \nQ 14.984375 11.71875 18.140625 8.90625 \nQ 21.296875 6.109375 26.703125 6.109375 \nQ 34.1875 6.109375 38.703125 11.40625 \nQ 43.21875 16.703125 43.21875 25.484375 \nL 43.21875 27.484375 \nz\nM 52.203125 31.203125 \nL 52.203125 0 \nL 43.21875 0 \nL 43.21875 8.296875 \nQ 40.140625 3.328125 35.546875 0.953125 \nQ 30.953125 -1.421875 24.3125 -1.421875 \nQ 15.921875 -1.421875 10.953125 3.296875 \nQ 6 8.015625 6 15.921875 \nQ 6 25.140625 12.171875 29.828125 \nQ 18.359375 34.515625 30.609375 34.515625 \nL 43.21875 34.515625 \nL 43.21875 35.40625 \nQ 43.21875 41.609375 39.140625 45 \nQ 35.0625 48.390625 27.6875 48.390625 \nQ 23 48.390625 18.546875 47.265625 \nQ 14.109375 46.140625 10.015625 43.890625 \nL 10.015625 52.203125 \nQ 14.9375 54.109375 19.578125 55.046875 \nQ 24.21875 56 28.609375 56 \nQ 40.484375 56 46.34375 49.84375 \nQ 52.203125 43.703125 52.203125 31.203125 \nz\n\" id=\"DejaVuSans-97\"/>\n <path d=\"M 9.421875 75.984375 \nL 18.40625 75.984375 \nL 18.40625 0 \nL 9.421875 0 \nz\n\" id=\"DejaVuSans-108\"/>\n <path id=\"DejaVuSans-32\"/>\n <path d=\"M 64.40625 67.28125 \nL 64.40625 56.890625 \nQ 59.421875 61.53125 53.78125 63.8125 \nQ 48.140625 66.109375 41.796875 66.109375 \nQ 29.296875 66.109375 22.65625 58.46875 \nQ 16.015625 50.828125 16.015625 36.375 \nQ 16.015625 21.96875 22.65625 14.328125 \nQ 29.296875 6.6875 41.796875 6.6875 \nQ 48.140625 6.6875 53.78125 8.984375 \nQ 59.421875 11.28125 64.40625 15.921875 \nL 64.40625 5.609375 \nQ 59.234375 2.09375 53.4375 0.328125 \nQ 47.65625 -1.421875 41.21875 -1.421875 \nQ 24.65625 -1.421875 15.125 8.703125 \nQ 5.609375 18.84375 5.609375 36.375 \nQ 5.609375 53.953125 15.125 64.078125 \nQ 24.65625 74.21875 41.21875 74.21875 \nQ 47.75 74.21875 53.53125 72.484375 \nQ 59.328125 70.75 64.40625 67.28125 \nz\n\" id=\"DejaVuSans-67\"/>\n <path d=\"M 30.609375 48.390625 \nQ 23.390625 48.390625 19.1875 42.75 \nQ 14.984375 37.109375 14.984375 27.296875 \nQ 14.984375 17.484375 19.15625 11.84375 \nQ 23.34375 6.203125 30.609375 6.203125 \nQ 37.796875 6.203125 41.984375 11.859375 \nQ 46.1875 17.53125 46.1875 27.296875 \nQ 46.1875 37.015625 41.984375 42.703125 \nQ 37.796875 48.390625 30.609375 48.390625 \nz\nM 30.609375 56 \nQ 42.328125 56 49.015625 48.375 \nQ 55.71875 40.765625 55.71875 27.296875 \nQ 55.71875 13.875 49.015625 6.21875 \nQ 42.328125 -1.421875 30.609375 -1.421875 \nQ 18.84375 -1.421875 12.171875 6.21875 \nQ 5.515625 13.875 5.515625 27.296875 \nQ 5.515625 40.765625 12.171875 48.375 \nQ 18.84375 56 30.609375 56 \nz\n\" id=\"DejaVuSans-111\"/>\n <path d=\"M 48.78125 52.59375 \nL 48.78125 44.1875 \nQ 44.96875 46.296875 41.140625 47.34375 \nQ 37.3125 48.390625 33.40625 48.390625 \nQ 24.65625 48.390625 19.8125 42.84375 \nQ 14.984375 37.3125 14.984375 27.296875 \nQ 14.984375 17.28125 19.8125 11.734375 \nQ 24.65625 6.203125 33.40625 6.203125 \nQ 37.3125 6.203125 41.140625 7.25 \nQ 44.96875 8.296875 48.78125 10.40625 \nL 48.78125 2.09375 \nQ 45.015625 0.34375 40.984375 -0.53125 \nQ 36.96875 -1.421875 32.421875 -1.421875 \nQ 20.0625 -1.421875 12.78125 6.34375 \nQ 5.515625 14.109375 5.515625 27.296875 \nQ 5.515625 40.671875 12.859375 48.328125 \nQ 20.21875 56 33.015625 56 \nQ 37.15625 56 41.109375 55.140625 \nQ 45.0625 54.296875 48.78125 52.59375 \nz\n\" id=\"DejaVuSans-99\"/>\n <path d=\"M 9.078125 75.984375 \nL 18.109375 75.984375 \nL 18.109375 31.109375 \nL 44.921875 54.6875 \nL 56.390625 54.6875 \nL 27.390625 29.109375 \nL 57.625 0 \nL 45.90625 0 \nL 18.109375 26.703125 \nL 18.109375 0 \nL 9.078125 0 \nz\n\" id=\"DejaVuSans-107\"/>\n <path d=\"M -0.296875 72.90625 \nL 61.375 72.90625 \nL 61.375 64.59375 \nL 35.5 64.59375 \nL 35.5 0 \nL 25.59375 0 \nL 25.59375 64.59375 \nL -0.296875 64.59375 \nz\n\" id=\"DejaVuSans-84\"/>\n <path d=\"M 9.421875 54.6875 \nL 18.40625 54.6875 \nL 18.40625 0 \nL 9.421875 0 \nz\nM 9.421875 75.984375 \nL 18.40625 75.984375 \nL 18.40625 64.59375 \nL 9.421875 64.59375 \nz\n\" id=\"DejaVuSans-105\"/>\n <path d=\"M 52 44.1875 \nQ 55.375 50.25 60.0625 53.125 \nQ 64.75 56 71.09375 56 \nQ 79.640625 56 84.28125 50.015625 \nQ 88.921875 44.046875 88.921875 33.015625 \nL 88.921875 0 \nL 79.890625 0 \nL 79.890625 32.71875 \nQ 79.890625 40.578125 77.09375 44.375 \nQ 74.3125 48.1875 68.609375 48.1875 \nQ 61.625 48.1875 57.5625 43.546875 \nQ 53.515625 38.921875 53.515625 30.90625 \nL 53.515625 0 \nL 44.484375 0 \nL 44.484375 32.71875 \nQ 44.484375 40.625 41.703125 44.40625 \nQ 38.921875 48.1875 33.109375 48.1875 \nQ 26.21875 48.1875 22.15625 43.53125 \nQ 18.109375 38.875 18.109375 30.90625 \nL 18.109375 0 \nL 9.078125 0 \nL 9.078125 54.6875 \nL 18.109375 54.6875 \nL 18.109375 46.1875 \nQ 21.1875 51.21875 25.484375 53.609375 \nQ 29.78125 56 35.6875 56 \nQ 41.65625 56 45.828125 52.96875 \nQ 50 49.953125 52 44.1875 \nz\n\" id=\"DejaVuSans-109\"/>\n <path d=\"M 56.203125 29.59375 \nL 56.203125 25.203125 \nL 14.890625 25.203125 \nQ 15.484375 15.921875 20.484375 11.0625 \nQ 25.484375 6.203125 34.421875 6.203125 \nQ 39.59375 6.203125 44.453125 7.46875 \nQ 49.3125 8.734375 54.109375 11.28125 \nL 54.109375 2.78125 \nQ 49.265625 0.734375 44.1875 -0.34375 \nQ 39.109375 -1.421875 33.890625 -1.421875 \nQ 20.796875 -1.421875 13.15625 6.1875 \nQ 5.515625 13.8125 5.515625 26.8125 \nQ 5.515625 40.234375 12.765625 48.109375 \nQ 20.015625 56 32.328125 56 \nQ 43.359375 56 49.78125 48.890625 \nQ 56.203125 41.796875 56.203125 29.59375 \nz\nM 47.21875 32.234375 \nQ 47.125 39.59375 43.09375 43.984375 \nQ 39.0625 48.390625 32.421875 48.390625 \nQ 24.90625 48.390625 20.390625 44.140625 \nQ 15.875 39.890625 15.1875 32.171875 \nz\n\" id=\"DejaVuSans-101\"/>\n <path d=\"M 31 75.875 \nQ 24.46875 64.65625 21.28125 53.65625 \nQ 18.109375 42.671875 18.109375 31.390625 \nQ 18.109375 20.125 21.3125 9.0625 \nQ 24.515625 -2 31 -13.1875 \nL 23.1875 -13.1875 \nQ 15.875 -1.703125 12.234375 9.375 \nQ 8.59375 20.453125 8.59375 31.390625 \nQ 8.59375 42.28125 12.203125 53.3125 \nQ 15.828125 64.359375 23.1875 75.875 \nz\n\" id=\"DejaVuSans-40\"/>\n <path d=\"M 44.28125 53.078125 \nL 44.28125 44.578125 \nQ 40.484375 46.53125 36.375 47.5 \nQ 32.28125 48.484375 27.875 48.484375 \nQ 21.1875 48.484375 17.84375 46.4375 \nQ 14.5 44.390625 14.5 40.28125 \nQ 14.5 37.15625 16.890625 35.375 \nQ 19.28125 33.59375 26.515625 31.984375 \nL 29.59375 31.296875 \nQ 39.15625 29.25 43.1875 25.515625 \nQ 47.21875 21.78125 47.21875 15.09375 \nQ 47.21875 7.46875 41.1875 3.015625 \nQ 35.15625 -1.421875 24.609375 -1.421875 \nQ 20.21875 -1.421875 15.453125 -0.5625 \nQ 10.6875 0.296875 5.421875 2 \nL 5.421875 11.28125 \nQ 10.40625 8.6875 15.234375 7.390625 \nQ 20.0625 6.109375 24.8125 6.109375 \nQ 31.15625 6.109375 34.5625 8.28125 \nQ 37.984375 10.453125 37.984375 14.40625 \nQ 37.984375 18.0625 35.515625 20.015625 \nQ 33.0625 21.96875 24.703125 23.78125 \nL 21.578125 24.515625 \nQ 13.234375 26.265625 9.515625 29.90625 \nQ 5.8125 33.546875 5.8125 39.890625 \nQ 5.8125 47.609375 11.28125 51.796875 \nQ 16.75 56 26.8125 56 \nQ 31.78125 56 36.171875 55.265625 \nQ 40.578125 54.546875 44.28125 53.078125 \nz\n\" id=\"DejaVuSans-115\"/>\n <path d=\"M 8.015625 75.875 \nL 15.828125 75.875 \nQ 23.140625 64.359375 26.78125 53.3125 \nQ 30.421875 42.28125 30.421875 31.390625 \nQ 30.421875 20.453125 26.78125 9.375 \nQ 23.140625 -1.703125 15.828125 -13.1875 \nL 8.015625 -13.1875 \nQ 14.5 -2 17.703125 9.0625 \nQ 20.90625 20.125 20.90625 31.390625 \nQ 20.90625 42.671875 17.703125 53.65625 \nQ 14.5 64.65625 8.015625 75.875 \nz\n\" id=\"DejaVuSans-41\"/>\n </defs>\n <g transform=\"translate(169.985156 268.034687)scale(0.1 -0.1)\">\n <use xlink:href=\"#DejaVuSans-87\"/>\n <use x=\"92.501953\" xlink:href=\"#DejaVuSans-97\"/>\n <use x=\"153.78125\" xlink:href=\"#DejaVuSans-108\"/>\n <use x=\"181.564453\" xlink:href=\"#DejaVuSans-108\"/>\n <use x=\"209.347656\" xlink:href=\"#DejaVuSans-32\"/>\n <use x=\"241.134766\" xlink:href=\"#DejaVuSans-67\"/>\n <use x=\"310.958984\" xlink:href=\"#DejaVuSans-108\"/>\n <use x=\"338.742188\" xlink:href=\"#DejaVuSans-111\"/>\n <use x=\"399.923828\" xlink:href=\"#DejaVuSans-99\"/>\n <use x=\"454.904297\" xlink:href=\"#DejaVuSans-107\"/>\n <use x=\"512.814453\" xlink:href=\"#DejaVuSans-32\"/>\n <use x=\"544.601562\" xlink:href=\"#DejaVuSans-84\"/>\n <use x=\"602.560547\" xlink:href=\"#DejaVuSans-105\"/>\n <use x=\"630.34375\" xlink:href=\"#DejaVuSans-109\"/>\n <use x=\"727.755859\" xlink:href=\"#DejaVuSans-101\"/>\n <use x=\"789.279297\" xlink:href=\"#DejaVuSans-32\"/>\n <use x=\"821.066406\" xlink:href=\"#DejaVuSans-40\"/>\n <use x=\"860.080078\" xlink:href=\"#DejaVuSans-115\"/>\n <use x=\"912.179688\" xlink:href=\"#DejaVuSans-41\"/>\n </g>\n </g>\n </g>\n <g id=\"matplotlib.axis_2\">\n <g id=\"ytick_1\">\n <g id=\"line2d_8\">\n <defs>\n <path d=\"M 0 0 \nL -3.5 0 \n\" id=\"m2a273e210a\" style=\"stroke:#000000;stroke-width:0.8;\"/>\n </defs>\n <g>\n <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"50.14375\" xlink:href=\"#m2a273e210a\" y=\"238.925768\"/>\n </g>\n </g>\n <g id=\"text_9\">\n <!-- 0.62 -->\n <defs>\n <path d=\"M 10.6875 12.40625 \nL 21 12.40625 \nL 21 0 \nL 10.6875 0 \nz\n\" id=\"DejaVuSans-46\"/>\n <path d=\"M 33.015625 40.375 \nQ 26.375 40.375 22.484375 35.828125 \nQ 18.609375 31.296875 18.609375 23.390625 \nQ 18.609375 15.53125 22.484375 10.953125 \nQ 26.375 6.390625 33.015625 6.390625 \nQ 39.65625 6.390625 43.53125 10.953125 \nQ 47.40625 15.53125 47.40625 23.390625 \nQ 47.40625 31.296875 43.53125 35.828125 \nQ 39.65625 40.375 33.015625 40.375 \nz\nM 52.59375 71.296875 \nL 52.59375 62.3125 \nQ 48.875 64.0625 45.09375 64.984375 \nQ 41.3125 65.921875 37.59375 65.921875 \nQ 27.828125 65.921875 22.671875 59.328125 \nQ 17.53125 52.734375 16.796875 39.40625 \nQ 19.671875 43.65625 24.015625 45.921875 \nQ 28.375 48.1875 33.59375 48.1875 \nQ 44.578125 48.1875 50.953125 41.515625 \nQ 57.328125 34.859375 57.328125 23.390625 \nQ 57.328125 12.15625 50.6875 5.359375 \nQ 44.046875 -1.421875 33.015625 -1.421875 \nQ 20.359375 -1.421875 13.671875 8.265625 \nQ 6.984375 17.96875 6.984375 36.375 \nQ 6.984375 53.65625 15.1875 63.9375 \nQ 23.390625 74.21875 37.203125 74.21875 \nQ 40.921875 74.21875 44.703125 73.484375 \nQ 48.484375 72.75 52.59375 71.296875 \nz\n\" id=\"DejaVuSans-54\"/>\n </defs>\n <g transform=\"translate(20.878125 242.724987)scale(0.1 -0.1)\">\n <use xlink:href=\"#DejaVuSans-48\"/>\n <use x=\"63.623047\" xlink:href=\"#DejaVuSans-46\"/>\n <use x=\"95.410156\" xlink:href=\"#DejaVuSans-54\"/>\n <use x=\"159.033203\" xlink:href=\"#DejaVuSans-50\"/>\n </g>\n </g>\n </g>\n <g id=\"ytick_2\">\n <g id=\"line2d_9\">\n <g>\n <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"50.14375\" xlink:href=\"#m2a273e210a\" y=\"200.086293\"/>\n </g>\n </g>\n <g id=\"text_10\">\n <!-- 0.63 -->\n <g transform=\"translate(20.878125 203.885512)scale(0.1 -0.1)\">\n <use xlink:href=\"#DejaVuSans-48\"/>\n <use x=\"63.623047\" xlink:href=\"#DejaVuSans-46\"/>\n <use x=\"95.410156\" xlink:href=\"#DejaVuSans-54\"/>\n <use x=\"159.033203\" xlink:href=\"#DejaVuSans-51\"/>\n </g>\n </g>\n </g>\n <g id=\"ytick_3\">\n <g id=\"line2d_10\">\n <g>\n <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"50.14375\" xlink:href=\"#m2a273e210a\" y=\"161.246819\"/>\n </g>\n </g>\n <g id=\"text_11\">\n <!-- 0.64 -->\n <defs>\n <path d=\"M 37.796875 64.3125 \nL 12.890625 25.390625 \nL 37.796875 25.390625 \nz\nM 35.203125 72.90625 \nL 47.609375 72.90625 \nL 47.609375 25.390625 \nL 58.015625 25.390625 \nL 58.015625 17.1875 \nL 47.609375 17.1875 \nL 47.609375 0 \nL 37.796875 0 \nL 37.796875 17.1875 \nL 4.890625 17.1875 \nL 4.890625 26.703125 \nz\n\" id=\"DejaVuSans-52\"/>\n </defs>\n <g transform=\"translate(20.878125 165.046037)scale(0.1 -0.1)\">\n <use xlink:href=\"#DejaVuSans-48\"/>\n <use x=\"63.623047\" xlink:href=\"#DejaVuSans-46\"/>\n <use x=\"95.410156\" xlink:href=\"#DejaVuSans-54\"/>\n <use x=\"159.033203\" xlink:href=\"#DejaVuSans-52\"/>\n </g>\n </g>\n </g>\n <g id=\"ytick_4\">\n <g id=\"line2d_11\">\n <g>\n <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"50.14375\" xlink:href=\"#m2a273e210a\" y=\"122.407344\"/>\n </g>\n </g>\n <g id=\"text_12\">\n <!-- 0.65 -->\n <g transform=\"translate(20.878125 126.206563)scale(0.1 -0.1)\">\n <use xlink:href=\"#DejaVuSans-48\"/>\n <use x=\"63.623047\" xlink:href=\"#DejaVuSans-46\"/>\n <use x=\"95.410156\" xlink:href=\"#DejaVuSans-54\"/>\n <use x=\"159.033203\" xlink:href=\"#DejaVuSans-53\"/>\n </g>\n </g>\n </g>\n <g id=\"ytick_5\">\n <g id=\"line2d_12\">\n <g>\n <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"50.14375\" xlink:href=\"#m2a273e210a\" y=\"83.567869\"/>\n </g>\n </g>\n <g id=\"text_13\">\n <!-- 0.66 -->\n <g transform=\"translate(20.878125 87.367088)scale(0.1 -0.1)\">\n <use xlink:href=\"#DejaVuSans-48\"/>\n <use x=\"63.623047\" xlink:href=\"#DejaVuSans-46\"/>\n <use x=\"95.410156\" xlink:href=\"#DejaVuSans-54\"/>\n <use x=\"159.033203\" xlink:href=\"#DejaVuSans-54\"/>\n </g>\n </g>\n </g>\n <g id=\"ytick_6\">\n <g id=\"line2d_13\">\n <g>\n <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"50.14375\" xlink:href=\"#m2a273e210a\" y=\"44.728394\"/>\n </g>\n </g>\n <g id=\"text_14\">\n <!-- 0.67 -->\n <defs>\n <path d=\"M 8.203125 72.90625 \nL 55.078125 72.90625 \nL 55.078125 68.703125 \nL 28.609375 0 \nL 18.3125 0 \nL 43.21875 64.59375 \nL 8.203125 64.59375 \nz\n\" id=\"DejaVuSans-55\"/>\n </defs>\n <g transform=\"translate(20.878125 48.527613)scale(0.1 -0.1)\">\n <use xlink:href=\"#DejaVuSans-48\"/>\n <use x=\"63.623047\" xlink:href=\"#DejaVuSans-46\"/>\n <use x=\"95.410156\" xlink:href=\"#DejaVuSans-54\"/>\n <use x=\"159.033203\" xlink:href=\"#DejaVuSans-55\"/>\n </g>\n </g>\n </g>\n <g id=\"text_15\">\n <!-- Validation Accuracy -->\n <defs>\n <path d=\"M 28.609375 0 \nL 0.78125 72.90625 \nL 11.078125 72.90625 \nL 34.1875 11.53125 \nL 57.328125 72.90625 \nL 67.578125 72.90625 \nL 39.796875 0 \nz\n\" id=\"DejaVuSans-86\"/>\n <path d=\"M 45.40625 46.390625 \nL 45.40625 75.984375 \nL 54.390625 75.984375 \nL 54.390625 0 \nL 45.40625 0 \nL 45.40625 8.203125 \nQ 42.578125 3.328125 38.25 0.953125 \nQ 33.9375 -1.421875 27.875 -1.421875 \nQ 17.96875 -1.421875 11.734375 6.484375 \nQ 5.515625 14.40625 5.515625 27.296875 \nQ 5.515625 40.1875 11.734375 48.09375 \nQ 17.96875 56 27.875 56 \nQ 33.9375 56 38.25 53.625 \nQ 42.578125 51.265625 45.40625 46.390625 \nz\nM 14.796875 27.296875 \nQ 14.796875 17.390625 18.875 11.75 \nQ 22.953125 6.109375 30.078125 6.109375 \nQ 37.203125 6.109375 41.296875 11.75 \nQ 45.40625 17.390625 45.40625 27.296875 \nQ 45.40625 37.203125 41.296875 42.84375 \nQ 37.203125 48.484375 30.078125 48.484375 \nQ 22.953125 48.484375 18.875 42.84375 \nQ 14.796875 37.203125 14.796875 27.296875 \nz\n\" id=\"DejaVuSans-100\"/>\n <path d=\"M 18.3125 70.21875 \nL 18.3125 54.6875 \nL 36.8125 54.6875 \nL 36.8125 47.703125 \nL 18.3125 47.703125 \nL 18.3125 18.015625 \nQ 18.3125 11.328125 20.140625 9.421875 \nQ 21.96875 7.515625 27.59375 7.515625 \nL 36.8125 7.515625 \nL 36.8125 0 \nL 27.59375 0 \nQ 17.1875 0 13.234375 3.875 \nQ 9.28125 7.765625 9.28125 18.015625 \nL 9.28125 47.703125 \nL 2.6875 47.703125 \nL 2.6875 54.6875 \nL 9.28125 54.6875 \nL 9.28125 70.21875 \nz\n\" id=\"DejaVuSans-116\"/>\n <path d=\"M 54.890625 33.015625 \nL 54.890625 0 \nL 45.90625 0 \nL 45.90625 32.71875 \nQ 45.90625 40.484375 42.875 44.328125 \nQ 39.84375 48.1875 33.796875 48.1875 \nQ 26.515625 48.1875 22.3125 43.546875 \nQ 18.109375 38.921875 18.109375 30.90625 \nL 18.109375 0 \nL 9.078125 0 \nL 9.078125 54.6875 \nL 18.109375 54.6875 \nL 18.109375 46.1875 \nQ 21.34375 51.125 25.703125 53.5625 \nQ 30.078125 56 35.796875 56 \nQ 45.21875 56 50.046875 50.171875 \nQ 54.890625 44.34375 54.890625 33.015625 \nz\n\" id=\"DejaVuSans-110\"/>\n <path d=\"M 34.1875 63.1875 \nL 20.796875 26.90625 \nL 47.609375 26.90625 \nz\nM 28.609375 72.90625 \nL 39.796875 72.90625 \nL 67.578125 0 \nL 57.328125 0 \nL 50.6875 18.703125 \nL 17.828125 18.703125 \nL 11.1875 0 \nL 0.78125 0 \nz\n\" id=\"DejaVuSans-65\"/>\n <path d=\"M 8.5 21.578125 \nL 8.5 54.6875 \nL 17.484375 54.6875 \nL 17.484375 21.921875 \nQ 17.484375 14.15625 20.5 10.265625 \nQ 23.53125 6.390625 29.59375 6.390625 \nQ 36.859375 6.390625 41.078125 11.03125 \nQ 45.3125 15.671875 45.3125 23.6875 \nL 45.3125 54.6875 \nL 54.296875 54.6875 \nL 54.296875 0 \nL 45.3125 0 \nL 45.3125 8.40625 \nQ 42.046875 3.421875 37.71875 1 \nQ 33.40625 -1.421875 27.6875 -1.421875 \nQ 18.265625 -1.421875 13.375 4.4375 \nQ 8.5 10.296875 8.5 21.578125 \nz\nM 31.109375 56 \nz\n\" id=\"DejaVuSans-117\"/>\n <path d=\"M 41.109375 46.296875 \nQ 39.59375 47.171875 37.8125 47.578125 \nQ 36.03125 48 33.890625 48 \nQ 26.265625 48 22.1875 43.046875 \nQ 18.109375 38.09375 18.109375 28.8125 \nL 18.109375 0 \nL 9.078125 0 \nL 9.078125 54.6875 \nL 18.109375 54.6875 \nL 18.109375 46.1875 \nQ 20.953125 51.171875 25.484375 53.578125 \nQ 30.03125 56 36.53125 56 \nQ 37.453125 56 38.578125 55.875 \nQ 39.703125 55.765625 41.0625 55.515625 \nz\n\" id=\"DejaVuSans-114\"/>\n <path d=\"M 32.171875 -5.078125 \nQ 28.375 -14.84375 24.75 -17.8125 \nQ 21.140625 -20.796875 15.09375 -20.796875 \nL 7.90625 -20.796875 \nL 7.90625 -13.28125 \nL 13.1875 -13.28125 \nQ 16.890625 -13.28125 18.9375 -11.515625 \nQ 21 -9.765625 23.484375 -3.21875 \nL 25.09375 0.875 \nL 2.984375 54.6875 \nL 12.5 54.6875 \nL 29.59375 11.921875 \nL 46.6875 54.6875 \nL 56.203125 54.6875 \nz\n\" id=\"DejaVuSans-121\"/>\n </defs>\n <g transform=\"translate(14.798438 180.145937)rotate(-90)scale(0.1 -0.1)\">\n <use xlink:href=\"#DejaVuSans-86\"/>\n <use x=\"60.658203\" xlink:href=\"#DejaVuSans-97\"/>\n <use x=\"121.9375\" xlink:href=\"#DejaVuSans-108\"/>\n <use x=\"149.720703\" xlink:href=\"#DejaVuSans-105\"/>\n <use x=\"177.503906\" xlink:href=\"#DejaVuSans-100\"/>\n <use x=\"240.980469\" xlink:href=\"#DejaVuSans-97\"/>\n <use x=\"302.259766\" xlink:href=\"#DejaVuSans-116\"/>\n <use x=\"341.46875\" xlink:href=\"#DejaVuSans-105\"/>\n <use x=\"369.251953\" xlink:href=\"#DejaVuSans-111\"/>\n <use x=\"430.433594\" xlink:href=\"#DejaVuSans-110\"/>\n <use x=\"493.8125\" xlink:href=\"#DejaVuSans-32\"/>\n <use x=\"525.599609\" xlink:href=\"#DejaVuSans-65\"/>\n <use x=\"592.257812\" xlink:href=\"#DejaVuSans-99\"/>\n <use x=\"647.238281\" xlink:href=\"#DejaVuSans-99\"/>\n <use x=\"702.21875\" xlink:href=\"#DejaVuSans-117\"/>\n <use x=\"765.597656\" xlink:href=\"#DejaVuSans-114\"/>\n <use x=\"806.710938\" xlink:href=\"#DejaVuSans-97\"/>\n <use x=\"867.990234\" xlink:href=\"#DejaVuSans-99\"/>\n <use x=\"922.970703\" xlink:href=\"#DejaVuSans-121\"/>\n </g>\n </g>\n </g>\n <g id=\"line2d_14\">\n <path clip-path=\"url(#p887a4fee6e)\" d=\"M 65.361932 229.874489 \nL 65.654055 229.874489 \nL 65.654055 184.944505 \nL 65.782756 184.944505 \nL 65.782756 178.608225 \nL 66.07472 178.608225 \nL 66.07472 165.167632 \nL 67.048912 165.167632 \nL 67.048912 162.86353 \nL 68.137087 162.86353 \nL 68.137087 141.454585 \nL 72.899795 141.454585 \nL 72.899795 119.085597 \nL 74.823475 119.085597 \nL 74.823475 92.300415 \nL 82.238065 92.300415 \nL 82.238065 77.70777 \nL 90.681338 77.70777 \nL 90.681338 75.21166 \nL 113.974276 75.21166 \nL 113.974276 62.539101 \nL 119.609612 62.539101 \nL 119.609612 58.21891 \nL 124.679039 58.21891 \nL 124.679039 58.026902 \nL 174.157665 58.026902 \nL 174.157665 50.922588 \nL 302.341024 50.922588 \nL 302.341024 44.202291 \nL 369.725568 44.202291 \nL 369.725568 32.201761 \n\" style=\"fill:none;stroke:#1f77b4;stroke-linecap:square;stroke-width:1.5;\"/>\n </g>\n <g id=\"patch_3\">\n <path d=\"M 50.14375 239.758125 \nL 50.14375 22.318125 \n\" style=\"fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;\"/>\n </g>\n <g id=\"patch_4\">\n <path d=\"M 384.94375 239.758125 \nL 384.94375 22.318125 \n\" style=\"fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;\"/>\n </g>\n <g id=\"patch_5\">\n <path d=\"M 50.14375 239.758125 \nL 384.94375 239.758125 \n\" style=\"fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;\"/>\n </g>\n <g id=\"patch_6\">\n <path d=\"M 50.14375 22.318125 \nL 384.94375 22.318125 \n\" style=\"fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;\"/>\n </g>\n <g id=\"text_16\">\n <!-- Learning Curve -->\n <defs>\n <path d=\"M 9.8125 72.90625 \nL 19.671875 72.90625 \nL 19.671875 8.296875 \nL 55.171875 8.296875 \nL 55.171875 0 \nL 9.8125 0 \nz\n\" id=\"DejaVuSans-76\"/>\n <path d=\"M 45.40625 27.984375 \nQ 45.40625 37.75 41.375 43.109375 \nQ 37.359375 48.484375 30.078125 48.484375 \nQ 22.859375 48.484375 18.828125 43.109375 \nQ 14.796875 37.75 14.796875 27.984375 \nQ 14.796875 18.265625 18.828125 12.890625 \nQ 22.859375 7.515625 30.078125 7.515625 \nQ 37.359375 7.515625 41.375 12.890625 \nQ 45.40625 18.265625 45.40625 27.984375 \nz\nM 54.390625 6.78125 \nQ 54.390625 -7.171875 48.1875 -13.984375 \nQ 42 -20.796875 29.203125 -20.796875 \nQ 24.46875 -20.796875 20.265625 -20.09375 \nQ 16.0625 -19.390625 12.109375 -17.921875 \nL 12.109375 -9.1875 \nQ 16.0625 -11.328125 19.921875 -12.34375 \nQ 23.78125 -13.375 27.78125 -13.375 \nQ 36.625 -13.375 41.015625 -8.765625 \nQ 45.40625 -4.15625 45.40625 5.171875 \nL 45.40625 9.625 \nQ 42.625 4.78125 38.28125 2.390625 \nQ 33.9375 0 27.875 0 \nQ 17.828125 0 11.671875 7.65625 \nQ 5.515625 15.328125 5.515625 27.984375 \nQ 5.515625 40.671875 11.671875 48.328125 \nQ 17.828125 56 27.875 56 \nQ 33.9375 56 38.28125 53.609375 \nQ 42.625 51.21875 45.40625 46.390625 \nL 45.40625 54.6875 \nL 54.390625 54.6875 \nz\n\" id=\"DejaVuSans-103\"/>\n <path d=\"M 2.984375 54.6875 \nL 12.5 54.6875 \nL 29.59375 8.796875 \nL 46.6875 54.6875 \nL 56.203125 54.6875 \nL 35.6875 0 \nL 23.484375 0 \nz\n\" id=\"DejaVuSans-118\"/>\n </defs>\n <g transform=\"translate(171.885625 16.318125)scale(0.12 -0.12)\">\n <use xlink:href=\"#DejaVuSans-76\"/>\n <use x=\"53.962891\" xlink:href=\"#DejaVuSans-101\"/>\n <use x=\"115.486328\" xlink:href=\"#DejaVuSans-97\"/>\n <use x=\"176.765625\" xlink:href=\"#DejaVuSans-114\"/>\n <use x=\"216.128906\" xlink:href=\"#DejaVuSans-110\"/>\n <use x=\"279.507812\" xlink:href=\"#DejaVuSans-105\"/>\n <use x=\"307.291016\" xlink:href=\"#DejaVuSans-110\"/>\n <use x=\"370.669922\" xlink:href=\"#DejaVuSans-103\"/>\n <use x=\"434.146484\" xlink:href=\"#DejaVuSans-32\"/>\n <use x=\"465.933594\" xlink:href=\"#DejaVuSans-67\"/>\n <use x=\"535.757812\" xlink:href=\"#DejaVuSans-117\"/>\n <use x=\"599.136719\" xlink:href=\"#DejaVuSans-114\"/>\n <use x=\"640.25\" xlink:href=\"#DejaVuSans-118\"/>\n <use x=\"699.429688\" xlink:href=\"#DejaVuSans-101\"/>\n </g>\n </g>\n </g>\n </g>\n <defs>\n <clipPath id=\"p887a4fee6e\">\n <rect height=\"217.44\" width=\"334.8\" x=\"50.14375\" y=\"22.318125\"/>\n </clipPath>\n </defs>\n</svg>\n",
- "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYgAAAEWCAYAAAB8LwAVAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4yLjAsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy8GearUAAAgAElEQVR4nO3de5xdZX3v8c+XIcBYhAETKBnuJYlCQQIRRbwgLQY5lUREBHpaxRa0Fk9bjrGkVkQ8VGyqfemrqRzwUEVFbsYxaiRSQajckoFAQkKDIdwyQRMgUS4jCZPf+WM9k6xs1t6zk8yaPXvv7/v12q/Z+1nPWuu3smF+81zWsxQRmJmZVdqp0QGYmdno5ARhZmaFnCDMzKyQE4SZm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GxE/GONOnOAiyLikZGLzEYbz2IyazMR8f3BrrAiqYutx8nB3IIwM7NCHoMwM7NCThBmZlbICcLMzAo5QZiZWSEnCDMzK/T/AeiFdYCibO9ZAAAAAElFTkSuQmCC"
+ "image/svg+xml": "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\n<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n<!-- Created with matplotlib (https://matplotlib.org/) -->\n<svg height=\"277.314375pt\" version=\"1.1\" viewBox=\"0 0 392.14375 277.314375\" width=\"392.14375pt\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n <defs>\n <style type=\"text/css\">\n*{stroke-linecap:butt;stroke-linejoin:round;}\n </style>\n </defs>\n <g id=\"figure_1\">\n <g id=\"patch_1\">\n <path d=\"M 0 277.314375 \nL 392.14375 277.314375 \nL 392.14375 0 \nL 0 0 \nz\n\" style=\"fill:none;\"/>\n </g>\n <g id=\"axes_1\">\n <g id=\"patch_2\">\n <path d=\"M 50.14375 239.758125 \nL 384.94375 239.758125 \nL 384.94375 22.318125 \nL 50.14375 22.318125 \nz\n\" style=\"fill:#ffffff;\"/>\n </g>\n <g id=\"PathCollection_1\">\n <defs>\n <path d=\"M 0 3 \nC 0.795609 3 1.55874 2.683901 2.12132 2.12132 \nC 2.683901 1.55874 3 0.795609 3 0 \nC 3 -0.795609 2.683901 -1.55874 2.12132 -2.12132 \nC 1.55874 -2.683901 0.795609 -3 0 -3 \nC -0.795609 -3 -1.55874 -2.683901 -2.12132 -2.12132 \nC -2.683901 -1.55874 -3 -0.795609 -3 0 \nC -3 0.795609 -2.683901 1.55874 -2.12132 2.12132 \nC -1.55874 2.683901 -0.795609 3 0 3 \nz\n\" id=\"ma57fd23b24\" style=\"stroke:#1f77b4;\"/>\n </defs>\n <g clip-path=\"url(#p67affc388f)\">\n <use style=\"fill:#1f77b4;stroke:#1f77b4;\" x=\"65.361932\" xlink:href=\"#ma57fd23b24\" y=\"229.874489\"/>\n <use style=\"fill:#1f77b4;stroke:#1f77b4;\" x=\"67.475284\" xlink:href=\"#ma57fd23b24\" y=\"181.866789\"/>\n <use style=\"fill:#1f77b4;stroke:#1f77b4;\" x=\"70.521562\" xlink:href=\"#ma57fd23b24\" y=\"175.096473\"/>\n <use style=\"fill:#1f77b4;stroke:#1f77b4;\" x=\"72.871654\" xlink:href=\"#ma57fd23b24\" y=\"160.735195\"/>\n <use style=\"fill:#1f77b4;stroke:#1f77b4;\" x=\"87.311462\" xlink:href=\"#ma57fd23b24\" y=\"158.273262\"/>\n <use style=\"fill:#1f77b4;stroke:#1f77b4;\" x=\"89.835333\" xlink:href=\"#ma57fd23b24\" y=\"133.551349\"/>\n <use style=\"fill:#1f77b4;stroke:#1f77b4;\" x=\"94.247802\" xlink:href=\"#ma57fd23b24\" y=\"124.62684\"/>\n <use style=\"fill:#1f77b4;stroke:#1f77b4;\" x=\"122.20591\" xlink:href=\"#ma57fd23b24\" y=\"104.828793\"/>\n <use style=\"fill:#1f77b4;stroke:#1f77b4;\" x=\"166.896725\" xlink:href=\"#ma57fd23b24\" y=\"102.36686\"/>\n <use style=\"fill:#1f77b4;stroke:#1f77b4;\" x=\"190.136353\" xlink:href=\"#ma57fd23b24\" y=\"96.314608\"/>\n <use style=\"fill:#1f77b4;stroke:#1f77b4;\" x=\"237.166905\" xlink:href=\"#ma57fd23b24\" y=\"91.801063\"/>\n <use style=\"fill:#1f77b4;stroke:#1f77b4;\" x=\"324.748392\" xlink:href=\"#ma57fd23b24\" y=\"55.282386\"/>\n <use style=\"fill:#1f77b4;stroke:#1f77b4;\" x=\"369.725568\" xlink:href=\"#ma57fd23b24\" y=\"32.201761\"/>\n </g>\n </g>\n <g id=\"matplotlib.axis_1\">\n <g id=\"xtick_1\">\n <g id=\"line2d_1\">\n <defs>\n <path d=\"M 0 0 \nL 0 3.5 \n\" id=\"m7d47cee871\" style=\"stroke:#000000;stroke-width:0.8;\"/>\n </defs>\n <g>\n <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"58.415549\" xlink:href=\"#m7d47cee871\" y=\"239.758125\"/>\n </g>\n </g>\n <g id=\"text_1\">\n <!-- 0 -->\n <defs>\n <path d=\"M 31.78125 66.40625 \nQ 24.171875 66.40625 20.328125 58.90625 \nQ 16.5 51.421875 16.5 36.375 \nQ 16.5 21.390625 20.328125 13.890625 \nQ 24.171875 6.390625 31.78125 6.390625 \nQ 39.453125 6.390625 43.28125 13.890625 \nQ 47.125 21.390625 47.125 36.375 \nQ 47.125 51.421875 43.28125 58.90625 \nQ 39.453125 66.40625 31.78125 66.40625 \nz\nM 31.78125 74.21875 \nQ 44.046875 74.21875 50.515625 64.515625 \nQ 56.984375 54.828125 56.984375 36.375 \nQ 56.984375 17.96875 50.515625 8.265625 \nQ 44.046875 -1.421875 31.78125 -1.421875 \nQ 19.53125 -1.421875 13.0625 8.265625 \nQ 6.59375 17.96875 6.59375 36.375 \nQ 6.59375 54.828125 13.0625 64.515625 \nQ 19.53125 74.21875 31.78125 74.21875 \nz\n\" id=\"DejaVuSans-48\"/>\n </defs>\n <g transform=\"translate(55.234299 254.356562)scale(0.1 -0.1)\">\n <use xlink:href=\"#DejaVuSans-48\"/>\n </g>\n </g>\n </g>\n <g id=\"xtick_2\">\n <g id=\"line2d_2\">\n <g>\n <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"106.494726\" xlink:href=\"#m7d47cee871\" y=\"239.758125\"/>\n </g>\n </g>\n <g id=\"text_2\">\n <!-- 10 -->\n <defs>\n <path d=\"M 12.40625 8.296875 \nL 28.515625 8.296875 \nL 28.515625 63.921875 \nL 10.984375 60.40625 \nL 10.984375 69.390625 \nL 28.421875 72.90625 \nL 38.28125 72.90625 \nL 38.28125 8.296875 \nL 54.390625 8.296875 \nL 54.390625 0 \nL 12.40625 0 \nz\n\" id=\"DejaVuSans-49\"/>\n </defs>\n <g transform=\"translate(100.132226 254.356562)scale(0.1 -0.1)\">\n <use xlink:href=\"#DejaVuSans-49\"/>\n <use x=\"63.623047\" xlink:href=\"#DejaVuSans-48\"/>\n </g>\n </g>\n </g>\n <g id=\"xtick_3\">\n <g id=\"line2d_3\">\n <g>\n <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"154.573903\" xlink:href=\"#m7d47cee871\" y=\"239.758125\"/>\n </g>\n </g>\n <g id=\"text_3\">\n <!-- 20 -->\n <defs>\n <path d=\"M 19.1875 8.296875 \nL 53.609375 8.296875 \nL 53.609375 0 \nL 7.328125 0 \nL 7.328125 8.296875 \nQ 12.9375 14.109375 22.625 23.890625 \nQ 32.328125 33.6875 34.8125 36.53125 \nQ 39.546875 41.84375 41.421875 45.53125 \nQ 43.3125 49.21875 43.3125 52.78125 \nQ 43.3125 58.59375 39.234375 62.25 \nQ 35.15625 65.921875 28.609375 65.921875 \nQ 23.96875 65.921875 18.8125 64.3125 \nQ 13.671875 62.703125 7.8125 59.421875 \nL 7.8125 69.390625 \nQ 13.765625 71.78125 18.9375 73 \nQ 24.125 74.21875 28.421875 74.21875 \nQ 39.75 74.21875 46.484375 68.546875 \nQ 53.21875 62.890625 53.21875 53.421875 \nQ 53.21875 48.921875 51.53125 44.890625 \nQ 49.859375 40.875 45.40625 35.40625 \nQ 44.1875 33.984375 37.640625 27.21875 \nQ 31.109375 20.453125 19.1875 8.296875 \nz\n\" id=\"DejaVuSans-50\"/>\n </defs>\n <g transform=\"translate(148.211403 254.356562)scale(0.1 -0.1)\">\n <use xlink:href=\"#DejaVuSans-50\"/>\n <use x=\"63.623047\" xlink:href=\"#DejaVuSans-48\"/>\n </g>\n </g>\n </g>\n <g id=\"xtick_4\">\n <g id=\"line2d_4\">\n <g>\n <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"202.65308\" xlink:href=\"#m7d47cee871\" y=\"239.758125\"/>\n </g>\n </g>\n <g id=\"text_4\">\n <!-- 30 -->\n <defs>\n <path d=\"M 40.578125 39.3125 \nQ 47.65625 37.796875 51.625 33 \nQ 55.609375 28.21875 55.609375 21.1875 \nQ 55.609375 10.40625 48.1875 4.484375 \nQ 40.765625 -1.421875 27.09375 -1.421875 \nQ 22.515625 -1.421875 17.65625 -0.515625 \nQ 12.796875 0.390625 7.625 2.203125 \nL 7.625 11.71875 \nQ 11.71875 9.328125 16.59375 8.109375 \nQ 21.484375 6.890625 26.8125 6.890625 \nQ 36.078125 6.890625 40.9375 10.546875 \nQ 45.796875 14.203125 45.796875 21.1875 \nQ 45.796875 27.640625 41.28125 31.265625 \nQ 36.765625 34.90625 28.71875 34.90625 \nL 20.21875 34.90625 \nL 20.21875 43.015625 \nL 29.109375 43.015625 \nQ 36.375 43.015625 40.234375 45.921875 \nQ 44.09375 48.828125 44.09375 54.296875 \nQ 44.09375 59.90625 40.109375 62.90625 \nQ 36.140625 65.921875 28.71875 65.921875 \nQ 24.65625 65.921875 20.015625 65.03125 \nQ 15.375 64.15625 9.8125 62.3125 \nL 9.8125 71.09375 \nQ 15.4375 72.65625 20.34375 73.4375 \nQ 25.25 74.21875 29.59375 74.21875 \nQ 40.828125 74.21875 47.359375 69.109375 \nQ 53.90625 64.015625 53.90625 55.328125 \nQ 53.90625 49.265625 50.4375 45.09375 \nQ 46.96875 40.921875 40.578125 39.3125 \nz\n\" id=\"DejaVuSans-51\"/>\n </defs>\n <g transform=\"translate(196.29058 254.356562)scale(0.1 -0.1)\">\n <use xlink:href=\"#DejaVuSans-51\"/>\n <use x=\"63.623047\" xlink:href=\"#DejaVuSans-48\"/>\n </g>\n </g>\n </g>\n <g id=\"xtick_5\">\n <g id=\"line2d_5\">\n <g>\n <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"250.732257\" xlink:href=\"#m7d47cee871\" y=\"239.758125\"/>\n </g>\n </g>\n <g id=\"text_5\">\n <!-- 40 -->\n <defs>\n <path d=\"M 37.796875 64.3125 \nL 12.890625 25.390625 \nL 37.796875 25.390625 \nz\nM 35.203125 72.90625 \nL 47.609375 72.90625 \nL 47.609375 25.390625 \nL 58.015625 25.390625 \nL 58.015625 17.1875 \nL 47.609375 17.1875 \nL 47.609375 0 \nL 37.796875 0 \nL 37.796875 17.1875 \nL 4.890625 17.1875 \nL 4.890625 26.703125 \nz\n\" id=\"DejaVuSans-52\"/>\n </defs>\n <g transform=\"translate(244.369757 254.356562)scale(0.1 -0.1)\">\n <use xlink:href=\"#DejaVuSans-52\"/>\n <use x=\"63.623047\" xlink:href=\"#DejaVuSans-48\"/>\n </g>\n </g>\n </g>\n <g id=\"xtick_6\">\n <g id=\"line2d_6\">\n <g>\n <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"298.811434\" xlink:href=\"#m7d47cee871\" y=\"239.758125\"/>\n </g>\n </g>\n <g id=\"text_6\">\n <!-- 50 -->\n <defs>\n <path d=\"M 10.796875 72.90625 \nL 49.515625 72.90625 \nL 49.515625 64.59375 \nL 19.828125 64.59375 \nL 19.828125 46.734375 \nQ 21.96875 47.46875 24.109375 47.828125 \nQ 26.265625 48.1875 28.421875 48.1875 \nQ 40.625 48.1875 47.75 41.5 \nQ 54.890625 34.8125 54.890625 23.390625 \nQ 54.890625 11.625 47.5625 5.09375 \nQ 40.234375 -1.421875 26.90625 -1.421875 \nQ 22.3125 -1.421875 17.546875 -0.640625 \nQ 12.796875 0.140625 7.71875 1.703125 \nL 7.71875 11.625 \nQ 12.109375 9.234375 16.796875 8.0625 \nQ 21.484375 6.890625 26.703125 6.890625 \nQ 35.15625 6.890625 40.078125 11.328125 \nQ 45.015625 15.765625 45.015625 23.390625 \nQ 45.015625 31 40.078125 35.4375 \nQ 35.15625 39.890625 26.703125 39.890625 \nQ 22.75 39.890625 18.8125 39.015625 \nQ 14.890625 38.140625 10.796875 36.28125 \nz\n\" id=\"DejaVuSans-53\"/>\n </defs>\n <g transform=\"translate(292.448934 254.356562)scale(0.1 -0.1)\">\n <use xlink:href=\"#DejaVuSans-53\"/>\n <use x=\"63.623047\" xlink:href=\"#DejaVuSans-48\"/>\n </g>\n </g>\n </g>\n <g id=\"xtick_7\">\n <g id=\"line2d_7\">\n <g>\n <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"346.890611\" xlink:href=\"#m7d47cee871\" y=\"239.758125\"/>\n </g>\n </g>\n <g id=\"text_7\">\n <!-- 60 -->\n <defs>\n <path d=\"M 33.015625 40.375 \nQ 26.375 40.375 22.484375 35.828125 \nQ 18.609375 31.296875 18.609375 23.390625 \nQ 18.609375 15.53125 22.484375 10.953125 \nQ 26.375 6.390625 33.015625 6.390625 \nQ 39.65625 6.390625 43.53125 10.953125 \nQ 47.40625 15.53125 47.40625 23.390625 \nQ 47.40625 31.296875 43.53125 35.828125 \nQ 39.65625 40.375 33.015625 40.375 \nz\nM 52.59375 71.296875 \nL 52.59375 62.3125 \nQ 48.875 64.0625 45.09375 64.984375 \nQ 41.3125 65.921875 37.59375 65.921875 \nQ 27.828125 65.921875 22.671875 59.328125 \nQ 17.53125 52.734375 16.796875 39.40625 \nQ 19.671875 43.65625 24.015625 45.921875 \nQ 28.375 48.1875 33.59375 48.1875 \nQ 44.578125 48.1875 50.953125 41.515625 \nQ 57.328125 34.859375 57.328125 23.390625 \nQ 57.328125 12.15625 50.6875 5.359375 \nQ 44.046875 -1.421875 33.015625 -1.421875 \nQ 20.359375 -1.421875 13.671875 8.265625 \nQ 6.984375 17.96875 6.984375 36.375 \nQ 6.984375 53.65625 15.1875 63.9375 \nQ 23.390625 74.21875 37.203125 74.21875 \nQ 40.921875 74.21875 44.703125 73.484375 \nQ 48.484375 72.75 52.59375 71.296875 \nz\n\" id=\"DejaVuSans-54\"/>\n </defs>\n <g transform=\"translate(340.528111 254.356562)scale(0.1 -0.1)\">\n <use xlink:href=\"#DejaVuSans-54\"/>\n <use x=\"63.623047\" xlink:href=\"#DejaVuSans-48\"/>\n </g>\n </g>\n </g>\n <g id=\"text_8\">\n <!-- Wall Clock Time (s) -->\n <defs>\n <path d=\"M 3.328125 72.90625 \nL 13.28125 72.90625 \nL 28.609375 11.28125 \nL 43.890625 72.90625 \nL 54.984375 72.90625 \nL 70.3125 11.28125 \nL 85.59375 72.90625 \nL 95.609375 72.90625 \nL 77.296875 0 \nL 64.890625 0 \nL 49.515625 63.28125 \nL 33.984375 0 \nL 21.578125 0 \nz\n\" id=\"DejaVuSans-87\"/>\n <path d=\"M 34.28125 27.484375 \nQ 23.390625 27.484375 19.1875 25 \nQ 14.984375 22.515625 14.984375 16.5 \nQ 14.984375 11.71875 18.140625 8.90625 \nQ 21.296875 6.109375 26.703125 6.109375 \nQ 34.1875 6.109375 38.703125 11.40625 \nQ 43.21875 16.703125 43.21875 25.484375 \nL 43.21875 27.484375 \nz\nM 52.203125 31.203125 \nL 52.203125 0 \nL 43.21875 0 \nL 43.21875 8.296875 \nQ 40.140625 3.328125 35.546875 0.953125 \nQ 30.953125 -1.421875 24.3125 -1.421875 \nQ 15.921875 -1.421875 10.953125 3.296875 \nQ 6 8.015625 6 15.921875 \nQ 6 25.140625 12.171875 29.828125 \nQ 18.359375 34.515625 30.609375 34.515625 \nL 43.21875 34.515625 \nL 43.21875 35.40625 \nQ 43.21875 41.609375 39.140625 45 \nQ 35.0625 48.390625 27.6875 48.390625 \nQ 23 48.390625 18.546875 47.265625 \nQ 14.109375 46.140625 10.015625 43.890625 \nL 10.015625 52.203125 \nQ 14.9375 54.109375 19.578125 55.046875 \nQ 24.21875 56 28.609375 56 \nQ 40.484375 56 46.34375 49.84375 \nQ 52.203125 43.703125 52.203125 31.203125 \nz\n\" id=\"DejaVuSans-97\"/>\n <path d=\"M 9.421875 75.984375 \nL 18.40625 75.984375 \nL 18.40625 0 \nL 9.421875 0 \nz\n\" id=\"DejaVuSans-108\"/>\n <path id=\"DejaVuSans-32\"/>\n <path d=\"M 64.40625 67.28125 \nL 64.40625 56.890625 \nQ 59.421875 61.53125 53.78125 63.8125 \nQ 48.140625 66.109375 41.796875 66.109375 \nQ 29.296875 66.109375 22.65625 58.46875 \nQ 16.015625 50.828125 16.015625 36.375 \nQ 16.015625 21.96875 22.65625 14.328125 \nQ 29.296875 6.6875 41.796875 6.6875 \nQ 48.140625 6.6875 53.78125 8.984375 \nQ 59.421875 11.28125 64.40625 15.921875 \nL 64.40625 5.609375 \nQ 59.234375 2.09375 53.4375 0.328125 \nQ 47.65625 -1.421875 41.21875 -1.421875 \nQ 24.65625 -1.421875 15.125 8.703125 \nQ 5.609375 18.84375 5.609375 36.375 \nQ 5.609375 53.953125 15.125 64.078125 \nQ 24.65625 74.21875 41.21875 74.21875 \nQ 47.75 74.21875 53.53125 72.484375 \nQ 59.328125 70.75 64.40625 67.28125 \nz\n\" id=\"DejaVuSans-67\"/>\n <path d=\"M 30.609375 48.390625 \nQ 23.390625 48.390625 19.1875 42.75 \nQ 14.984375 37.109375 14.984375 27.296875 \nQ 14.984375 17.484375 19.15625 11.84375 \nQ 23.34375 6.203125 30.609375 6.203125 \nQ 37.796875 6.203125 41.984375 11.859375 \nQ 46.1875 17.53125 46.1875 27.296875 \nQ 46.1875 37.015625 41.984375 42.703125 \nQ 37.796875 48.390625 30.609375 48.390625 \nz\nM 30.609375 56 \nQ 42.328125 56 49.015625 48.375 \nQ 55.71875 40.765625 55.71875 27.296875 \nQ 55.71875 13.875 49.015625 6.21875 \nQ 42.328125 -1.421875 30.609375 -1.421875 \nQ 18.84375 -1.421875 12.171875 6.21875 \nQ 5.515625 13.875 5.515625 27.296875 \nQ 5.515625 40.765625 12.171875 48.375 \nQ 18.84375 56 30.609375 56 \nz\n\" id=\"DejaVuSans-111\"/>\n <path d=\"M 48.78125 52.59375 \nL 48.78125 44.1875 \nQ 44.96875 46.296875 41.140625 47.34375 \nQ 37.3125 48.390625 33.40625 48.390625 \nQ 24.65625 48.390625 19.8125 42.84375 \nQ 14.984375 37.3125 14.984375 27.296875 \nQ 14.984375 17.28125 19.8125 11.734375 \nQ 24.65625 6.203125 33.40625 6.203125 \nQ 37.3125 6.203125 41.140625 7.25 \nQ 44.96875 8.296875 48.78125 10.40625 \nL 48.78125 2.09375 \nQ 45.015625 0.34375 40.984375 -0.53125 \nQ 36.96875 -1.421875 32.421875 -1.421875 \nQ 20.0625 -1.421875 12.78125 6.34375 \nQ 5.515625 14.109375 5.515625 27.296875 \nQ 5.515625 40.671875 12.859375 48.328125 \nQ 20.21875 56 33.015625 56 \nQ 37.15625 56 41.109375 55.140625 \nQ 45.0625 54.296875 48.78125 52.59375 \nz\n\" id=\"DejaVuSans-99\"/>\n <path d=\"M 9.078125 75.984375 \nL 18.109375 75.984375 \nL 18.109375 31.109375 \nL 44.921875 54.6875 \nL 56.390625 54.6875 \nL 27.390625 29.109375 \nL 57.625 0 \nL 45.90625 0 \nL 18.109375 26.703125 \nL 18.109375 0 \nL 9.078125 0 \nz\n\" id=\"DejaVuSans-107\"/>\n <path d=\"M -0.296875 72.90625 \nL 61.375 72.90625 \nL 61.375 64.59375 \nL 35.5 64.59375 \nL 35.5 0 \nL 25.59375 0 \nL 25.59375 64.59375 \nL -0.296875 64.59375 \nz\n\" id=\"DejaVuSans-84\"/>\n <path d=\"M 9.421875 54.6875 \nL 18.40625 54.6875 \nL 18.40625 0 \nL 9.421875 0 \nz\nM 9.421875 75.984375 \nL 18.40625 75.984375 \nL 18.40625 64.59375 \nL 9.421875 64.59375 \nz\n\" id=\"DejaVuSans-105\"/>\n <path d=\"M 52 44.1875 \nQ 55.375 50.25 60.0625 53.125 \nQ 64.75 56 71.09375 56 \nQ 79.640625 56 84.28125 50.015625 \nQ 88.921875 44.046875 88.921875 33.015625 \nL 88.921875 0 \nL 79.890625 0 \nL 79.890625 32.71875 \nQ 79.890625 40.578125 77.09375 44.375 \nQ 74.3125 48.1875 68.609375 48.1875 \nQ 61.625 48.1875 57.5625 43.546875 \nQ 53.515625 38.921875 53.515625 30.90625 \nL 53.515625 0 \nL 44.484375 0 \nL 44.484375 32.71875 \nQ 44.484375 40.625 41.703125 44.40625 \nQ 38.921875 48.1875 33.109375 48.1875 \nQ 26.21875 48.1875 22.15625 43.53125 \nQ 18.109375 38.875 18.109375 30.90625 \nL 18.109375 0 \nL 9.078125 0 \nL 9.078125 54.6875 \nL 18.109375 54.6875 \nL 18.109375 46.1875 \nQ 21.1875 51.21875 25.484375 53.609375 \nQ 29.78125 56 35.6875 56 \nQ 41.65625 56 45.828125 52.96875 \nQ 50 49.953125 52 44.1875 \nz\n\" id=\"DejaVuSans-109\"/>\n <path d=\"M 56.203125 29.59375 \nL 56.203125 25.203125 \nL 14.890625 25.203125 \nQ 15.484375 15.921875 20.484375 11.0625 \nQ 25.484375 6.203125 34.421875 6.203125 \nQ 39.59375 6.203125 44.453125 7.46875 \nQ 49.3125 8.734375 54.109375 11.28125 \nL 54.109375 2.78125 \nQ 49.265625 0.734375 44.1875 -0.34375 \nQ 39.109375 -1.421875 33.890625 -1.421875 \nQ 20.796875 -1.421875 13.15625 6.1875 \nQ 5.515625 13.8125 5.515625 26.8125 \nQ 5.515625 40.234375 12.765625 48.109375 \nQ 20.015625 56 32.328125 56 \nQ 43.359375 56 49.78125 48.890625 \nQ 56.203125 41.796875 56.203125 29.59375 \nz\nM 47.21875 32.234375 \nQ 47.125 39.59375 43.09375 43.984375 \nQ 39.0625 48.390625 32.421875 48.390625 \nQ 24.90625 48.390625 20.390625 44.140625 \nQ 15.875 39.890625 15.1875 32.171875 \nz\n\" id=\"DejaVuSans-101\"/>\n <path d=\"M 31 75.875 \nQ 24.46875 64.65625 21.28125 53.65625 \nQ 18.109375 42.671875 18.109375 31.390625 \nQ 18.109375 20.125 21.3125 9.0625 \nQ 24.515625 -2 31 -13.1875 \nL 23.1875 -13.1875 \nQ 15.875 -1.703125 12.234375 9.375 \nQ 8.59375 20.453125 8.59375 31.390625 \nQ 8.59375 42.28125 12.203125 53.3125 \nQ 15.828125 64.359375 23.1875 75.875 \nz\n\" id=\"DejaVuSans-40\"/>\n <path d=\"M 44.28125 53.078125 \nL 44.28125 44.578125 \nQ 40.484375 46.53125 36.375 47.5 \nQ 32.28125 48.484375 27.875 48.484375 \nQ 21.1875 48.484375 17.84375 46.4375 \nQ 14.5 44.390625 14.5 40.28125 \nQ 14.5 37.15625 16.890625 35.375 \nQ 19.28125 33.59375 26.515625 31.984375 \nL 29.59375 31.296875 \nQ 39.15625 29.25 43.1875 25.515625 \nQ 47.21875 21.78125 47.21875 15.09375 \nQ 47.21875 7.46875 41.1875 3.015625 \nQ 35.15625 -1.421875 24.609375 -1.421875 \nQ 20.21875 -1.421875 15.453125 -0.5625 \nQ 10.6875 0.296875 5.421875 2 \nL 5.421875 11.28125 \nQ 10.40625 8.6875 15.234375 7.390625 \nQ 20.0625 6.109375 24.8125 6.109375 \nQ 31.15625 6.109375 34.5625 8.28125 \nQ 37.984375 10.453125 37.984375 14.40625 \nQ 37.984375 18.0625 35.515625 20.015625 \nQ 33.0625 21.96875 24.703125 23.78125 \nL 21.578125 24.515625 \nQ 13.234375 26.265625 9.515625 29.90625 \nQ 5.8125 33.546875 5.8125 39.890625 \nQ 5.8125 47.609375 11.28125 51.796875 \nQ 16.75 56 26.8125 56 \nQ 31.78125 56 36.171875 55.265625 \nQ 40.578125 54.546875 44.28125 53.078125 \nz\n\" id=\"DejaVuSans-115\"/>\n <path d=\"M 8.015625 75.875 \nL 15.828125 75.875 \nQ 23.140625 64.359375 26.78125 53.3125 \nQ 30.421875 42.28125 30.421875 31.390625 \nQ 30.421875 20.453125 26.78125 9.375 \nQ 23.140625 -1.703125 15.828125 -13.1875 \nL 8.015625 -13.1875 \nQ 14.5 -2 17.703125 9.0625 \nQ 20.90625 20.125 20.90625 31.390625 \nQ 20.90625 42.671875 17.703125 53.65625 \nQ 14.5 64.65625 8.015625 75.875 \nz\n\" id=\"DejaVuSans-41\"/>\n </defs>\n <g transform=\"translate(169.985156 268.034687)scale(0.1 -0.1)\">\n <use xlink:href=\"#DejaVuSans-87\"/>\n <use x=\"92.501953\" xlink:href=\"#DejaVuSans-97\"/>\n <use x=\"153.78125\" xlink:href=\"#DejaVuSans-108\"/>\n <use x=\"181.564453\" xlink:href=\"#DejaVuSans-108\"/>\n <use x=\"209.347656\" xlink:href=\"#DejaVuSans-32\"/>\n <use x=\"241.134766\" xlink:href=\"#DejaVuSans-67\"/>\n <use x=\"310.958984\" xlink:href=\"#DejaVuSans-108\"/>\n <use x=\"338.742188\" xlink:href=\"#DejaVuSans-111\"/>\n <use x=\"399.923828\" xlink:href=\"#DejaVuSans-99\"/>\n <use x=\"454.904297\" xlink:href=\"#DejaVuSans-107\"/>\n <use x=\"512.814453\" xlink:href=\"#DejaVuSans-32\"/>\n <use x=\"544.601562\" xlink:href=\"#DejaVuSans-84\"/>\n <use x=\"602.560547\" xlink:href=\"#DejaVuSans-105\"/>\n <use x=\"630.34375\" xlink:href=\"#DejaVuSans-109\"/>\n <use x=\"727.755859\" xlink:href=\"#DejaVuSans-101\"/>\n <use x=\"789.279297\" xlink:href=\"#DejaVuSans-32\"/>\n <use x=\"821.066406\" xlink:href=\"#DejaVuSans-40\"/>\n <use x=\"860.080078\" xlink:href=\"#DejaVuSans-115\"/>\n <use x=\"912.179688\" xlink:href=\"#DejaVuSans-41\"/>\n </g>\n </g>\n </g>\n <g id=\"matplotlib.axis_2\">\n <g id=\"ytick_1\">\n <g id=\"line2d_8\">\n <defs>\n <path d=\"M 0 0 \nL -3.5 0 \n\" id=\"mb162578b49\" style=\"stroke:#000000;stroke-width:0.8;\"/>\n </defs>\n <g>\n <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"50.14375\" xlink:href=\"#mb162578b49\" y=\"239.545783\"/>\n </g>\n </g>\n <g id=\"text_9\">\n <!-- 0.62 -->\n <defs>\n <path d=\"M 10.6875 12.40625 \nL 21 12.40625 \nL 21 0 \nL 10.6875 0 \nz\n\" id=\"DejaVuSans-46\"/>\n </defs>\n <g transform=\"translate(20.878125 243.345002)scale(0.1 -0.1)\">\n <use xlink:href=\"#DejaVuSans-48\"/>\n <use x=\"63.623047\" xlink:href=\"#DejaVuSans-46\"/>\n <use x=\"95.410156\" xlink:href=\"#DejaVuSans-54\"/>\n <use x=\"159.033203\" xlink:href=\"#DejaVuSans-50\"/>\n </g>\n </g>\n </g>\n <g id=\"ytick_2\">\n <g id=\"line2d_9\">\n <g>\n <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"50.14375\" xlink:href=\"#mb162578b49\" y=\"198.045794\"/>\n </g>\n </g>\n <g id=\"text_10\">\n <!-- 0.63 -->\n <g transform=\"translate(20.878125 201.845013)scale(0.1 -0.1)\">\n <use xlink:href=\"#DejaVuSans-48\"/>\n <use x=\"63.623047\" xlink:href=\"#DejaVuSans-46\"/>\n <use x=\"95.410156\" xlink:href=\"#DejaVuSans-54\"/>\n <use x=\"159.033203\" xlink:href=\"#DejaVuSans-51\"/>\n </g>\n </g>\n </g>\n <g id=\"ytick_3\">\n <g id=\"line2d_10\">\n <g>\n <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"50.14375\" xlink:href=\"#mb162578b49\" y=\"156.545806\"/>\n </g>\n </g>\n <g id=\"text_11\">\n <!-- 0.64 -->\n <g transform=\"translate(20.878125 160.345024)scale(0.1 -0.1)\">\n <use xlink:href=\"#DejaVuSans-48\"/>\n <use x=\"63.623047\" xlink:href=\"#DejaVuSans-46\"/>\n <use x=\"95.410156\" xlink:href=\"#DejaVuSans-54\"/>\n <use x=\"159.033203\" xlink:href=\"#DejaVuSans-52\"/>\n </g>\n </g>\n </g>\n <g id=\"ytick_4\">\n <g id=\"line2d_11\">\n <g>\n <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"50.14375\" xlink:href=\"#mb162578b49\" y=\"115.045817\"/>\n </g>\n </g>\n <g id=\"text_12\">\n <!-- 0.65 -->\n <g transform=\"translate(20.878125 118.845035)scale(0.1 -0.1)\">\n <use xlink:href=\"#DejaVuSans-48\"/>\n <use x=\"63.623047\" xlink:href=\"#DejaVuSans-46\"/>\n <use x=\"95.410156\" xlink:href=\"#DejaVuSans-54\"/>\n <use x=\"159.033203\" xlink:href=\"#DejaVuSans-53\"/>\n </g>\n </g>\n </g>\n <g id=\"ytick_5\">\n <g id=\"line2d_12\">\n <g>\n <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"50.14375\" xlink:href=\"#mb162578b49\" y=\"73.545828\"/>\n </g>\n </g>\n <g id=\"text_13\">\n <!-- 0.66 -->\n <g transform=\"translate(20.878125 77.345047)scale(0.1 -0.1)\">\n <use xlink:href=\"#DejaVuSans-48\"/>\n <use x=\"63.623047\" xlink:href=\"#DejaVuSans-46\"/>\n <use x=\"95.410156\" xlink:href=\"#DejaVuSans-54\"/>\n <use x=\"159.033203\" xlink:href=\"#DejaVuSans-54\"/>\n </g>\n </g>\n </g>\n <g id=\"ytick_6\">\n <g id=\"line2d_13\">\n <g>\n <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"50.14375\" xlink:href=\"#mb162578b49\" y=\"32.045839\"/>\n </g>\n </g>\n <g id=\"text_14\">\n <!-- 0.67 -->\n <defs>\n <path d=\"M 8.203125 72.90625 \nL 55.078125 72.90625 \nL 55.078125 68.703125 \nL 28.609375 0 \nL 18.3125 0 \nL 43.21875 64.59375 \nL 8.203125 64.59375 \nz\n\" id=\"DejaVuSans-55\"/>\n </defs>\n <g transform=\"translate(20.878125 35.845058)scale(0.1 -0.1)\">\n <use xlink:href=\"#DejaVuSans-48\"/>\n <use x=\"63.623047\" xlink:href=\"#DejaVuSans-46\"/>\n <use x=\"95.410156\" xlink:href=\"#DejaVuSans-54\"/>\n <use x=\"159.033203\" xlink:href=\"#DejaVuSans-55\"/>\n </g>\n </g>\n </g>\n <g id=\"text_15\">\n <!-- Validation Accuracy -->\n <defs>\n <path d=\"M 28.609375 0 \nL 0.78125 72.90625 \nL 11.078125 72.90625 \nL 34.1875 11.53125 \nL 57.328125 72.90625 \nL 67.578125 72.90625 \nL 39.796875 0 \nz\n\" id=\"DejaVuSans-86\"/>\n <path d=\"M 45.40625 46.390625 \nL 45.40625 75.984375 \nL 54.390625 75.984375 \nL 54.390625 0 \nL 45.40625 0 \nL 45.40625 8.203125 \nQ 42.578125 3.328125 38.25 0.953125 \nQ 33.9375 -1.421875 27.875 -1.421875 \nQ 17.96875 -1.421875 11.734375 6.484375 \nQ 5.515625 14.40625 5.515625 27.296875 \nQ 5.515625 40.1875 11.734375 48.09375 \nQ 17.96875 56 27.875 56 \nQ 33.9375 56 38.25 53.625 \nQ 42.578125 51.265625 45.40625 46.390625 \nz\nM 14.796875 27.296875 \nQ 14.796875 17.390625 18.875 11.75 \nQ 22.953125 6.109375 30.078125 6.109375 \nQ 37.203125 6.109375 41.296875 11.75 \nQ 45.40625 17.390625 45.40625 27.296875 \nQ 45.40625 37.203125 41.296875 42.84375 \nQ 37.203125 48.484375 30.078125 48.484375 \nQ 22.953125 48.484375 18.875 42.84375 \nQ 14.796875 37.203125 14.796875 27.296875 \nz\n\" id=\"DejaVuSans-100\"/>\n <path d=\"M 18.3125 70.21875 \nL 18.3125 54.6875 \nL 36.8125 54.6875 \nL 36.8125 47.703125 \nL 18.3125 47.703125 \nL 18.3125 18.015625 \nQ 18.3125 11.328125 20.140625 9.421875 \nQ 21.96875 7.515625 27.59375 7.515625 \nL 36.8125 7.515625 \nL 36.8125 0 \nL 27.59375 0 \nQ 17.1875 0 13.234375 3.875 \nQ 9.28125 7.765625 9.28125 18.015625 \nL 9.28125 47.703125 \nL 2.6875 47.703125 \nL 2.6875 54.6875 \nL 9.28125 54.6875 \nL 9.28125 70.21875 \nz\n\" id=\"DejaVuSans-116\"/>\n <path d=\"M 54.890625 33.015625 \nL 54.890625 0 \nL 45.90625 0 \nL 45.90625 32.71875 \nQ 45.90625 40.484375 42.875 44.328125 \nQ 39.84375 48.1875 33.796875 48.1875 \nQ 26.515625 48.1875 22.3125 43.546875 \nQ 18.109375 38.921875 18.109375 30.90625 \nL 18.109375 0 \nL 9.078125 0 \nL 9.078125 54.6875 \nL 18.109375 54.6875 \nL 18.109375 46.1875 \nQ 21.34375 51.125 25.703125 53.5625 \nQ 30.078125 56 35.796875 56 \nQ 45.21875 56 50.046875 50.171875 \nQ 54.890625 44.34375 54.890625 33.015625 \nz\n\" id=\"DejaVuSans-110\"/>\n <path d=\"M 34.1875 63.1875 \nL 20.796875 26.90625 \nL 47.609375 26.90625 \nz\nM 28.609375 72.90625 \nL 39.796875 72.90625 \nL 67.578125 0 \nL 57.328125 0 \nL 50.6875 18.703125 \nL 17.828125 18.703125 \nL 11.1875 0 \nL 0.78125 0 \nz\n\" id=\"DejaVuSans-65\"/>\n <path d=\"M 8.5 21.578125 \nL 8.5 54.6875 \nL 17.484375 54.6875 \nL 17.484375 21.921875 \nQ 17.484375 14.15625 20.5 10.265625 \nQ 23.53125 6.390625 29.59375 6.390625 \nQ 36.859375 6.390625 41.078125 11.03125 \nQ 45.3125 15.671875 45.3125 23.6875 \nL 45.3125 54.6875 \nL 54.296875 54.6875 \nL 54.296875 0 \nL 45.3125 0 \nL 45.3125 8.40625 \nQ 42.046875 3.421875 37.71875 1 \nQ 33.40625 -1.421875 27.6875 -1.421875 \nQ 18.265625 -1.421875 13.375 4.4375 \nQ 8.5 10.296875 8.5 21.578125 \nz\nM 31.109375 56 \nz\n\" id=\"DejaVuSans-117\"/>\n <path d=\"M 41.109375 46.296875 \nQ 39.59375 47.171875 37.8125 47.578125 \nQ 36.03125 48 33.890625 48 \nQ 26.265625 48 22.1875 43.046875 \nQ 18.109375 38.09375 18.109375 28.8125 \nL 18.109375 0 \nL 9.078125 0 \nL 9.078125 54.6875 \nL 18.109375 54.6875 \nL 18.109375 46.1875 \nQ 20.953125 51.171875 25.484375 53.578125 \nQ 30.03125 56 36.53125 56 \nQ 37.453125 56 38.578125 55.875 \nQ 39.703125 55.765625 41.0625 55.515625 \nz\n\" id=\"DejaVuSans-114\"/>\n <path d=\"M 32.171875 -5.078125 \nQ 28.375 -14.84375 24.75 -17.8125 \nQ 21.140625 -20.796875 15.09375 -20.796875 \nL 7.90625 -20.796875 \nL 7.90625 -13.28125 \nL 13.1875 -13.28125 \nQ 16.890625 -13.28125 18.9375 -11.515625 \nQ 21 -9.765625 23.484375 -3.21875 \nL 25.09375 0.875 \nL 2.984375 54.6875 \nL 12.5 54.6875 \nL 29.59375 11.921875 \nL 46.6875 54.6875 \nL 56.203125 54.6875 \nz\n\" id=\"DejaVuSans-121\"/>\n </defs>\n <g transform=\"translate(14.798438 180.145937)rotate(-90)scale(0.1 -0.1)\">\n <use xlink:href=\"#DejaVuSans-86\"/>\n <use x=\"60.658203\" xlink:href=\"#DejaVuSans-97\"/>\n <use x=\"121.9375\" xlink:href=\"#DejaVuSans-108\"/>\n <use x=\"149.720703\" xlink:href=\"#DejaVuSans-105\"/>\n <use x=\"177.503906\" xlink:href=\"#DejaVuSans-100\"/>\n <use x=\"240.980469\" xlink:href=\"#DejaVuSans-97\"/>\n <use x=\"302.259766\" xlink:href=\"#DejaVuSans-116\"/>\n <use x=\"341.46875\" xlink:href=\"#DejaVuSans-105\"/>\n <use x=\"369.251953\" xlink:href=\"#DejaVuSans-111\"/>\n <use x=\"430.433594\" xlink:href=\"#DejaVuSans-110\"/>\n <use x=\"493.8125\" xlink:href=\"#DejaVuSans-32\"/>\n <use x=\"525.599609\" xlink:href=\"#DejaVuSans-65\"/>\n <use x=\"592.257812\" xlink:href=\"#DejaVuSans-99\"/>\n <use x=\"647.238281\" xlink:href=\"#DejaVuSans-99\"/>\n <use x=\"702.21875\" xlink:href=\"#DejaVuSans-117\"/>\n <use x=\"765.597656\" xlink:href=\"#DejaVuSans-114\"/>\n <use x=\"806.710938\" xlink:href=\"#DejaVuSans-97\"/>\n <use x=\"867.990234\" xlink:href=\"#DejaVuSans-99\"/>\n <use x=\"922.970703\" xlink:href=\"#DejaVuSans-121\"/>\n </g>\n </g>\n </g>\n <g id=\"line2d_14\">\n <path clip-path=\"url(#p67affc388f)\" d=\"M 65.361932 229.874489 \nL 67.475284 229.874489 \nL 67.475284 181.866789 \nL 70.521562 181.866789 \nL 70.521562 175.096473 \nL 72.871654 175.096473 \nL 72.871654 160.735195 \nL 87.311462 160.735195 \nL 87.311462 158.273262 \nL 89.835333 158.273262 \nL 89.835333 133.551349 \nL 94.247802 133.551349 \nL 94.247802 124.62684 \nL 122.20591 124.62684 \nL 122.20591 104.828793 \nL 166.896725 104.828793 \nL 166.896725 102.36686 \nL 190.136353 102.36686 \nL 190.136353 96.314608 \nL 237.166905 96.314608 \nL 237.166905 91.801063 \nL 324.748392 91.801063 \nL 324.748392 55.282386 \nL 369.725568 55.282386 \nL 369.725568 32.201761 \n\" style=\"fill:none;stroke:#1f77b4;stroke-linecap:square;stroke-width:1.5;\"/>\n </g>\n <g id=\"patch_3\">\n <path d=\"M 50.14375 239.758125 \nL 50.14375 22.318125 \n\" style=\"fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;\"/>\n </g>\n <g id=\"patch_4\">\n <path d=\"M 384.94375 239.758125 \nL 384.94375 22.318125 \n\" style=\"fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;\"/>\n </g>\n <g id=\"patch_5\">\n <path d=\"M 50.14375 239.758125 \nL 384.94375 239.758125 \n\" style=\"fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;\"/>\n </g>\n <g id=\"patch_6\">\n <path d=\"M 50.14375 22.318125 \nL 384.94375 22.318125 \n\" style=\"fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;\"/>\n </g>\n <g id=\"text_16\">\n <!-- Learning Curve -->\n <defs>\n <path d=\"M 9.8125 72.90625 \nL 19.671875 72.90625 \nL 19.671875 8.296875 \nL 55.171875 8.296875 \nL 55.171875 0 \nL 9.8125 0 \nz\n\" id=\"DejaVuSans-76\"/>\n <path d=\"M 45.40625 27.984375 \nQ 45.40625 37.75 41.375 43.109375 \nQ 37.359375 48.484375 30.078125 48.484375 \nQ 22.859375 48.484375 18.828125 43.109375 \nQ 14.796875 37.75 14.796875 27.984375 \nQ 14.796875 18.265625 18.828125 12.890625 \nQ 22.859375 7.515625 30.078125 7.515625 \nQ 37.359375 7.515625 41.375 12.890625 \nQ 45.40625 18.265625 45.40625 27.984375 \nz\nM 54.390625 6.78125 \nQ 54.390625 -7.171875 48.1875 -13.984375 \nQ 42 -20.796875 29.203125 -20.796875 \nQ 24.46875 -20.796875 20.265625 -20.09375 \nQ 16.0625 -19.390625 12.109375 -17.921875 \nL 12.109375 -9.1875 \nQ 16.0625 -11.328125 19.921875 -12.34375 \nQ 23.78125 -13.375 27.78125 -13.375 \nQ 36.625 -13.375 41.015625 -8.765625 \nQ 45.40625 -4.15625 45.40625 5.171875 \nL 45.40625 9.625 \nQ 42.625 4.78125 38.28125 2.390625 \nQ 33.9375 0 27.875 0 \nQ 17.828125 0 11.671875 7.65625 \nQ 5.515625 15.328125 5.515625 27.984375 \nQ 5.515625 40.671875 11.671875 48.328125 \nQ 17.828125 56 27.875 56 \nQ 33.9375 56 38.28125 53.609375 \nQ 42.625 51.21875 45.40625 46.390625 \nL 45.40625 54.6875 \nL 54.390625 54.6875 \nz\n\" id=\"DejaVuSans-103\"/>\n <path d=\"M 2.984375 54.6875 \nL 12.5 54.6875 \nL 29.59375 8.796875 \nL 46.6875 54.6875 \nL 56.203125 54.6875 \nL 35.6875 0 \nL 23.484375 0 \nz\n\" id=\"DejaVuSans-118\"/>\n </defs>\n <g transform=\"translate(171.885625 16.318125)scale(0.12 -0.12)\">\n <use xlink:href=\"#DejaVuSans-76\"/>\n <use x=\"53.962891\" xlink:href=\"#DejaVuSans-101\"/>\n <use x=\"115.486328\" xlink:href=\"#DejaVuSans-97\"/>\n <use x=\"176.765625\" xlink:href=\"#DejaVuSans-114\"/>\n <use x=\"216.128906\" xlink:href=\"#DejaVuSans-110\"/>\n <use x=\"279.507812\" xlink:href=\"#DejaVuSans-105\"/>\n <use x=\"307.291016\" xlink:href=\"#DejaVuSans-110\"/>\n <use x=\"370.669922\" xlink:href=\"#DejaVuSans-103\"/>\n <use x=\"434.146484\" xlink:href=\"#DejaVuSans-32\"/>\n <use x=\"465.933594\" xlink:href=\"#DejaVuSans-67\"/>\n <use x=\"535.757812\" xlink:href=\"#DejaVuSans-117\"/>\n <use x=\"599.136719\" xlink:href=\"#DejaVuSans-114\"/>\n <use x=\"640.25\" xlink:href=\"#DejaVuSans-118\"/>\n <use x=\"699.429688\" xlink:href=\"#DejaVuSans-101\"/>\n </g>\n </g>\n </g>\n </g>\n <defs>\n <clipPath id=\"p67affc388f\">\n <rect height=\"217.44\" width=\"334.8\" x=\"50.14375\" y=\"22.318125\"/>\n </clipPath>\n </defs>\n</svg>\n",
+ "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYgAAAEWCAYAAAB8LwAVAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4yLjAsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy8GearUAAAgAElEQVR4nO3de5hddX3v8fcnk5CMxTBgAk2GS8IhicYGE40o4gVoMZFHSUREsBfFFrReji01lNRKLRwFm2qPfUy1wYMUFUXSOEZNiRQQWm5JIJjL0GBMkMwETYCMIowkmXzPH2vtsLJZM7MSZs2ePfvzep79zF6/dftO2Ozv/H7rd1FEYGZmVm1ErQMwM7OhyQnCzMxyOUGYmVkuJwgzM8vlBGFmZrmcIMzMLJcThNkhkPQmSZtqHYdZmZwgrO5IelTSH9Qyhoj4r4iYVtb1Jc2RdJekpyXtlHSnpHPKup9ZHicIsxySmmp47/OAm4EbgGOBY4ArgHccwrUkyf+f2yHxB8eGDUkjJF0u6WeSnpT0HUlHZfbfLOkXkn6V/nX+ysy+6yV9WdIKSc8AZ6Q1lU9IWpeec5OkMenxp0vqyJzf67Hp/sskPS5pu6Q/kxSSTsr5HQR8AbgqIr4aEb+KiH0RcWdEXJwe82lJ38icMym93sh0+8eSPiPpbuBZYIGkNVX3+UtJy9P3oyX9o6THJP1S0lckNb/I/xw2DDhB2HDyMWA+8BZgIrALWJzZ/x/AFOBo4EHgm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BsjYj1EbGPZOqJ29JrrSdZNwSS+YouT6cp/zEwBji+6joTSKahrrgX+BtJfw2cEBHdafw9wO7KfEjWmJwgrJ5UnkPMIPkL9z6SGsQbgHskjQH+BTgvImaQtLOPKXjtzcDxksYOeNTJX/yvqa5VHKTnMu/3Zbb38XxLgIB3ZZ5jHB8R2RXlALrJ/JtExI0ktZBuYIWkMzPHjgZ++yJitjrnBGH15B6SJqOnIlmv4SmghSRJ3MPzX3xPpGtR9Np7qFpEPEsyA+0X06aWyqyu76469L+A+ZJeks4y+s607Hbg3ZJelp6bTQa3ANcAPyz5L/KVwMcqz10kzco55hGer3Eg6URgS0T8M8nMoien5S8DnoiIPSXGa0OcE4TVk/UkvZfuqyr7VUQ8kfb4uZakdrGS5C/3g/G3JM0v7ZI2kCzVWb3Q0YMk64WvIlkl76sRsTYiNgKfAe6U9BPgC1Xn3ZzGtjydQrwMVwGjgHWSNqbbB0ifR/xM0klp0fnAhrRZ6veAG9LyM4AflhSn1QnP5mrWYCS9E3hNRPxtH8csAy6PiEcGLzIbatyLyazBRMR3K01hedImtjYnB3MNwszMcvkZhJmZ5XKCMDOzXE4QZmaWywnCzMxyOUGYmVmu/w/M1Tvo81vfOQAAAABJRU5ErkJggg=="
},
"metadata": {
"needs_background": "light"
@@ -680,7 +657,139 @@
{
"cell_type": "markdown",
"source": [
- "## 3. Customized Learner"
+ "## 3. Comparison with alternatives\n"
+ ],
+ "metadata": {}
+ },
+ {
+ "cell_type": "markdown",
+ "source": [
+ "### Default LightGBM"
+ ],
+ "metadata": {}
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 12,
+ "source": [
+ "from lightgbm import LGBMClassifier\n",
+ "lgbm = LGBMClassifier()"
+ ],
+ "outputs": [],
+ "metadata": {}
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 13,
+ "source": [
+ "lgbm.fit(X_train, y_train)"
+ ],
+ "outputs": [
+ {
+ "output_type": "execute_result",
+ "data": {
+ "text/plain": [
+ "LGBMClassifier()"
+ ]
+ },
+ "metadata": {},
+ "execution_count": 13
+ }
+ ],
+ "metadata": {}
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 14,
+ "source": [
+ "y_pred_lgbm = lgbm.predict(X_test)"
+ ],
+ "outputs": [],
+ "metadata": {}
+ },
+ {
+ "cell_type": "markdown",
+ "source": [
+ "### Default XGBoost"
+ ],
+ "metadata": {}
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 15,
+ "source": [
+ "from xgboost import XGBClassifier\n",
+ "xgb = XGBClassifier()\n",
+ "cat_columns = X_train.select_dtypes(include=['category']).columns\n",
+ "X = X_train.copy()\n",
+ "X[cat_columns] = X[cat_columns].apply(lambda x: x.cat.codes)\n"
+ ],
+ "outputs": [],
+ "metadata": {}
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 16,
+ "source": [
+ "xgb.fit(X, y_train)"
+ ],
+ "outputs": [
+ {
+ "output_type": "execute_result",
+ "data": {
+ "text/plain": [
+ "XGBClassifier(base_score=0.5, booster='gbtree', colsample_bylevel=1,\n",
+ " colsample_bynode=1, colsample_bytree=1, gamma=0, gpu_id=-1,\n",
+ " importance_type='gain', interaction_constraints='',\n",
+ " learning_rate=0.300000012, max_delta_step=0, max_depth=6,\n",
+ " min_child_weight=1, missing=nan, monotone_constraints='()',\n",
+ " n_estimators=100, n_jobs=0, num_parallel_tree=1, random_state=0,\n",
+ " reg_alpha=0, reg_lambda=1, scale_pos_weight=1, subsample=1,\n",
+ " tree_method='exact', validate_parameters=1, verbosity=None)"
+ ]
+ },
+ "metadata": {},
+ "execution_count": 16
+ }
+ ],
+ "metadata": {}
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 17,
+ "source": [
+ "X = X_test.copy()\n",
+ "X[cat_columns] = X[cat_columns].apply(lambda x: x.cat.codes)\n",
+ "y_pred_xgb = xgb.predict(X)"
+ ],
+ "outputs": [],
+ "metadata": {}
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 18,
+ "source": [
+ "print('default xgboost accuracy', '=', 1 - sklearn_metric_loss_score('accuracy', y_pred_xgb, y_test))\n",
+ "print('default lgbm accuracy', '=', 1 - sklearn_metric_loss_score('accuracy', y_pred_lgbm, y_test))\n",
+ "print('flaml accuracy', '=', 1 - sklearn_metric_loss_score('accuracy', y_pred, y_test))"
+ ],
+ "outputs": [
+ {
+ "output_type": "stream",
+ "name": "stdout",
+ "text": [
+ "default xgboost accuracy = 0.6676060098186078\n",
+ "default lgbm accuracy = 0.6602346380315323\n",
+ "flaml accuracy = 0.6729231864497278\n"
+ ]
+ }
+ ],
+ "metadata": {}
+ },
+ {
+ "cell_type": "markdown",
+ "source": [
+ "## 4. Customized Learner"
],
"metadata": {
"slideshow": {
@@ -722,7 +831,7 @@
},
{
"cell_type": "code",
- "execution_count": 12,
+ "execution_count": 19,
"source": [
"''' SKLearnEstimator is the super class for a sklearn learner '''\n",
"from flaml.model import SKLearnEstimator\n",
@@ -827,7 +936,7 @@
},
{
"cell_type": "code",
- "execution_count": 13,
+ "execution_count": 20,
"source": [
"automl = AutoML()\n",
"automl.add_learner(learner_name='RGF', learner_class=MyRegularizedGreedyForest)"
@@ -841,206 +950,20 @@
},
{
"cell_type": "code",
- "execution_count": 14,
+ "execution_count": 21,
"source": [
"settings = {\n",
- " \"time_budget\": 60, # total running time in seconds\n",
+ " \"time_budget\": 10, # total running time in seconds\n",
" \"metric\": 'accuracy', \n",
" \"estimator_list\": ['RGF', 'lgbm', 'rf', 'xgboost'], # list of ML learners\n",
" \"task\": 'classification', # task type \n",
- " \"log_file_name\": 'airlines_experiment_custom.log', # flaml log file \n",
+ " \"log_file_name\": 'airlines_experiment_custom_learner.log', # flaml log file \n",
" \"log_training_metric\": True, # whether to log training metric\n",
"}\n",
"\n",
- "'''The main flaml automl API'''\n",
"automl.fit(X_train = X_train, y_train = y_train, **settings)"
],
- "outputs": [
- {
- "output_type": "stream",
- "name": "stderr",
- "text": [
- "[flaml.automl: 08-22 21:04:15] {1130} INFO - Evaluation method: holdout\n",
- "[flaml.automl: 08-22 21:04:15] {624} INFO - Using StratifiedKFold\n",
- "[flaml.automl: 08-22 21:04:15] {1155} INFO - Minimizing error metric: 1-accuracy\n",
- "[flaml.automl: 08-22 21:04:15] {1175} INFO - List of ML learners in AutoML Run: ['RGF', 'lgbm', 'rf', 'xgboost']\n",
- "[flaml.automl: 08-22 21:04:15] {1358} INFO - iteration 0, current learner RGF\n",
- "/home/dmx/miniconda2/envs/blend/lib/python3.8/site-packages/rgf/utils.py:225: UserWarning: Cannot find FastRGF executable files. FastRGF estimators will be unavailable for usage.\n",
- " warnings.warn(\"Cannot find FastRGF executable files. \"\n",
- "[flaml.automl: 08-22 21:04:18] {1515} INFO - at 3.7s,\tbest RGF's error=0.3840,\tbest RGF's error=0.3840\n",
- "[flaml.automl: 08-22 21:04:18] {1358} INFO - iteration 1, current learner RGF\n",
- "[flaml.automl: 08-22 21:04:19] {1515} INFO - at 5.2s,\tbest RGF's error=0.3840,\tbest RGF's error=0.3840\n",
- "[flaml.automl: 08-22 21:04:19] {1358} INFO - iteration 2, current learner RGF\n",
- "[flaml.automl: 08-22 21:04:21] {1515} INFO - at 6.7s,\tbest RGF's error=0.3840,\tbest RGF's error=0.3840\n",
- "[flaml.automl: 08-22 21:04:21] {1358} INFO - iteration 3, current learner RGF\n",
- "[flaml.automl: 08-22 21:04:22] {1515} INFO - at 8.2s,\tbest RGF's error=0.3840,\tbest RGF's error=0.3840\n",
- "[flaml.automl: 08-22 21:04:22] {1358} INFO - iteration 4, current learner lgbm\n",
- "[flaml.automl: 08-22 21:04:23] {1515} INFO - at 8.3s,\tbest lgbm's error=0.3777,\tbest lgbm's error=0.3777\n",
- "[flaml.automl: 08-22 21:04:23] {1358} INFO - iteration 5, current learner lgbm\n",
- "[flaml.automl: 08-22 21:04:23] {1515} INFO - at 8.3s,\tbest lgbm's error=0.3777,\tbest lgbm's error=0.3777\n",
- "[flaml.automl: 08-22 21:04:23] {1358} INFO - iteration 6, current learner lgbm\n",
- "[flaml.automl: 08-22 21:04:23] {1515} INFO - at 8.4s,\tbest lgbm's error=0.3777,\tbest lgbm's error=0.3777\n",
- "[flaml.automl: 08-22 21:04:23] {1358} INFO - iteration 7, current learner lgbm\n",
- "[flaml.automl: 08-22 21:04:23] {1515} INFO - at 8.6s,\tbest lgbm's error=0.3661,\tbest lgbm's error=0.3661\n",
- "[flaml.automl: 08-22 21:04:23] {1358} INFO - iteration 8, current learner lgbm\n",
- "[flaml.automl: 08-22 21:04:23] {1515} INFO - at 8.7s,\tbest lgbm's error=0.3645,\tbest lgbm's error=0.3645\n",
- "[flaml.automl: 08-22 21:04:23] {1358} INFO - iteration 9, current learner lgbm\n",
- "[flaml.automl: 08-22 21:04:23] {1515} INFO - at 8.8s,\tbest lgbm's error=0.3645,\tbest lgbm's error=0.3645\n",
- "[flaml.automl: 08-22 21:04:23] {1358} INFO - iteration 10, current learner lgbm\n",
- "[flaml.automl: 08-22 21:04:23] {1515} INFO - at 8.9s,\tbest lgbm's error=0.3645,\tbest lgbm's error=0.3645\n",
- "[flaml.automl: 08-22 21:04:23] {1358} INFO - iteration 11, current learner lgbm\n",
- "[flaml.automl: 08-22 21:04:23] {1515} INFO - at 9.1s,\tbest lgbm's error=0.3610,\tbest lgbm's error=0.3610\n",
- "[flaml.automl: 08-22 21:04:23] {1358} INFO - iteration 12, current learner lgbm\n",
- "[flaml.automl: 08-22 21:04:23] {1515} INFO - at 9.2s,\tbest lgbm's error=0.3610,\tbest lgbm's error=0.3610\n",
- "[flaml.automl: 08-22 21:04:23] {1358} INFO - iteration 13, current learner lgbm\n",
- "[flaml.automl: 08-22 21:04:24] {1515} INFO - at 9.4s,\tbest lgbm's error=0.3610,\tbest lgbm's error=0.3610\n",
- "[flaml.automl: 08-22 21:04:24] {1358} INFO - iteration 14, current learner lgbm\n",
- "[flaml.automl: 08-22 21:04:24] {1515} INFO - at 9.5s,\tbest lgbm's error=0.3610,\tbest lgbm's error=0.3610\n",
- "[flaml.automl: 08-22 21:04:24] {1358} INFO - iteration 15, current learner lgbm\n",
- "[flaml.automl: 08-22 21:04:24] {1515} INFO - at 9.7s,\tbest lgbm's error=0.3610,\tbest lgbm's error=0.3610\n",
- "[flaml.automl: 08-22 21:04:24] {1358} INFO - iteration 16, current learner RGF\n",
- "[flaml.automl: 08-22 21:04:25] {1515} INFO - at 11.1s,\tbest RGF's error=0.3840,\tbest lgbm's error=0.3610\n",
- "[flaml.automl: 08-22 21:04:25] {1358} INFO - iteration 17, current learner lgbm\n",
- "[flaml.automl: 08-22 21:04:26] {1515} INFO - at 11.2s,\tbest lgbm's error=0.3610,\tbest lgbm's error=0.3610\n",
- "[flaml.automl: 08-22 21:04:26] {1358} INFO - iteration 18, current learner lgbm\n",
- "[flaml.automl: 08-22 21:04:26] {1515} INFO - at 11.4s,\tbest lgbm's error=0.3610,\tbest lgbm's error=0.3610\n",
- "[flaml.automl: 08-22 21:04:26] {1358} INFO - iteration 19, current learner lgbm\n",
- "[flaml.automl: 08-22 21:04:26] {1515} INFO - at 11.8s,\tbest lgbm's error=0.3610,\tbest lgbm's error=0.3610\n",
- "[flaml.automl: 08-22 21:04:26] {1358} INFO - iteration 20, current learner lgbm\n",
- "[flaml.automl: 08-22 21:04:26] {1515} INFO - at 12.2s,\tbest lgbm's error=0.3592,\tbest lgbm's error=0.3592\n",
- "[flaml.automl: 08-22 21:04:26] {1358} INFO - iteration 21, current learner RGF\n",
- "[flaml.automl: 08-22 21:04:28] {1515} INFO - at 13.8s,\tbest RGF's error=0.3762,\tbest lgbm's error=0.3592\n",
- "[flaml.automl: 08-22 21:04:28] {1358} INFO - iteration 22, current learner lgbm\n",
- "[flaml.automl: 08-22 21:04:28] {1515} INFO - at 14.1s,\tbest lgbm's error=0.3592,\tbest lgbm's error=0.3592\n",
- "[flaml.automl: 08-22 21:04:28] {1358} INFO - iteration 23, current learner lgbm\n",
- "[flaml.automl: 08-22 21:04:29] {1515} INFO - at 14.5s,\tbest lgbm's error=0.3592,\tbest lgbm's error=0.3592\n",
- "[flaml.automl: 08-22 21:04:29] {1358} INFO - iteration 24, current learner lgbm\n",
- "[flaml.automl: 08-22 21:04:29] {1515} INFO - at 14.8s,\tbest lgbm's error=0.3555,\tbest lgbm's error=0.3555\n",
- "[flaml.automl: 08-22 21:04:29] {1358} INFO - iteration 25, current learner lgbm\n",
- "[flaml.automl: 08-22 21:04:29] {1515} INFO - at 15.1s,\tbest lgbm's error=0.3555,\tbest lgbm's error=0.3555\n",
- "[flaml.automl: 08-22 21:04:29] {1358} INFO - iteration 26, current learner lgbm\n",
- "[flaml.automl: 08-22 21:04:30] {1515} INFO - at 16.1s,\tbest lgbm's error=0.3523,\tbest lgbm's error=0.3523\n",
- "[flaml.automl: 08-22 21:04:30] {1358} INFO - iteration 27, current learner lgbm\n",
- "[flaml.automl: 08-22 21:04:31] {1515} INFO - at 16.4s,\tbest lgbm's error=0.3523,\tbest lgbm's error=0.3523\n",
- "[flaml.automl: 08-22 21:04:31] {1358} INFO - iteration 28, current learner lgbm\n",
- "[flaml.automl: 08-22 21:04:31] {1515} INFO - at 17.1s,\tbest lgbm's error=0.3519,\tbest lgbm's error=0.3519\n",
- "[flaml.automl: 08-22 21:04:31] {1358} INFO - iteration 29, current learner lgbm\n",
- "[flaml.automl: 08-22 21:04:32] {1515} INFO - at 17.4s,\tbest lgbm's error=0.3519,\tbest lgbm's error=0.3519\n",
- "[flaml.automl: 08-22 21:04:32] {1358} INFO - iteration 30, current learner lgbm\n",
- "[flaml.automl: 08-22 21:04:32] {1515} INFO - at 17.9s,\tbest lgbm's error=0.3519,\tbest lgbm's error=0.3519\n",
- "[flaml.automl: 08-22 21:04:32] {1358} INFO - iteration 31, current learner lgbm\n",
- "[flaml.automl: 08-22 21:04:33] {1515} INFO - at 18.5s,\tbest lgbm's error=0.3504,\tbest lgbm's error=0.3504\n",
- "[flaml.automl: 08-22 21:04:33] {1358} INFO - iteration 32, current learner lgbm\n",
- "[flaml.automl: 08-22 21:04:33] {1515} INFO - at 18.9s,\tbest lgbm's error=0.3504,\tbest lgbm's error=0.3504\n",
- "[flaml.automl: 08-22 21:04:33] {1358} INFO - iteration 33, current learner lgbm\n",
- "[flaml.automl: 08-22 21:04:35] {1515} INFO - at 20.5s,\tbest lgbm's error=0.3504,\tbest lgbm's error=0.3504\n",
- "[flaml.automl: 08-22 21:04:35] {1358} INFO - iteration 34, current learner lgbm\n",
- "[flaml.automl: 08-22 21:04:35] {1515} INFO - at 20.9s,\tbest lgbm's error=0.3504,\tbest lgbm's error=0.3504\n",
- "[flaml.automl: 08-22 21:04:35] {1358} INFO - iteration 35, current learner lgbm\n",
- "[flaml.automl: 08-22 21:04:36] {1515} INFO - at 21.3s,\tbest lgbm's error=0.3504,\tbest lgbm's error=0.3504\n",
- "[flaml.automl: 08-22 21:04:36] {1358} INFO - iteration 36, current learner lgbm\n",
- "[flaml.automl: 08-22 21:04:40] {1515} INFO - at 25.7s,\tbest lgbm's error=0.3392,\tbest lgbm's error=0.3392\n",
- "[flaml.automl: 08-22 21:04:40] {1358} INFO - iteration 37, current learner xgboost\n",
- "[flaml.automl: 08-22 21:04:40] {1515} INFO - at 25.7s,\tbest xgboost's error=0.3787,\tbest lgbm's error=0.3392\n",
- "[flaml.automl: 08-22 21:04:40] {1358} INFO - iteration 38, current learner xgboost\n",
- "[flaml.automl: 08-22 21:04:40] {1515} INFO - at 25.8s,\tbest xgboost's error=0.3769,\tbest lgbm's error=0.3392\n",
- "[flaml.automl: 08-22 21:04:40] {1358} INFO - iteration 39, current learner xgboost\n",
- "[flaml.automl: 08-22 21:04:40] {1515} INFO - at 25.9s,\tbest xgboost's error=0.3765,\tbest lgbm's error=0.3392\n",
- "[flaml.automl: 08-22 21:04:40] {1358} INFO - iteration 40, current learner rf\n",
- "[flaml.automl: 08-22 21:04:40] {1515} INFO - at 26.1s,\tbest rf's error=0.3765,\tbest lgbm's error=0.3392\n",
- "[flaml.automl: 08-22 21:04:40] {1358} INFO - iteration 41, current learner rf\n",
- "[flaml.automl: 08-22 21:04:41] {1515} INFO - at 26.3s,\tbest rf's error=0.3689,\tbest lgbm's error=0.3392\n",
- "[flaml.automl: 08-22 21:04:41] {1358} INFO - iteration 42, current learner lgbm\n",
- "[flaml.automl: 08-22 21:04:43] {1515} INFO - at 28.8s,\tbest lgbm's error=0.3392,\tbest lgbm's error=0.3392\n",
- "[flaml.automl: 08-22 21:04:43] {1358} INFO - iteration 43, current learner rf\n",
- "[flaml.automl: 08-22 21:04:43] {1515} INFO - at 28.9s,\tbest rf's error=0.3689,\tbest lgbm's error=0.3392\n",
- "[flaml.automl: 08-22 21:04:43] {1358} INFO - iteration 44, current learner xgboost\n",
- "[flaml.automl: 08-22 21:04:43] {1515} INFO - at 29.0s,\tbest xgboost's error=0.3746,\tbest lgbm's error=0.3392\n",
- "[flaml.automl: 08-22 21:04:43] {1358} INFO - iteration 45, current learner xgboost\n",
- "[flaml.automl: 08-22 21:04:43] {1515} INFO - at 29.1s,\tbest xgboost's error=0.3673,\tbest lgbm's error=0.3392\n",
- "[flaml.automl: 08-22 21:04:43] {1358} INFO - iteration 46, current learner xgboost\n",
- "[flaml.automl: 08-22 21:04:43] {1515} INFO - at 29.2s,\tbest xgboost's error=0.3673,\tbest lgbm's error=0.3392\n",
- "[flaml.automl: 08-22 21:04:43] {1358} INFO - iteration 47, current learner xgboost\n",
- "[flaml.automl: 08-22 21:04:44] {1515} INFO - at 29.3s,\tbest xgboost's error=0.3617,\tbest lgbm's error=0.3392\n",
- "[flaml.automl: 08-22 21:04:44] {1358} INFO - iteration 48, current learner lgbm\n",
- "[flaml.automl: 08-22 21:04:51] {1515} INFO - at 36.4s,\tbest lgbm's error=0.3391,\tbest lgbm's error=0.3391\n",
- "[flaml.automl: 08-22 21:04:51] {1358} INFO - iteration 49, current learner rf\n",
- "[flaml.automl: 08-22 21:04:51] {1515} INFO - at 36.6s,\tbest rf's error=0.3689,\tbest lgbm's error=0.3391\n",
- "[flaml.automl: 08-22 21:04:51] {1358} INFO - iteration 50, current learner xgboost\n",
- "[flaml.automl: 08-22 21:04:51] {1515} INFO - at 36.7s,\tbest xgboost's error=0.3610,\tbest lgbm's error=0.3391\n",
- "[flaml.automl: 08-22 21:04:51] {1358} INFO - iteration 51, current learner rf\n",
- "[flaml.automl: 08-22 21:04:51] {1515} INFO - at 36.9s,\tbest rf's error=0.3689,\tbest lgbm's error=0.3391\n",
- "[flaml.automl: 08-22 21:04:51] {1358} INFO - iteration 52, current learner rf\n",
- "[flaml.automl: 08-22 21:04:51] {1515} INFO - at 37.1s,\tbest rf's error=0.3689,\tbest lgbm's error=0.3391\n",
- "[flaml.automl: 08-22 21:04:51] {1358} INFO - iteration 53, current learner lgbm\n",
- "[flaml.automl: 08-22 21:04:58] {1515} INFO - at 43.8s,\tbest lgbm's error=0.3391,\tbest lgbm's error=0.3391\n",
- "[flaml.automl: 08-22 21:04:58] {1358} INFO - iteration 54, current learner RGF\n",
- "[flaml.automl: 08-22 21:05:00] {1515} INFO - at 45.4s,\tbest RGF's error=0.3762,\tbest lgbm's error=0.3391\n",
- "[flaml.automl: 08-22 21:05:00] {1358} INFO - iteration 55, current learner xgboost\n",
- "[flaml.automl: 08-22 21:05:00] {1515} INFO - at 45.6s,\tbest xgboost's error=0.3610,\tbest lgbm's error=0.3391\n",
- "[flaml.automl: 08-22 21:05:00] {1358} INFO - iteration 56, current learner lgbm\n",
- "[flaml.automl: 08-22 21:05:08] {1515} INFO - at 53.7s,\tbest lgbm's error=0.3384,\tbest lgbm's error=0.3384\n",
- "[flaml.automl: 08-22 21:05:08] {1358} INFO - iteration 57, current learner rf\n",
- "[flaml.automl: 08-22 21:05:08] {1515} INFO - at 53.9s,\tbest rf's error=0.3689,\tbest lgbm's error=0.3384\n",
- "[flaml.automl: 08-22 21:05:08] {1358} INFO - iteration 58, current learner rf\n",
- "[flaml.automl: 08-22 21:05:08] {1515} INFO - at 54.1s,\tbest rf's error=0.3684,\tbest lgbm's error=0.3384\n",
- "[flaml.automl: 08-22 21:05:08] {1358} INFO - iteration 59, current learner RGF\n",
- "[flaml.automl: 08-22 21:05:10] {1515} INFO - at 55.7s,\tbest RGF's error=0.3762,\tbest lgbm's error=0.3384\n",
- "[flaml.automl: 08-22 21:05:10] {1358} INFO - iteration 60, current learner xgboost\n",
- "[flaml.automl: 08-22 21:05:10] {1515} INFO - at 55.8s,\tbest xgboost's error=0.3610,\tbest lgbm's error=0.3384\n",
- "[flaml.automl: 08-22 21:05:10] {1358} INFO - iteration 61, current learner RGF\n",
- "[flaml.automl: 08-22 21:05:12] {1515} INFO - at 57.7s,\tbest RGF's error=0.3759,\tbest lgbm's error=0.3384\n",
- "[flaml.automl: 08-22 21:05:12] {1358} INFO - iteration 62, current learner xgboost\n",
- "[flaml.automl: 08-22 21:05:12] {1515} INFO - at 57.8s,\tbest xgboost's error=0.3610,\tbest lgbm's error=0.3384\n",
- "[flaml.automl: 08-22 21:05:12] {1358} INFO - iteration 63, current learner xgboost\n",
- "[flaml.automl: 08-22 21:05:12] {1515} INFO - at 57.9s,\tbest xgboost's error=0.3610,\tbest lgbm's error=0.3384\n",
- "[flaml.automl: 08-22 21:05:12] {1358} INFO - iteration 64, current learner rf\n",
- "[flaml.automl: 08-22 21:05:12] {1515} INFO - at 58.1s,\tbest rf's error=0.3643,\tbest lgbm's error=0.3384\n",
- "[flaml.automl: 08-22 21:05:12] {1358} INFO - iteration 65, current learner rf\n",
- "[flaml.automl: 08-22 21:05:13] {1515} INFO - at 58.4s,\tbest rf's error=0.3643,\tbest lgbm's error=0.3384\n",
- "[flaml.automl: 08-22 21:05:13] {1358} INFO - iteration 66, current learner rf\n",
- "[flaml.automl: 08-22 21:05:13] {1515} INFO - at 58.5s,\tbest rf's error=0.3643,\tbest lgbm's error=0.3384\n",
- "[flaml.automl: 08-22 21:05:13] {1358} INFO - iteration 67, current learner rf\n",
- "[flaml.automl: 08-22 21:05:13] {1515} INFO - at 58.7s,\tbest rf's error=0.3643,\tbest lgbm's error=0.3384\n",
- "[flaml.automl: 08-22 21:05:13] {1358} INFO - iteration 68, current learner rf\n",
- "[flaml.automl: 08-22 21:05:13] {1515} INFO - at 58.9s,\tbest rf's error=0.3643,\tbest lgbm's error=0.3384\n",
- "[flaml.automl: 08-22 21:05:13] {1358} INFO - iteration 69, current learner rf\n",
- "[flaml.automl: 08-22 21:05:13] {1515} INFO - at 59.0s,\tbest rf's error=0.3628,\tbest lgbm's error=0.3384\n",
- "[flaml.automl: 08-22 21:05:13] {1358} INFO - iteration 70, current learner xgboost\n",
- "[flaml.automl: 08-22 21:05:13] {1515} INFO - at 59.1s,\tbest xgboost's error=0.3610,\tbest lgbm's error=0.3384\n",
- "[flaml.automl: 08-22 21:05:13] {1358} INFO - iteration 71, current learner rf\n",
- "[flaml.automl: 08-22 21:05:13] {1515} INFO - at 59.2s,\tbest rf's error=0.3628,\tbest lgbm's error=0.3384\n",
- "[flaml.automl: 08-22 21:05:13] {1358} INFO - iteration 72, current learner xgboost\n",
- "[flaml.automl: 08-22 21:05:14] {1515} INFO - at 59.3s,\tbest xgboost's error=0.3610,\tbest lgbm's error=0.3384\n",
- "[flaml.automl: 08-22 21:05:14] {1358} INFO - iteration 73, current learner xgboost\n",
- "[flaml.automl: 08-22 21:05:14] {1515} INFO - at 59.4s,\tbest xgboost's error=0.3610,\tbest lgbm's error=0.3384\n",
- "[flaml.automl: 08-22 21:05:14] {1358} INFO - iteration 74, current learner xgboost\n",
- "[flaml.automl: 08-22 21:05:14] {1515} INFO - at 59.5s,\tbest xgboost's error=0.3610,\tbest lgbm's error=0.3384\n",
- "[flaml.automl: 08-22 21:05:14] {1358} INFO - iteration 75, current learner rf\n",
- "[flaml.automl: 08-22 21:05:14] {1515} INFO - at 59.6s,\tbest rf's error=0.3628,\tbest lgbm's error=0.3384\n",
- "[flaml.automl: 08-22 21:05:14] {1358} INFO - iteration 76, current learner rf\n",
- "[flaml.automl: 08-22 21:05:14] {1515} INFO - at 59.7s,\tbest rf's error=0.3628,\tbest lgbm's error=0.3384\n",
- "[flaml.automl: 08-22 21:05:14] {1358} INFO - iteration 77, current learner xgboost\n",
- "[flaml.automl: 08-22 21:05:14] {1515} INFO - at 59.8s,\tbest xgboost's error=0.3610,\tbest lgbm's error=0.3384\n",
- "[flaml.automl: 08-22 21:05:14] {1358} INFO - iteration 78, current learner rf\n",
- "[flaml.automl: 08-22 21:05:14] {1515} INFO - at 59.9s,\tbest rf's error=0.3628,\tbest lgbm's error=0.3384\n",
- "[flaml.automl: 08-22 21:05:14] {1592} INFO - selected model: LGBMClassifier(colsample_bytree=0.4612631642916683,\n",
- " learning_rate=0.23563288484693434, max_bin=256,\n",
- " min_child_samples=24, n_estimators=245, num_leaves=16,\n",
- " objective='binary', reg_alpha=0.0030413642053562034,\n",
- " reg_lambda=0.003910475784753646, verbose=-1)\n",
- "[flaml.automl: 08-22 21:05:19] {1633} INFO - retrain lgbm for 5.1s\n",
- "[flaml.automl: 08-22 21:05:19] {1636} INFO - retrained model: LGBMClassifier(colsample_bytree=0.4612631642916683,\n",
- " learning_rate=0.23563288484693434, max_bin=256,\n",
- " min_child_samples=24, n_estimators=245, num_leaves=16,\n",
- " objective='binary', reg_alpha=0.0030413642053562034,\n",
- " reg_lambda=0.003910475784753646, verbose=-1)\n",
- "[flaml.automl: 08-22 21:05:19] {1199} INFO - fit succeeded\n",
- "[flaml.automl: 08-22 21:05:19] {1200} INFO - Time taken to find the best model: 53.72299408912659\n",
- "[flaml.automl: 08-22 21:05:19] {1205} WARNING - Time taken to find the best model is 90% of the provided time budget and not all estimators' hyperparameter search converged. Consider increasing the time budget.\n"
- ]
- }
- ],
+ "outputs": [],
"metadata": {
"slideshow": {
"slide_type": "slide"
@@ -1051,148 +974,164 @@
{
"cell_type": "markdown",
"source": [
- "## 4. Comparison with alternatives\n",
+ "## 5. Customized Metric\n",
"\n",
- "### FLAML's accuracy"
- ],
- "metadata": {}
- },
- {
- "cell_type": "code",
- "execution_count": 15,
- "source": [
- "print('flaml accuracy', '=', 1 - sklearn_metric_loss_score('accuracy', y_pred, y_test))"
- ],
- "outputs": [
- {
- "output_type": "stream",
- "name": "stdout",
- "text": [
- "flaml accuracy = 0.6741542203699035\n"
- ]
- }
- ],
- "metadata": {}
- },
- {
- "cell_type": "markdown",
- "source": [
- "### Default LightGBM"
+ "It's also easy to customize the optimization metric. As an example, we demonstrate with a custom metric function which combines training loss and test loss as the final loss to minimize."
],
"metadata": {}
},
{
"cell_type": "code",
- "execution_count": 16,
+ "execution_count": 22,
"source": [
- "from lightgbm import LGBMClassifier\n",
- "lgbm = LGBMClassifier()"
+ "def custom_metric(X_test, y_test, estimator, labels, X_train, y_train,\n",
+ " weight_test=None, weight_train=None, config=None,\n",
+ " groups_test=None, groups_train=None):\n",
+ " from sklearn.metrics import log_loss\n",
+ " import time\n",
+ " start = time.time()\n",
+ " y_pred = estimator.predict_proba(X_test)\n",
+ " pred_time = (time.time() - start) / len(X_test)\n",
+ " test_loss = log_loss(y_test, y_pred, labels=labels,\n",
+ " sample_weight=weight_test)\n",
+ " y_pred = estimator.predict_proba(X_train)\n",
+ " train_loss = log_loss(y_train, y_pred, labels=labels,\n",
+ " sample_weight=weight_train)\n",
+ " alpha = 0.5\n",
+ " return test_loss * (1 + alpha) - alpha * train_loss, {\n",
+ " \"test_loss\": test_loss, \"train_loss\": train_loss, \"pred_time\": pred_time\n",
+ " }\n",
+ " # two elements are returned:\n",
+ " # the first element is the metric to minimize as a float number,\n",
+ " # the second element is a dictionary of the metrics to log"
],
"outputs": [],
"metadata": {}
},
- {
- "cell_type": "code",
- "execution_count": 17,
- "source": [
- "lgbm.fit(X_train, y_train)"
- ],
- "outputs": [
- {
- "output_type": "execute_result",
- "data": {
- "text/plain": [
- "LGBMClassifier()"
- ]
- },
- "metadata": {},
- "execution_count": 17
- }
- ],
- "metadata": {}
- },
- {
- "cell_type": "code",
- "execution_count": 18,
- "source": [
- "y_pred = lgbm.predict(X_test)\n",
- "from flaml.ml import sklearn_metric_loss_score\n",
- "print('default lgbm accuracy', '=', 1 - sklearn_metric_loss_score('accuracy', y_pred, y_test))"
- ],
- "outputs": [
- {
- "output_type": "stream",
- "name": "stdout",
- "text": [
- "default lgbm accuracy = 0.6602346380315323\n"
- ]
- }
- ],
- "metadata": {}
- },
{
"cell_type": "markdown",
"source": [
- "### Default XGBoost"
- ],
- "metadata": {}
- },
- {
- "cell_type": "code",
- "execution_count": 19,
- "source": [
- "from xgboost import XGBClassifier\n",
- "xgb = XGBClassifier()\n",
- "cat_columns = X_train.select_dtypes(include=['category']).columns\n",
- "X = X_train.copy()\n",
- "X[cat_columns] = X[cat_columns].apply(lambda x: x.cat.codes)\n"
- ],
- "outputs": [],
- "metadata": {}
- },
- {
- "cell_type": "code",
- "execution_count": 20,
- "source": [
- "xgb.fit(X, y_train)"
- ],
- "outputs": [
- {
- "output_type": "execute_result",
- "data": {
- "text/plain": [
- "XGBClassifier(base_score=0.5, booster='gbtree', colsample_bylevel=1,\n",
- " colsample_bynode=1, colsample_bytree=1, gamma=0, gpu_id=-1,\n",
- " importance_type='gain', interaction_constraints='',\n",
- " learning_rate=0.300000012, max_delta_step=0, max_depth=6,\n",
- " min_child_weight=1, missing=nan, monotone_constraints='()',\n",
- " n_estimators=100, n_jobs=8, num_parallel_tree=1, random_state=0,\n",
- " reg_alpha=0, reg_lambda=1, scale_pos_weight=1, subsample=1,\n",
- " tree_method='exact', validate_parameters=1, verbosity=None)"
- ]
- },
- "metadata": {},
- "execution_count": 20
- }
+ "We can then pass this custom metric function to automl's `fit` method."
],
"metadata": {}
},
{
"cell_type": "code",
- "execution_count": 21,
+ "execution_count": 23,
"source": [
- "X = X_test.copy()\n",
- "X[cat_columns] = X[cat_columns].apply(lambda x: x.cat.codes)\n",
- "y_pred = xgb.predict(X)\n",
- "from flaml.ml import sklearn_metric_loss_score\n",
- "print('default xgboost accuracy', '=', 1 - sklearn_metric_loss_score('accuracy', y_pred, y_test))"
+ "automl = AutoML()\n",
+ "settings = {\n",
+ " \"time_budget\": 10, # total running time in seconds\n",
+ " \"metric\": custom_metric, # pass the custom metric funtion here\n",
+ " \"task\": 'classification', # task type\n",
+ " \"log_file_name\": 'airlines_experiment_custom_metric.log', # flaml log file\n",
+ "}\n",
+ "\n",
+ "automl.fit(X_train = X_train, y_train = y_train, **settings)"
],
"outputs": [
{
"output_type": "stream",
- "name": "stdout",
+ "name": "stderr",
"text": [
- "default xgboost accuracy = 0.6676060098186078\n"
+ "[flaml.automl: 08-31 00:58:32] {1279} INFO - Evaluation method: holdout\n",
+ "[flaml.automl: 08-31 00:58:32] {1312} INFO - Minimizing error metric: customized metric\n",
+ "[flaml.automl: 08-31 00:58:32] {1338} INFO - List of ML learners in AutoML Run: ['lgbm', 'rf', 'catboost', 'xgboost', 'extra_tree', 'lrl1']\n",
+ "[flaml.automl: 08-31 00:58:32] {1532} INFO - iteration 0, current learner lgbm\n",
+ "[flaml.automl: 08-31 00:58:32] {1689} INFO - at 1.3s,\tbest lgbm's error=0.6646,\tbest lgbm's error=0.6646\n",
+ "[flaml.automl: 08-31 00:58:32] {1532} INFO - iteration 1, current learner lgbm\n",
+ "[flaml.automl: 08-31 00:58:33] {1689} INFO - at 1.4s,\tbest lgbm's error=0.6646,\tbest lgbm's error=0.6646\n",
+ "[flaml.automl: 08-31 00:58:33] {1532} INFO - iteration 2, current learner lgbm\n",
+ "[flaml.automl: 08-31 00:58:33] {1689} INFO - at 1.6s,\tbest lgbm's error=0.6493,\tbest lgbm's error=0.6493\n",
+ "[flaml.automl: 08-31 00:58:33] {1532} INFO - iteration 3, current learner xgboost\n",
+ "[flaml.automl: 08-31 00:58:33] {1689} INFO - at 1.8s,\tbest xgboost's error=0.6672,\tbest lgbm's error=0.6493\n",
+ "[flaml.automl: 08-31 00:58:33] {1532} INFO - iteration 4, current learner lgbm\n",
+ "[flaml.automl: 08-31 00:58:33] {1689} INFO - at 1.9s,\tbest lgbm's error=0.6419,\tbest lgbm's error=0.6419\n",
+ "[flaml.automl: 08-31 00:58:33] {1532} INFO - iteration 5, current learner lgbm\n",
+ "[flaml.automl: 08-31 00:58:33] {1689} INFO - at 2.1s,\tbest lgbm's error=0.6419,\tbest lgbm's error=0.6419\n",
+ "[flaml.automl: 08-31 00:58:33] {1532} INFO - iteration 6, current learner lgbm\n",
+ "[flaml.automl: 08-31 00:58:33] {1689} INFO - at 2.3s,\tbest lgbm's error=0.6419,\tbest lgbm's error=0.6419\n",
+ "[flaml.automl: 08-31 00:58:33] {1532} INFO - iteration 7, current learner lgbm\n",
+ "[flaml.automl: 08-31 00:58:34] {1689} INFO - at 2.5s,\tbest lgbm's error=0.6375,\tbest lgbm's error=0.6375\n",
+ "[flaml.automl: 08-31 00:58:34] {1532} INFO - iteration 8, current learner lgbm\n",
+ "[flaml.automl: 08-31 00:58:34] {1689} INFO - at 2.6s,\tbest lgbm's error=0.6375,\tbest lgbm's error=0.6375\n",
+ "[flaml.automl: 08-31 00:58:34] {1532} INFO - iteration 9, current learner xgboost\n",
+ "[flaml.automl: 08-31 00:58:34] {1689} INFO - at 2.8s,\tbest xgboost's error=0.6672,\tbest lgbm's error=0.6375\n",
+ "[flaml.automl: 08-31 00:58:34] {1532} INFO - iteration 10, current learner xgboost\n",
+ "[flaml.automl: 08-31 00:58:34] {1689} INFO - at 2.9s,\tbest xgboost's error=0.6500,\tbest lgbm's error=0.6375\n",
+ "[flaml.automl: 08-31 00:58:34] {1532} INFO - iteration 11, current learner extra_tree\n",
+ "[flaml.automl: 08-31 00:58:34] {1689} INFO - at 3.1s,\tbest extra_tree's error=0.6607,\tbest lgbm's error=0.6375\n",
+ "[flaml.automl: 08-31 00:58:34] {1532} INFO - iteration 12, current learner extra_tree\n",
+ "[flaml.automl: 08-31 00:58:34] {1689} INFO - at 3.4s,\tbest extra_tree's error=0.6480,\tbest lgbm's error=0.6375\n",
+ "[flaml.automl: 08-31 00:58:34] {1532} INFO - iteration 13, current learner rf\n",
+ "[flaml.automl: 08-31 00:58:35] {1689} INFO - at 3.6s,\tbest rf's error=0.6483,\tbest lgbm's error=0.6375\n",
+ "[flaml.automl: 08-31 00:58:35] {1532} INFO - iteration 14, current learner rf\n",
+ "[flaml.automl: 08-31 00:58:35] {1689} INFO - at 3.8s,\tbest rf's error=0.6430,\tbest lgbm's error=0.6375\n",
+ "[flaml.automl: 08-31 00:58:35] {1532} INFO - iteration 15, current learner extra_tree\n",
+ "[flaml.automl: 08-31 00:58:35] {1689} INFO - at 4.0s,\tbest extra_tree's error=0.6480,\tbest lgbm's error=0.6375\n",
+ "[flaml.automl: 08-31 00:58:35] {1532} INFO - iteration 16, current learner lgbm\n",
+ "[flaml.automl: 08-31 00:58:35] {1689} INFO - at 4.2s,\tbest lgbm's error=0.6375,\tbest lgbm's error=0.6375\n",
+ "[flaml.automl: 08-31 00:58:35] {1532} INFO - iteration 17, current learner extra_tree\n",
+ "[flaml.automl: 08-31 00:58:36] {1689} INFO - at 4.4s,\tbest extra_tree's error=0.6480,\tbest lgbm's error=0.6375\n",
+ "[flaml.automl: 08-31 00:58:36] {1532} INFO - iteration 18, current learner lgbm\n",
+ "[flaml.automl: 08-31 00:58:36] {1689} INFO - at 4.5s,\tbest lgbm's error=0.6375,\tbest lgbm's error=0.6375\n",
+ "[flaml.automl: 08-31 00:58:36] {1532} INFO - iteration 19, current learner xgboost\n",
+ "[flaml.automl: 08-31 00:58:36] {1689} INFO - at 4.7s,\tbest xgboost's error=0.6413,\tbest lgbm's error=0.6375\n",
+ "[flaml.automl: 08-31 00:58:36] {1532} INFO - iteration 20, current learner xgboost\n",
+ "[flaml.automl: 08-31 00:58:36] {1689} INFO - at 4.9s,\tbest xgboost's error=0.6413,\tbest lgbm's error=0.6375\n",
+ "[flaml.automl: 08-31 00:58:36] {1532} INFO - iteration 21, current learner xgboost\n",
+ "[flaml.automl: 08-31 00:58:36] {1689} INFO - at 5.1s,\tbest xgboost's error=0.6413,\tbest lgbm's error=0.6375\n",
+ "[flaml.automl: 08-31 00:58:36] {1532} INFO - iteration 22, current learner lgbm\n",
+ "[flaml.automl: 08-31 00:58:36] {1689} INFO - at 5.2s,\tbest lgbm's error=0.6375,\tbest lgbm's error=0.6375\n",
+ "[flaml.automl: 08-31 00:58:36] {1532} INFO - iteration 23, current learner lgbm\n",
+ "[flaml.automl: 08-31 00:58:37] {1689} INFO - at 5.4s,\tbest lgbm's error=0.6375,\tbest lgbm's error=0.6375\n",
+ "[flaml.automl: 08-31 00:58:37] {1532} INFO - iteration 24, current learner xgboost\n",
+ "[flaml.automl: 08-31 00:58:37] {1689} INFO - at 5.6s,\tbest xgboost's error=0.6413,\tbest lgbm's error=0.6375\n",
+ "[flaml.automl: 08-31 00:58:37] {1532} INFO - iteration 25, current learner extra_tree\n",
+ "[flaml.automl: 08-31 00:58:37] {1689} INFO - at 5.8s,\tbest extra_tree's error=0.6428,\tbest lgbm's error=0.6375\n",
+ "[flaml.automl: 08-31 00:58:37] {1532} INFO - iteration 26, current learner rf\n",
+ "[flaml.automl: 08-31 00:58:37] {1689} INFO - at 6.1s,\tbest rf's error=0.6430,\tbest lgbm's error=0.6375\n",
+ "[flaml.automl: 08-31 00:58:37] {1532} INFO - iteration 27, current learner xgboost\n",
+ "[flaml.automl: 08-31 00:58:37] {1689} INFO - at 6.3s,\tbest xgboost's error=0.6413,\tbest lgbm's error=0.6375\n",
+ "[flaml.automl: 08-31 00:58:37] {1532} INFO - iteration 28, current learner extra_tree\n",
+ "[flaml.automl: 08-31 00:58:38] {1689} INFO - at 6.5s,\tbest extra_tree's error=0.6428,\tbest lgbm's error=0.6375\n",
+ "[flaml.automl: 08-31 00:58:38] {1532} INFO - iteration 29, current learner extra_tree\n",
+ "[flaml.automl: 08-31 00:58:38] {1689} INFO - at 6.8s,\tbest extra_tree's error=0.6428,\tbest lgbm's error=0.6375\n",
+ "[flaml.automl: 08-31 00:58:38] {1532} INFO - iteration 30, current learner lgbm\n",
+ "[flaml.automl: 08-31 00:58:38] {1689} INFO - at 7.1s,\tbest lgbm's error=0.6375,\tbest lgbm's error=0.6375\n",
+ "[flaml.automl: 08-31 00:58:38] {1532} INFO - iteration 31, current learner lgbm\n",
+ "[flaml.automl: 08-31 00:58:39] {1689} INFO - at 7.4s,\tbest lgbm's error=0.6375,\tbest lgbm's error=0.6375\n",
+ "[flaml.automl: 08-31 00:58:39] {1532} INFO - iteration 32, current learner lgbm\n",
+ "[flaml.automl: 08-31 00:58:39] {1689} INFO - at 7.8s,\tbest lgbm's error=0.6366,\tbest lgbm's error=0.6366\n",
+ "[flaml.automl: 08-31 00:58:39] {1532} INFO - iteration 33, current learner extra_tree\n",
+ "[flaml.automl: 08-31 00:58:39] {1689} INFO - at 7.9s,\tbest extra_tree's error=0.6428,\tbest lgbm's error=0.6366\n",
+ "[flaml.automl: 08-31 00:58:39] {1532} INFO - iteration 34, current learner lgbm\n",
+ "[flaml.automl: 08-31 00:58:39] {1689} INFO - at 8.3s,\tbest lgbm's error=0.6366,\tbest lgbm's error=0.6366\n",
+ "[flaml.automl: 08-31 00:58:39] {1532} INFO - iteration 35, current learner rf\n",
+ "[flaml.automl: 08-31 00:58:40] {1689} INFO - at 8.4s,\tbest rf's error=0.6430,\tbest lgbm's error=0.6366\n",
+ "[flaml.automl: 08-31 00:58:40] {1532} INFO - iteration 36, current learner extra_tree\n",
+ "[flaml.automl: 08-31 00:58:40] {1689} INFO - at 8.6s,\tbest extra_tree's error=0.6428,\tbest lgbm's error=0.6366\n",
+ "[flaml.automl: 08-31 00:58:40] {1532} INFO - iteration 37, current learner xgboost\n",
+ "[flaml.automl: 08-31 00:58:40] {1689} INFO - at 9.0s,\tbest xgboost's error=0.6393,\tbest lgbm's error=0.6366\n",
+ "[flaml.automl: 08-31 00:58:40] {1532} INFO - iteration 38, current learner xgboost\n",
+ "[flaml.automl: 08-31 00:58:40] {1689} INFO - at 9.2s,\tbest xgboost's error=0.6393,\tbest lgbm's error=0.6366\n",
+ "[flaml.automl: 08-31 00:58:40] {1532} INFO - iteration 39, current learner lgbm\n",
+ "[flaml.automl: 08-31 00:58:41] {1689} INFO - at 9.5s,\tbest lgbm's error=0.6366,\tbest lgbm's error=0.6366\n",
+ "[flaml.automl: 08-31 00:58:41] {1532} INFO - iteration 40, current learner rf\n",
+ "[flaml.automl: 08-31 00:58:41] {1689} INFO - at 9.6s,\tbest rf's error=0.6430,\tbest lgbm's error=0.6366\n",
+ "[flaml.automl: 08-31 00:58:41] {1532} INFO - iteration 41, current learner extra_tree\n",
+ "[flaml.automl: 08-31 00:58:41] {1689} INFO - at 9.8s,\tbest extra_tree's error=0.6428,\tbest lgbm's error=0.6366\n",
+ "[flaml.automl: 08-31 00:58:41] {1532} INFO - iteration 42, current learner catboost\n",
+ "[flaml.automl: 08-31 00:58:41] {1689} INFO - at 10.0s,\tbest catboost's error=0.6846,\tbest lgbm's error=0.6366\n",
+ "[flaml.automl: 08-31 00:58:41] {1766} INFO - selected model: LGBMClassifier(colsample_bytree=0.9318698026248824,\n",
+ " learning_rate=0.3731008541260285, max_bin=256,\n",
+ " min_child_samples=18, n_estimators=4, num_leaves=19,\n",
+ " objective='binary', reg_alpha=0.04956056407320672,\n",
+ " reg_lambda=3.319594476328555, verbose=-1)\n",
+ "[flaml.automl: 08-31 00:58:41] {1820} INFO - not retraining because the time budget is too small.\n",
+ "[flaml.automl: 08-31 00:58:41] {1364} INFO - fit succeeded\n",
+ "[flaml.automl: 08-31 00:58:41] {1365} INFO - Time taken to find the best model: 7.795238971710205\n",
+ "[flaml.automl: 08-31 00:58:41] {1370} WARNING - Time taken to find the best model is 78% of the provided time budget and not all estimators' hyperparameter search converged. Consider increasing the time budget.\n"
]
}
],
diff --git a/notebook/flaml_azureml.ipynb b/notebook/flaml_azureml.ipynb
index 1acfa7e59..ec72fd9cb 100644
--- a/notebook/flaml_azureml.ipynb
+++ b/notebook/flaml_azureml.ipynb
@@ -124,7 +124,8 @@
"source": [
"settings = {\n",
" \"time_budget\": 60, # total running time in seconds\n",
- " \"metric\": 'accuracy', # primary metrics can be chosen from: ['accuracy','roc_auc','roc_auc_ovr','roc_auc_ovo','f1','log_loss','mae','mse','r2']\n",
+ " \"metric\": 'accuracy', # can be: 'r2', 'rmse', 'mae', 'mse', 'accuracy', 'roc_auc', 'roc_auc_ovr',\n",
+ " # 'roc_auc_ovo', 'log_loss', 'mape', 'f1', 'ap', 'ndcg', 'micro_f1', 'macro_f1'\n",
" \"estimator_list\": ['lgbm', 'rf', 'xgboost'], # list of ML learners\n",
" \"task\": 'classification', # task type \n",
" \"sample\": False, # whether to subsample training data\n",
@@ -265,7 +266,7 @@
"execution_count": null,
"source": [
"from flaml.data import get_output_from_log\n",
- "time_history, best_valid_loss_history, valid_loss_history, config_history, train_loss_history = \\\n",
+ "time_history, best_valid_loss_history, valid_loss_history, config_history, metric_history = \\\n",
" get_output_from_log(filename = settings['log_file_name'], time_budget = 60)\n",
"\n",
"for config in config_history:\n",
diff --git a/notebook/flaml_forecast.ipynb b/notebook/flaml_forecast.ipynb
index 438834144..fc715b54a 100644
--- a/notebook/flaml_forecast.ipynb
+++ b/notebook/flaml_forecast.ipynb
@@ -104,10 +104,7 @@
" \"metric\": 'mape', # primary metric for validation: 'mape' is generally used for forecast tasks\n",
" \"task\": 'forecast', # task type\n",
" \"log_file_name\": 'CO2_forecast.log', # flaml log file\n",
- " \"eval_method\": \"holdout\", # validation method can be chosen from ['auto', 'holdout', 'cv']\n",
- " # \"estimator_list\": [\"sarimax\"],\n",
- " # \"verbose\": 3,\n",
- " \"split_type\": 'time' # for foretask task, 'split_type' has to be 'time'\n",
+ " \"eval_method\": \"holdout\", # validation method can be chosen from ['auto', 'holdout', 'cv']\n",
"}"
],
"outputs": [],
@@ -1355,7 +1352,7 @@
"execution_count": 11,
"source": [
"from flaml.data import get_output_from_log\n",
- "time_history, best_valid_loss_history, valid_loss_history, config_history, train_loss_history = \\\n",
+ "time_history, best_valid_loss_history, valid_loss_history, config_history, metric_history = \\\n",
" get_output_from_log(filename=settings['log_file_name'], time_budget=300)\n",
"\n",
"for config in config_history:\n",
diff --git a/notebook/flaml_lightgbm.ipynb b/notebook/flaml_lightgbm.ipynb
index afeabfbd8..e92f1da0e 100644
--- a/notebook/flaml_lightgbm.ipynb
+++ b/notebook/flaml_lightgbm.ipynb
@@ -445,7 +445,7 @@
"execution_count": 11,
"source": [
"from flaml.data import get_output_from_log\n",
- "time_history, best_valid_loss_history, valid_loss_history, config_history, train_loss_history = \\\n",
+ "time_history, best_valid_loss_history, valid_loss_history, config_history, metric_history = \\\n",
" get_output_from_log(filename=settings['log_file_name'], time_budget=60)\n",
"\n",
"for config in config_history:\n",
diff --git a/notebook/flaml_xgboost.ipynb b/notebook/flaml_xgboost.ipynb
index 8f2e14181..7257bea0a 100644
--- a/notebook/flaml_xgboost.ipynb
+++ b/notebook/flaml_xgboost.ipynb
@@ -362,7 +362,7 @@
"execution_count": 10,
"source": [
"from flaml.data import get_output_from_log\n",
- "time_history, best_valid_loss_history, valid_loss_history, config_history, train_loss_history = \\\n",
+ "time_history, best_valid_loss_history, valid_loss_history, config_history, metric_history = \\\n",
" get_output_from_log(filename=settings['log_file_name'], time_budget=60)\n",
"\n",
"for config in config_history:\n",
diff --git a/setup.py b/setup.py
index 343a8136f..3352f45dc 100644
--- a/setup.py
+++ b/setup.py
@@ -62,7 +62,7 @@ setuptools.setup(
"optuna==2.8.0"
],
"ray": [
- "ray[tune]==1.5.1",
+ "ray[tune]==1.6.0",
"pyyaml<5.3.1",
],
"azureml": [
@@ -75,7 +75,7 @@ setuptools.setup(
"vowpalwabbit",
],
"nlp": [
- "ray[tune]>=1.5.1",
+ "ray[tune]>=1.6.0",
"transformers",
"datasets==1.4.1",
"tensorboardX<=2.2",
diff --git a/test/test_automl.py b/test/test_automl.py
index 7afe088d2..f9a182ac6 100644
--- a/test/test_automl.py
+++ b/test/test_automl.py
@@ -111,7 +111,8 @@ class MyLargeLGBM(LGBMEstimator):
def custom_metric(X_test, y_test, estimator, labels, X_train, y_train,
- weight_test=None, weight_train=None):
+ weight_test=None, weight_train=None, config=None,
+ groups_test=None, groups_train=None):
from sklearn.metrics import log_loss
import time
start = time.time()
@@ -162,7 +163,10 @@ class TestAutoML(unittest.TestCase):
"sample": True, # whether to subsample training data
"log_file_name": "test/wine.log",
"log_training_metric": True, # whether to log training metric
- "ensemble": True,
+ "ensemble": {
+ "final_estimator": MyRegularizedGreedyForest(),
+ "passthrough": False,
+ },
"n_jobs": 1,
}
@@ -274,9 +278,9 @@ class TestAutoML(unittest.TestCase):
task='multi')
print(estimator)
time_history, best_valid_loss_history, valid_loss_history, \
- config_history, train_loss_history = get_output_from_log(
+ config_history, metric_history = get_output_from_log(
filename=automl_settings['log_file_name'], time_budget=6)
- print(train_loss_history)
+ print(metric_history)
def test_classification(self, as_frame=False):
automl_experiment = AutoML()
@@ -496,6 +500,30 @@ class TestAutoML(unittest.TestCase):
print(automl_experiment.best_iteration)
print(automl_experiment.best_estimator)
+ def test_parallel(self, hpo_method=None):
+ automl_experiment = AutoML()
+ automl_settings = {
+ "time_budget": 10,
+ "task": 'regression',
+ "log_file_name": "test/boston.log",
+ "log_type": "all",
+ "n_jobs": 1,
+ "n_concurrent_trials": 2,
+ "hpo_method": hpo_method,
+ }
+ X_train, y_train = load_boston(return_X_y=True)
+ try:
+ automl_experiment.fit(X_train=X_train, y_train=y_train,
+ **automl_settings)
+ print(automl_experiment.predict(X_train))
+ print(automl_experiment.model)
+ print(automl_experiment.config_history)
+ print(automl_experiment.model_history)
+ print(automl_experiment.best_iteration)
+ print(automl_experiment.best_estimator)
+ except ImportError:
+ return
+
def test_parallel_xgboost(self, hpo_method=None):
automl_experiment = AutoML()
automl_settings = {
diff --git a/test/test_forecast.py b/test/test_forecast.py
index 381ab60a4..6bb662186 100644
--- a/test/test_forecast.py
+++ b/test/test_forecast.py
@@ -1,20 +1,19 @@
-def test_forecast_automl_df(budget=5):
+import numpy as np
+from flaml import AutoML
+
+
+def test_forecast_automl(budget=5):
# using dataframe
import statsmodels.api as sm
- data = sm.datasets.co2.load_pandas()
- data = data.data
- data = data['co2'].resample('MS').mean()
- data = data.fillna(data.bfill())
- data = data.to_frame().reset_index()
- data = data.rename(columns={'index': 'ds', 'co2': 'y'})
+ data = sm.datasets.co2.load_pandas().data['co2'].resample('MS').mean()
+ data = data.fillna(data.bfill()).to_frame().reset_index().rename(
+ columns={'index': 'ds', 'co2': 'y'})
num_samples = data.shape[0]
time_horizon = 12
split_idx = num_samples - time_horizon
- X_train = data[:split_idx]
- X_test = data[split_idx:]['ds'].to_frame()
- y_test = data[split_idx:]['y'].to_frame()
- ''' import AutoML class from flaml package '''
- from flaml import AutoML
+ df = data[:split_idx]
+ X_test = data[split_idx:]['ds']
+ y_test = data[split_idx:]['y']
automl = AutoML()
settings = {
"time_budget": budget, # total running time in seconds
@@ -22,13 +21,14 @@ def test_forecast_automl_df(budget=5):
"task": 'forecast', # task type
"log_file_name": 'CO2_forecast.log', # flaml log file
"eval_method": "holdout",
- "split_type": 'time'
}
'''The main flaml automl API'''
try:
- automl.fit(dataframe=X_train, **settings, period=time_horizon, freq='M')
+ automl.fit(dataframe=df, **settings, period=time_horizon)
except ImportError:
- automl.fit(dataframe=X_train, **settings, estimator_list=['arima', 'sarimax'], period=time_horizon, freq='M')
+ print("not using FBProphet due to ImportError")
+ automl.fit(dataframe=df, **settings, estimator_list=[
+ 'arima', 'sarimax'], period=time_horizon)
''' retrieve best config and best learner'''
print('Best ML leaner:', automl.best_estimator)
print('Best hyperparmeter config:', automl.best_config)
@@ -47,7 +47,7 @@ def test_forecast_automl_df(budget=5):
from flaml.ml import sklearn_metric_loss_score
print('mape', '=', sklearn_metric_loss_score('mape', y_pred, y_test))
from flaml.data import get_output_from_log
- time_history, best_valid_loss_history, valid_loss_history, config_history, train_loss_history = \
+ time_history, best_valid_loss_history, valid_loss_history, config_history, metric_history = \
get_output_from_log(filename=settings['log_file_name'], time_budget=budget)
for config in config_history:
print(config)
@@ -55,65 +55,46 @@ def test_forecast_automl_df(budget=5):
print(automl.max_resource)
print(automl.min_resource)
+ X_train = df['ds']
+ y_train = df['y']
+ automl = AutoML()
+ try:
+ automl.fit(X_train=X_train, y_train=y_train, **settings, period=time_horizon)
+ except ImportError:
+ print("not using FBProphet due to ImportError")
+ automl.fit(X_train=X_train, y_train=y_train, **settings, estimator_list=[
+ 'arima', 'sarimax'], period=time_horizon)
-def test_forecast_automl_Xy(budget=5):
- # using X_train and y_train
- import statsmodels.api as sm
- data = sm.datasets.co2.load_pandas()
- data = data.data
- data = data['co2'].resample('MS').mean()
- data = data.fillna(data.bfill())
- data = data.to_frame().reset_index()
- num_samples = data.shape[0]
- time_horizon = 12
- split_idx = num_samples - time_horizon
- X_train = data[:split_idx]['index'].to_frame()
- y_train = data[:split_idx]['co2']
- X_test = data[split_idx:]['index'].to_frame()
- y_test = data[split_idx:]['co2'].to_frame()
- ''' import AutoML class from flaml package '''
- from flaml import AutoML
+
+def test_numpy():
+ X_train = np.arange('2014-01', '2021-01', dtype='datetime64[M]')
+ y_train = np.random.random(size=72)
automl = AutoML()
- settings = {
- "time_budget": budget, # total running time in seconds
- "metric": 'mape', # primary metric
- "task": 'forecast', # task type
- "log_file_name": 'CO2_forecast.log', # flaml log file
- "eval_method": "holdout",
- "split_type": 'time'
- }
- '''The main flaml automl API'''
try:
- automl.fit(X_train=X_train, y_train=y_train, **settings, period=time_horizon, freq='M')
+ automl.fit(
+ X_train=X_train[:60], # a single column of timestamp
+ y_train=y_train, # value for each timestamp
+ period=12, # time horizon to forecast, e.g., 12 months
+ task='forecast', time_budget=3, # time budget in seconds
+ log_file_name="test/forecast.log")
+ print(automl.predict(X_train[60:]))
+ print(automl.predict(12))
+ except ValueError:
+ print("ValueError for FBProphet is raised as expected.")
except ImportError:
- automl.fit(X_train=X_train, y_train=y_train, **settings, estimator_list=['arima', 'sarimax'], period=time_horizon, freq='M')
- ''' retrieve best config and best learner'''
- print('Best ML leaner:', automl.best_estimator)
- print('Best hyperparmeter config:', automl.best_config)
- print(f'Best mape on validation data: {automl.best_loss}')
- print(f'Training duration of best run: {automl.best_config_train_time}s')
- print(automl.model.estimator)
- ''' pickle and save the automl object '''
- import pickle
- with open('automl.pkl', 'wb') as f:
- pickle.dump(automl, f, pickle.HIGHEST_PROTOCOL)
- ''' compute predictions of testing dataset '''
- y_pred = automl.predict(X_test)
- print('Predicted labels', y_pred)
- print('True labels', y_test)
- ''' compute different metric values on testing dataset'''
- from flaml.ml import sklearn_metric_loss_score
- print('mape', '=', sklearn_metric_loss_score('mape', y_pred, y_test))
- from flaml.data import get_output_from_log
- time_history, best_valid_loss_history, valid_loss_history, config_history, train_loss_history = \
- get_output_from_log(filename=settings['log_file_name'], time_budget=budget)
- for config in config_history:
- print(config)
- print(automl.prune_attr)
- print(automl.max_resource)
- print(automl.min_resource)
+ print("not using FBProphet due to ImportError")
+ automl = AutoML()
+ automl.fit(
+ X_train=X_train[:72], # a single column of timestamp
+ y_train=y_train, # value for each timestamp
+ period=12, # time horizon to forecast, e.g., 12 months
+ task='forecast', time_budget=1, # time budget in seconds
+ estimator_list=['arima', 'sarimax'],
+ log_file_name="test/forecast.log")
+ print(automl.predict(X_train[72:]))
+ # an alternative way to specify predict steps for arima/sarimax
+ print(automl.predict(12))
if __name__ == "__main__":
- test_forecast_automl_df(60)
- test_forecast_automl_Xy(60)
+ test_forecast_automl(60)
diff --git a/test/test_notebook_example.py b/test/test_notebook_example.py
index 01e910949..a36eac969 100644
--- a/test/test_notebook_example.py
+++ b/test/test_notebook_example.py
@@ -42,7 +42,7 @@ def test_automl(budget=5, dataset_format='dataframe'):
print('roc_auc', '=', 1 - sklearn_metric_loss_score('roc_auc', y_pred_proba, y_test))
print('log_loss', '=', sklearn_metric_loss_score('log_loss', y_pred_proba, y_test))
from flaml.data import get_output_from_log
- time_history, best_valid_loss_history, valid_loss_history, config_history, train_loss_history = \
+ time_history, best_valid_loss_history, valid_loss_history, config_history, metric_history = \
get_output_from_log(filename=settings['log_file_name'], time_budget=60)
for config in config_history:
print(config)
diff --git a/test/test_python_log.py b/test/test_python_log.py
index 0d42876a3..6ed88e36a 100644
--- a/test/test_python_log.py
+++ b/test/test_python_log.py
@@ -62,11 +62,11 @@ class TestLogging(unittest.TestCase):
config = automl.best_config.copy()
config['learner'] = automl.best_estimator
automl.trainable({"ml": config})
- from flaml import tune, CFO
+ from flaml import tune, BlendSearch
from flaml.automl import size
from functools import partial
- search_alg = CFO(
- metric='val_loss',
+ search_alg = BlendSearch(
+ metric='val_loss', mode='min',
space=automl.search_space,
low_cost_partial_config=automl.low_cost_partial_config,
points_to_evaluate=automl.points_to_evaluate,
diff --git a/test/test_split.py b/test/test_split.py
index 1b9b88848..8e97b3dac 100644
--- a/test/test_split.py
+++ b/test/test_split.py
@@ -74,5 +74,41 @@ def test_groups():
automl.fit(X, y, **automl_settings)
+def test_rank():
+ from sklearn.externals._arff import ArffException
+ try:
+ X, y = fetch_openml(name=dataset, return_X_y=True)
+ except (ArffException, ValueError):
+ from sklearn.datasets import load_wine
+ X, y = load_wine(return_X_y=True)
+ y = y.cat.codes
+ import numpy as np
+ automl = AutoML()
+ automl_settings = {
+ "time_budget": 2,
+ "task": "rank",
+ "log_file_name": "test/{}.log".format(dataset),
+ "model_history": True,
+ "eval_method": "cv",
+ "groups": np.array( # group labels
+ [0] * 200 + [1] * 200 + [2] * 200 + [3] * 200 + [4] * 100 + [5] * 100),
+ "learner_selector": "roundrobin",
+ }
+ automl.fit(X, y, **automl_settings)
+
+ automl = AutoML()
+ automl_settings = {
+ "time_budget": 2,
+ "task": "rank",
+ "metric": "ndcg@5", # 5 can be replaced by any number
+ "log_file_name": "test/{}.log".format(dataset),
+ "model_history": True,
+ "groups": [200] * 4 + [100] * 2, # alternative way: group counts
+ # "estimator_list": ['lgbm', 'xgboost'], # list of ML learners
+ "learner_selector": "roundrobin",
+ }
+ automl.fit(X, y, **automl_settings)
+
+
if __name__ == "__main__":
unittest.main()