Hyperband __init __()中的TypeError

我在Hyperband上遇到问题,在 init ()中我得到了一个意想不到的论点。

TypeError: __init__() got an unexpected keyword argument 'fit_params'

我已经看过这些问题通常与版本控制有关,因此我进行了查找,但是在线上没有关于Hyperband实施的大量信息,或者很多信息都在R中。我为scikit运行--upgrade,但是终端说我有当前版本。

我使用了this git存储库上的安装步骤,然后从Python 3.6.5的超波段文档中试用了general example

model = RandomForestClassifier()
param_dist = {
    'max_depth': [3,None],'max_features': sp_randint(1,11),'min_samples_split': sp_randint(2,'min_samples_leaf': sp_randint(1,'bootstrap': [True,False],'criterion': ['gini','entropy']
}

digits = load_digits()
X,y = digits.data,digits.target
y = LabelBinarizer().fit_transform(y)

search = HyperbandSearchCV(model,param_dist,resource_param='n_estimators',scoring='roc_auc',n_jobs=1,verbose=1)

所以我总是得到带有内联引用的TypeError

~/anaconda3/lib/python3.6/site-packages/scikit_hyperband-0.0.1-py3.6.egg/hyperband/search.py in __init__(self,estimator,param_distributions,resource_param,eta,min_iter,max_iter,skip_last,scoring,n_jobs,iid,refit,cv,verbose,pre_dispatch,random_state,error_score,return_train_score)

显然没有fit_params。

我不了解的事情正在发生。有任何想法吗?谢谢!

di880518 回答:Hyperband __init __()中的TypeError

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3134436.html

大家都在问