Incremental Learning in Scikit with PassiveAggressiveClassifier's partial_fit

后端 未结 4 1327
长发绾君心
长发绾君心 2021-01-23 09:07

I\'m trying to train a PassiveAggressiveClassifier using TfidVectorizer with partial_fit technique in the script below:

Co

4条回答
  •  我在风中等你
    2021-01-23 09:31

    As a solution I would say that using HashingVectorizer can fit your needs as you can set the number of features in the constructor.

    You may prefer to use TfidfVectorizer and maybe it is more suitable for your situation. I let the answer until someone give something that use a more useful for you.

    Hope there will be. Don't forget to accept the one you choose

提交回复
热议问题