Replies: 2 comments 4 replies
-
Hello! Could you please provide a minimal, reproducible example? We can't help you with only this description. Thanks in advance. |
Beta Was this translation helpful? Give feedback.
1 reply
-
scikit-learn SGDClassifier does indeed require all the vocab to be specified in the first sample. May I ask why you're using it, and not River's LogisticRegression? The latter has the exact same performance as its scikit-learn equivalent, but doesn't have this sample shape consistency issue. Meta: you can highlight code with ``` when using GitHub, it makes it easier on the eyes |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
i am trying to implement incremental learning using SVM/ SVC classifier using river library. When I am trying to use the learn_one command, I get an error stating that - "X is expecting 17 vectors, getting 2". I am guessing this is because when I am trying to pass documents one by one through the algo in a loop, it creates a matrix of features based on the first pass, and sets that as the length. When I go over the second pass of the loop, it is trying to find those words in the corpora to increment the frequencies.
Can you please tell me if i am thinking in the correct direction here? if not, please suggest how can I train a model incrementally using SVM.
Thank you in advance for your help !
Beta Was this translation helpful? Give feedback.
All reactions