-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Read/save bins Issue #96 #277
Read/save bins Issue #96 #277
Conversation
Hi @alexliap. Thanks for taking the time to develop this PR. However, this is not what I had in mind (sorry if the description was lacking details). The json file should contain all the information needed to build the binning table. |
Thank you for the response. |
What about now, i save all the data required for the binning table, but is this the way you want it to behave? should the self._check_is_fitted() change in order to be able to call self.binning_table instead of self._binning_table ? |
Commited by mistake
Commited by mistake
Yes, this looks good to me. Regarding self._is_fitted, yes, I think it should be set to True when reading from JSON. |
To complete the PR, it would be nice to have unit tests for all binning classes. I mention this because the binning table classes require different arguments depending on the target type, so continuous and multiclass targets will not work automatically. |
Yes of course, I'm on it |
uuum question, why MulticlassOptBinning doesn't require dtype of variable as input? |
MulticlassOptBinning only accepts numerical dtype. |
Thanks! |
1a74eb5
into
guillermo-navas-palencia:develop
This PR aims to resolve Issue #96 by adding to class methods to OptimalBinning object, to_json & read_json.
Continuous and Multiclass binning inherit from that class, so no other methods were needed.
The to_json method also saves the transformation of the training data as requested in the Issue.