超参数调优的时候,如何同时设置一个组件中的两个参数
由xuliang创建,最终由xuliang 被浏览 95 用户
def bigquant_run():
param_grid = {}
# 在这里设置需要调优的参数备选
# param_grid['m3.features'] = ['close_1/close_0', 'close_2/close_0\nclose_3/close_0']
# param_grid['m6.number_of_trees'] = [5, 10, 20]
##param_grid["m29.alpha"] = [0.01,0.03,0.1, 0.3]
arr = []
for i in range(100,200):
arr.append(i)
param_grid["m4.n_estimators"] = arr
return param_grid
比如想同时配置开始时间和结束时间(配对),要怎么写。