sklearn-porter
sklearn-porter copied to clipboard
Transpile trained scikit-learn estimators to C, Java, JavaScript and others.
Could you please add support for Multinomial Naive Bayes? It's performance on text classification makes it a very desirable target for porting.
Original issue found by @Phyks in https://github.com/nok/sklearn-porter/issues/18#issuecomment-333634486: ```python ValueError: Currently the given model 'OneVsRestClassifier(estimator=LinearSVC(C=1.0, class_weight=None, dual=True, fit_intercept=True, intercept_scaling=1, loss='squared_hinge', max_iter=1000, multi_class='ovr', penalty='l2', random_state=None, tol=0.0001, verbose=0), n_jobs=1)' isn't supported. ``` This...
Porter.py incorrect❗ ------------------------------------------------ .... from sklearn.metrics import accuracy_score from sklearn.tree.tree import DecisionTreeClassifier from sklearn.ensemble.weight_boosting import AdaBoostClassifier from sklearn.ensemble.forest import RandomForestClassifier from sklearn.ensemble.forest import ExtraTreesClassifier .... Porter.py correct✔ ------------------------------------------------ from sklearn.metrics...
there are always the error:ModuleNotFoundError: No module named 'sklearn_porter'
changes (many previously published elsewhere) for compatibility with scikit-learn 1.5.0