Closed xiaolinzhuo closed 4 years ago
When calling fit_scores, I got the Error: Unable to coerce to Series. I think the problem is in the _scores_to_accuracy function. The y object is a pandas dataframe, and it can't be directly compared to the list preds. y.values would work.
return (y.values == preds).sum() * 1.0 / len(y)
https://github.com/benmiroglio/pymatch/blob/f199dfdc79647a0603f0fb98cdfaff197819724c/pymatch/Matcher.py#L517
When calling fit_scores, I got the Error: Unable to coerce to Series. I think the problem is in the _scores_to_accuracy function. The y object is a pandas dataframe, and it can't be directly compared to the list preds. y.values would work.
return (y.values == preds).sum() * 1.0 / len(y)
https://github.com/benmiroglio/pymatch/blob/f199dfdc79647a0603f0fb98cdfaff197819724c/pymatch/Matcher.py#L517