问题如下:当运行以下代码时
在谷歌 Colab 上,它返回错误。
grid = GridSearchCV(estimator=model, param_grid=param_grid, n_jobs=-1)
grid_result = grid.fit(X, y)
在谷歌 Colab 上,它返回错误。
PicklingError: Could not pickle the task to send it to the workers.
然而,如果我设置 n_jobs = 1
,它可以完美运行。
我该如何在Google Colab上使用多个处理器?
n_jobs=2
? - Raha Moosavi