Jan-17-2022, 09:53 PM
Hi all,
First post here. I found this forum and the thread while searching from the same thing as @tmhsa. The difference in the solution that worked for me was that I had to use
Just wanted to say thanks for pointing me in the right direction, so while it might seem as rubber ducking to some this was actually very helpful to others, and I wanted to let the author know. Hopefully to also help someone else in the future who might have a similar issue.
First post here. I found this forum and the thread while searching from the same thing as @tmhsa. The difference in the solution that worked for me was that I had to use
print(cross_val_score(model, np.array(X), np.array(y), cv=10, scoring='accuracy').mean())So, without
sklearn.model_selection
.Just wanted to say thanks for pointing me in the right direction, so while it might seem as rubber ducking to some this was actually very helpful to others, and I wanted to let the author know. Hopefully to also help someone else in the future who might have a similar issue.