mac 下sklearn grid_search无法启动多线程

如指定n_Jobs为-1(最大),或>1时,无法执行且无任何输出。
gsearch = GridSearchCV(gbm,param_grid=parameters,scoring='accuracy',cv=5,verbose=1,n_jobs=-1)
gsearch.fit(x_train,y_train)

暂时未找到解决办法,相关issue:
https://github.com/scikit-learn/scikit-learn/issues/5115

你可能感兴趣的:(mac 下sklearn grid_search无法启动多线程)