Transpile trained scikit-learn estimators to C, Java, JavaScript and others.
These patches solve build problems in version 0.7.0
.
six
to the requirements.txt
fileThis is a minor update before the next major release 1.0.0
.
install.environment
to install a conda
environmentinstall.requirements
to install all pip
requirementsmake link
to install porter
(cli) to the command linemake open.examples
to start a local jupyter servermake stop.examples
to stop the started jupyter servermake test
to run all unittests in tests
make lint
to run pylint over sklearn_porter
make jupytext
to generate the notebooks from Python sourcessklearn_porter/package.json
conda
from CIpip
requirements into three parts:
8080
to 8713
(because of collusion with the default port of Jenkins)--durations=0
of PyTest--java
, --c
or --go
) (#41b93a0).--class_name
and --method_name
to define the class and method name in the final output directly (#6f2a1d9).--pipe
or -p
) (#8a57746).--export
argument to dump the model data and use the specific templates (#0669645).--checksum
argument to append the computed md5 checksum at the end of the dumped model data file (#cd12827).--data
argument to kust export the model data (#fad499a).Go
in tests/language/Go.py
to test all implementations for the target programming language Go (#1d0b5d6).go build -o brain brain.go
) and execution (./brain
) command (#5d24f57).num_format=lambda x: str(x)
) to change the default representation of floating-point values (#7f9fac8).MLPClasifier
, KNeighborsClassifier
, SVC
, ...) (#710a854).svm.SVC
notebook (#e753252)svm.NuSVC
notebook (#e753252)svm.LinearSVC
notebook (#562ed8c)ensemble.AdaBoostClassifier
notebook (#79d846f)ensemble.RandomForestClassifier
notebook (#9979a94)ensemble.ExtraTreesClassifier
notebook (#9979a94)tree.DecisionTreeClassifier
notebook (#9979a94)neighbors.KNeighborsClassifier
notebook (#1b81d3f)naive_bayes.GaussianNB
notebook (#b68c5df)naive_bayes.BernoulliNB
notebook (#7eae57d)neural_network.MLPClassifier
notebook (#b988f57, #d8ff774)'{class_name}.{method_name}'
) instead of index-based placeholders (e.g. '{0}.{1}'
) in all main templates of all estimators (#de02795).--help
text (#54d9973).repr(x)
to str(x)
(#7f9fac8).integrity_score(X)
instead of predict_test(X)
to avoid misconceptions for the integrity test (#715ec7d).tree.DecisionTreeClassifier
(#f669aab, #bba6296, #b727186, #e2740fd, #5c9da8a)neighbors.KNeighborsClassifier
(#59a0e91, #1ac5d8a)neural_network.MLPClassifier
(#635da46, #7d31668, #78296e2, #4cdcfde, #7820508, #7820508)neural_network.MLPRegressor
(#60d9d42, #e4a8169)naive_bayes.GaussianNB
(#1ac5d8a)naive_bayes.BernoulliNB
(#ff82bb8, #3c57a06)svm.SVC
and svm.NuSVC
(#4745d8b, #5f77e4d, #59831da, #cd8f52e, #c483d25)svm.LinearSVC
(#bb617c7)--language
and -l
for the choice of the target programming language (#fc14a3b).breast_cancer
, digits
and iris
dataset to all classifier tests
N_RANDOM_FEATURE_SETS
and N_EXISTING_FEATURE_SETS
scikit-learn>=0.14.1
) by refactoring the dependency handling, tests and examples