Support saving/loading models that use OnlineCountVectorizer#1616
Support saving/loading models that use OnlineCountVectorizer#161627pchrisl wants to merge 1 commit intoMaartenGr:masterfrom
Conversation
|
Thanks for the PR! I am not entirely sure if adding the parameters manually is the right way to go here. What if the parameters of |
|
Hi @MaartenGr, no it is certainly not ideal! This was previously mentioned in scikit-learn/scikit-learn#8822 and discussed further in scikit-learn/scikit-learn#13555 - it seems for now this is the way others handle this. I could add a test case that compared the params of |
Although that would help detect any issues in newer versions, it will still break the code requiring an immediate update. It is a nice solution if there is not alternative but what about the following I mentioned in the previous message:
This could be implemented as shown in the below example: https://stackoverflow.com/a/56491394/10532563 |
This PR adds support for serializing the config of the OnlineCountVectorizer by explicitly stating all the constructor properties. Based on the test, it looks like no other changes were needed to support the loading of the vectorizer.
Fixes #1431