mirror of
https://github.com/microsoft/autogen.git
synced 2025-09-19 05:04:20 +00:00
20 lines
561 B
Python
20 lines
561 B
Python
![]() |
from flaml.automl.model import LGBMEstimator
|
||
|
from flaml import tune
|
||
|
|
||
|
|
||
|
class MyLargeLGBM(LGBMEstimator):
|
||
|
@classmethod
|
||
|
def search_space(cls, **params):
|
||
|
return {
|
||
|
"n_estimators": {
|
||
|
"domain": tune.lograndint(lower=4, upper=32768),
|
||
|
"init_value": 32768,
|
||
|
"low_cost_init_value": 4,
|
||
|
},
|
||
|
"num_leaves": {
|
||
|
"domain": tune.lograndint(lower=4, upper=32768),
|
||
|
"init_value": 32768,
|
||
|
"low_cost_init_value": 4,
|
||
|
},
|
||
|
}
|