groupkfold 报错:raise keyerror(f“{not foud} not in index“)

groupkfold 报错:raise keyerror(f“{not foud} not in index“)_第1张图片

【1】使用groupkfold 的时候出现以上报错:索引错误,groups的索引和x y 的不对应

【2】源代码:

groupkfold 报错:raise keyerror(f“{not foud} not in index“)_第2张图片

【3】进行修改:

groupkfold 报错:raise keyerror(f“{not foud} not in index“)_第3张图片 

 可以成功索引!!!

你可能感兴趣的:(python)