Skip to content
Advertisement

Tag: knn

AttributeError: ‘dict’ object has no attribute ‘data’

An error occurred while executing the KNN algorithm. I don’t know where the error occurred. Can anyone help me? Please. There is a code below. I don’t know why, but the code was cut. Answer One line defines: That’s a dict comprehension statement In the next loop you have It’s that use of .data that’s giving problem. With a dict

Advertisement