问题:在运行网格搜索训练XGBOOST时,grid3.fit(x_train,y_train),这里提示错误
packages/joblib/externals/loky/backend/synchronize.py", line 122, in __setstate__ self._semlock = _SemLock._rebuild(*state) FileNotFoundError: [Errno 2] No such file or directory
TerminatedWorkerError: A worker process managed by the executor was unexpectedly terminated. This could be caused by a segmentation fault while calling the function or by an excessive memory usage causing the Operating System to kill the worker.
解决办法:
1. conda list, 查看安装的joblib版本,现在是1.2.0
2. conda unistall joblib # 卸载现版本
3. conda install joblib==1.1.0 #这个版本比较稳定,换了个版本安装