Sorry I'm still a beginner. I want to find out if this model works properly or not, but there is an error.
knn_model = pickle.load(open('knn_pickle.sav', 'rb'))
value_Output = ''
data = (2, 12, 96, 53, 1, 1)
result_Prediction = knn_model.predict([data])
if(result_Prediction[0] == 1):
value_Output = 'It works'
else:
value_Output = "It doesn't work"
And then I hit this error:
AttributeError: Can't get attribute 'EuclideanDistance' on <module 'sklearn.metrics._dist_metrics'
from 'C:\\Python311\\Lib\\site-packages\\sklearn\\metrics\\_dist_metrics.cp311-win_amd64.pyd'>
Anyone can help me please?