Replies: 1 comment 2 replies
-
I'll let @smastelini answer. I'm quite sure this can be handled, and is just a limitation of the current implementation. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've noticed that KNNClassifier expects consistent number of features, i.e. training instances should stick to same the features as seen in the first instance, or documents should stick to the same vocabulary as seen by the first one.
I understand this is by design:
But doesn't this contradict with the online learning nature of the library, especially when using KNN to classify text documents, then it is very hard to know the vocabulary beforehand. Happy to research possible solutions if you are up for that
Beta Was this translation helpful? Give feedback.
All reactions