关于参数转换
比如这个模型forest = RandomForestRegressor(min_samples_split=i + 2, random_state=1, n_jobs=-1),
怎么样能实现如下:
string = min_samples_spli
forest = RandomForestRegressor(string =i + 2, random_state=1, n_jobs=-1) 不明白在说什么,详细一点 forest = RandomForestRegressor(min_samples_split=i + 2, random_state=1, n_jobs=-1),
string = i + 2
forest = RandomForestRegressor(string, 1, -1)
或者直接:
forest = RandomForestRegressor(string)
页:
[1]