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
Different behaviour on python-exported model and C++ API predictor #2549
Comments
This problem is still reproducible, snippet is the same. Please, reopen issue |
What is the commit where it can be reproduced? |
|
I cannot reproduce it, the example in the description works for me. Also, using catboost 1.2.3 (
|
Different behaviour on python-exported model and C++ API predictor
Catboost version: 1.2.2
CPU: Intel Core i5-8550U
OS: Ubuntu [20.04]
I have the trained catboost model (see
multi_class.py
in attachment) and saved it asmodel.cbm
andmodel.py
. Besides,I have saved the input and the answer for one row in
input.1.json
.In C++ I have the following code:
and the answer matches.
If I look at the python-exported file, then the error is immediately visible there:
* model.dimension
shouldn't be there (as it is in cpp-exported version, for now it raisesindex out of bound
exception).
I fixed it in
model.fixed.py
file and add some code to predict a model:but the answer doesn't match. I suppose it's a problem. Or am I doing something wrong?
Attachment
https://gist.github.com/mkornaukhov03/5c5d9e394f17141cac4fa63d2b09e026
The text was updated successfully, but these errors were encountered: