nok / sklearn-porter

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

Test code, which is part of the Readme is failing #71

Open HarvinderBhullar opened 4 years ago

HarvinderBhullar commented 4 years ago

Traceback (most recent call last): File "", line 1, in File "//miniconda3/envs/sklearn/lib/python3.7/site-packages/sklearn_porter/Porter.py", line 61, in init sklearn_ver = [int(v) for v in sklearn_ver] File "//miniconda3/envs/sklearn/lib/python3.7/site-packages/sklearn_porter/Porter.py", line 61, in sklearn_ver = [int(v) for v in sklearn_ver] ValueError: invalid literal for int() with base 10: 'post1'

HarvinderBhullar commented 4 years ago

It is failing with latest release of scikit-learn==0.22.2.post1

lucasavila00 commented 4 years ago

It's a bug in sklearn_porter. Use another version of scikit_learn for now, 0.22.2.post1 is not compatible. Use 0.22.2 or 0.22. They all work fine.