如何进行搜索RBFSampler
I want to gridsearch RBFSampler在LightGBM中。我不想更改LightGBM的任何参数,只是RBFSAMPLER的参数。我很难通过RBFSampler弄清楚在哪里运行我的功能(X)。
代码:
gamma = [.1,1,10]
n_components = [10,100,1000]
param_grid = {
"gamma": gamma,
"n_components": n_components,
}
search = GridSearchCV(
LGBMClassifier(n_jobs=-1,verbosity=0)
,param_grid=param_grid,n_jobs=-1,cv=tscv,verbose=0,
)
search.fit(X, y)
I want to gridsearch RBFSampler in LightGBM. I don't want to change any params of LightGBM, just the params of RBFSampler. I am having trouble figuring out where to run my features (X) through RBFSampler.
Code:
gamma = [.1,1,10]
n_components = [10,100,1000]
param_grid = {
"gamma": gamma,
"n_components": n_components,
}
search = GridSearchCV(
LGBMClassifier(n_jobs=-1,verbosity=0)
,param_grid=param_grid,n_jobs=-1,cv=tscv,verbose=0,
)
search.fit(X, y)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要一条管道与模型一起收集
rbfsampler
。You need a pipeline to collect the
RBFSampler
together with the model.