b779a03d1db6d71067ae1a7d66ed295af0d36bf4,tests/coreml/test_cml_SupportVectorRegressorConverter.py,,,#,26

Before Change


        dump_data_and_model(X.astype(numpy.float32), svm, svm_onnx, basename="CmlRegSVR-Dec3")


if __name__ == "__main__":
    unittest.main()

After Change


Tests SupportVectorRegressor converter.

try:
    from sklearn.impute import SimpleImputer as Imputer
    import sklearn.preprocessing
    if not hasattr(sklearn.preprocessing, "Imputer"):
        // coremltools 3.1 does not work with scikit-learn 0.22
        setattr(sklearn.preprocessing, "Imputer", Imputer)
except ImportError:
    from sklearn.preprocessing import Imputer
import coremltools
import unittest
import numpy
from sklearn.datasets import make_regression
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 11

Non-data size: 12

Instances


Project Name: onnx/onnxmltools
Commit Name: b779a03d1db6d71067ae1a7d66ed295af0d36bf4
Time: 2019-12-16
Author: xadupre@users.noreply.github.com
File Name: tests/coreml/test_cml_SupportVectorRegressorConverter.py
Class Name:
Method Name:


Project Name: onnx/onnxmltools
Commit Name: b779a03d1db6d71067ae1a7d66ed295af0d36bf4
Time: 2019-12-16
Author: xadupre@users.noreply.github.com
File Name: tests/coreml/test_cml_ScalerConverter.py
Class Name:
Method Name:


Project Name: onnx/onnxmltools
Commit Name: b779a03d1db6d71067ae1a7d66ed295af0d36bf4
Time: 2019-12-16
Author: xadupre@users.noreply.github.com
File Name: tests/coreml/test_cml_DictVectorizerConverter.py
Class Name:
Method Name:


Project Name: onnx/onnxmltools
Commit Name: b779a03d1db6d71067ae1a7d66ed295af0d36bf4
Time: 2019-12-16
Author: xadupre@users.noreply.github.com
File Name: tests/coreml/test_cml_GLMClassifierConverter.py
Class Name:
Method Name:


Project Name: onnx/onnxmltools
Commit Name: b779a03d1db6d71067ae1a7d66ed295af0d36bf4
Time: 2019-12-16
Author: xadupre@users.noreply.github.com
File Name: tests/coreml/test_cml_TreeEnsembleClassifierConverter.py
Class Name:
Method Name:


Project Name: onnx/onnxmltools
Commit Name: b779a03d1db6d71067ae1a7d66ed295af0d36bf4
Time: 2019-12-16
Author: xadupre@users.noreply.github.com
File Name: tests/coreml/test_cml_TreeEnsembleRegressorConverterXGBoost.py
Class Name:
Method Name:


Project Name: onnx/onnxmltools
Commit Name: b779a03d1db6d71067ae1a7d66ed295af0d36bf4
Time: 2019-12-16
Author: xadupre@users.noreply.github.com
File Name: tests/coreml/test_cml_GLMRegressorConverter.py
Class Name:
Method Name:


Project Name: onnx/onnxmltools
Commit Name: b779a03d1db6d71067ae1a7d66ed295af0d36bf4
Time: 2019-12-16
Author: xadupre@users.noreply.github.com
File Name: tests/coreml/test_cml_OneHotEncoderConverter.py
Class Name:
Method Name:


Project Name: onnx/onnxmltools
Commit Name: b779a03d1db6d71067ae1a7d66ed295af0d36bf4
Time: 2019-12-16
Author: xadupre@users.noreply.github.com
File Name: tests/coreml/test_cml_SupportVectorClassifierConverter.py
Class Name:
Method Name:


Project Name: onnx/onnxmltools
Commit Name: b779a03d1db6d71067ae1a7d66ed295af0d36bf4
Time: 2019-12-16
Author: xadupre@users.noreply.github.com
File Name: tests/coreml/test_cml_ImputerConverter.py
Class Name:
Method Name:


Project Name: onnx/onnxmltools
Commit Name: b779a03d1db6d71067ae1a7d66ed295af0d36bf4
Time: 2019-12-16
Author: xadupre@users.noreply.github.com
File Name: tests/coreml/test_cml_TreeEnsembleRegressorConverter.py
Class Name:
Method Name: