nok / sklearn-porter

Transpile trained scikit-learn estimators to C, Java, JavaScript and others.
BSD 3-Clause "New" or "Revised" License
1.29k stars 170 forks source link

FIXED bug in C method for DecisionTree classifiers #11

Closed mesarpe closed 7 years ago

mesarpe commented 7 years ago

The DecisionTree method was using the number of classes instead of number of features for the size of the input parameter of the predict function.

This situation might provoke a SIGSEGV