Transpile trained scikit-learn estimators to C, Java, JavaScript and others.
BSD 3-Clause "New" or "Revised" License
1.28k
stars
170
forks
source link
(SVC export) N_vector size of the exported C is not the same with the size of training sample #64
Open
libo-wu opened 4 years ago
I fount that N_vector size of the exported C is not the same with the size of the training sample.
Method: I use the sample code on https://github.com/nok/sklearn-porter/blob/stable/examples/estimator/classifier/SVC/c/basics.pct.ipynb to export the C code. I split the training and test set of 90%:10% by the following code:
Output:
(135, 4) (135,)(15, 4) (15,)
Then I train the model:
Finally I exportthe code:
But I got:
The N_VECTORS is 132 instead of 135.