Closed ductri closed 7 years ago
Hello @ductri,
I understand that issue, but I haven't any model which causes the described error. Can you share the original or a similar model?
Happy coding, Darius 🌵
Edit:
I found a dataset which causes the error.
Hello @ductri,
the bug is fixed https://github.com/nok/sklearn-porter/commit/4ef6cad723a4c572959d67291b06ed1b7deee7e7. The size of the initialized array was too small. Thanks for your hint!
I published a minor update to pypi. Now you can update the module by typing:
pip install sklearn-porter -U
Happy coding, Darius 🌵
I used code tag but I don't know why it doesn't show end line propriety
There are 2 bugs in code of Java. They are the same type.
In my understanding, the second loop will run with d and l are always initialized to 0 and 13 correspondingly. But actually it won't. This code raise exception ArrayIndexOutOfBoundsException.
I suggest that you need to add a line:
d = 0;
right after the firstfor
statement (l=13;
doesn't need because it is a constant here).The same bug with this code: