param_test1 = {'n_estimators':range(20,81,10)}
gsearch1 = GridSearchCV(estimator = GradientBoostingClassifier(learning_rate=0.1,
min_samples_split=500,
min_samples_leaf=50,
max_depth=8,
max_features='sqrt',
subsample=0.8,
random_state=10),
param_grid = param_test1,
scoring='roc_auc',
n_jobs=4,
iid=False,
cv=5)
gsearch1.fit(train[predictors],train[target]) #getting error on this line
错误:PermissionError: [WinError 32] 该进程无法访问该文件,因为它正被另一个进程使用:'C:\Users\xx\AppData\Local\Temp\joblib_memmapping_folder_xx\xx-xx-xx.pkl'
Windows 10 Python 3.6.4 sklearn.__version__ Out[26]: '0.20.2'
请让我知道如何修复此错误。
这似乎是一个普遍的问题。谷歌搜索错误(这总是很好的做法:-))导致这里,他们提供了这个解决方法:
感谢您提供详细信息。现在我使用 Parallel with
max_nbytes=None
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句