@@ -14,6 +14,7 @@ def __init__(self,
1414 initial_configurations_via_metalearning = 25 ,
1515 ensemble_size = 50 ,
1616 ensemble_nbest = 50 ,
17+ ensemble_memory_limit = 1024 ,
1718 seed = 1 ,
1819 ml_memory_limit = 3072 ,
1920 include_estimators = None ,
@@ -63,6 +64,11 @@ def __init__(self,
6364 ensemble. Implements `Model Library Pruning` from `Getting the
6465 most out of ensemble selection`.
6566
67+ ensemble_memory_limit : int, optional (1024)
68+ Memory limit in MB for the ensemble building process.
69+ `auto-sklearn` will reduce the number of considered models
70+ (``ensemble_nbest``) if the memory limit is reached.
71+
6672 seed : int, optional (default=1)
6773 Used to seed SMAC. Will determine the output file names.
6874
@@ -157,16 +163,16 @@ def __init__(self,
157163 optimization/validation set, which would later on be used to build
158164 an ensemble.
159165 * ``'model'`` : do not save any model files
160-
166+
161167 smac_scenario_args : dict, optional (None)
162168 Additional arguments inserted into the scenario of SMAC. See the
163169 `SMAC documentation <https://automl.github.io/SMAC3/stable/options.html?highlight=scenario#scenario>`_
164170 for a list of available arguments.
165-
171+
166172 get_smac_object_callback : callable
167173 Callback function to create an object of class
168174 `smac.optimizer.smbo.SMBO <https://automl.github.io/SMAC3/stable/apidoc/smac.optimizer.smbo.html>`_.
169- The function must accept the arguments ``scenario_dict``,
175+ The function must accept the arguments ``scenario_dict``,
170176 ``instances``, ``num_params``, ``runhistory``, ``seed`` and ``ta``.
171177 This is an advanced feature. Use only if you are familiar with
172178 `SMAC <https://automl.github.io/SMAC3/stable/index.html>`_.
@@ -191,6 +197,7 @@ def __init__(self,
191197 self .initial_configurations_via_metalearning = initial_configurations_via_metalearning
192198 self .ensemble_size = ensemble_size
193199 self .ensemble_nbest = ensemble_nbest
200+ self .ensemble_memory_limit = ensemble_memory_limit
194201 self .seed = seed
195202 self .ml_memory_limit = ml_memory_limit
196203 self .include_estimators = include_estimators
@@ -236,6 +243,7 @@ def build_automl(self):
236243 self .initial_configurations_via_metalearning ,
237244 ensemble_size = self .ensemble_size ,
238245 ensemble_nbest = self .ensemble_nbest ,
246+ ensemble_memory_limit = self .ensemble_memory_limit ,
239247 seed = self .seed ,
240248 ml_memory_limit = self .ml_memory_limit ,
241249 include_estimators = self .include_estimators ,
0 commit comments