401d78baaffb0751f2d9fb8f1c4c51a848d35020,tests/sklearn/test_ImputerConverter.py,TestSklearnImputerConverter,test_model_imputer,#TestSklearnImputerConverter#,13
Before Change
def test_model_imputer(self):
model = Imputer(missing_values="NaN", strategy="mean", axis=0)
model.fit([[1, 2], [np.nan, 3], [7, 6]])
model_onnx = convert_sklearn(model, "scikit-learn imputer", [Int64TensorType([1, 2])])
self.assertTrue(model_onnx is not None)
def test_imputer_int_inputs(self):
After Change
def test_model_imputer(self):
model = Imputer(missing_values="NaN", strategy="mean", axis=0)
model.fit([[1, 2], [np.nan, 3], [7, 6]])
model_onnx = convert_sklearn(model, "scikit-learn imputer", [("input", Int64TensorType([1, 2]))])
self.assertTrue(model_onnx is not None)
def test_imputer_int_inputs(self):
In pattern: SUPERPATTERN
Frequency: 11
Non-data size: 3
Instances
Project Name: onnx/onnxmltools
Commit Name: 401d78baaffb0751f2d9fb8f1c4c51a848d35020
Time: 2018-04-24
Author: wschin@outlook.com
File Name: tests/sklearn/test_ImputerConverter.py
Class Name: TestSklearnImputerConverter
Method Name: test_model_imputer
Project Name: onnx/onnxmltools
Commit Name: 401d78baaffb0751f2d9fb8f1c4c51a848d35020
Time: 2018-04-24
Author: wschin@outlook.com
File Name: tests/sklearn/test_TreeEnsembleConverters.py
Class Name: TestSklearnTreeEnsembleModels
Method Name: _test_binary_classification_core
Project Name: onnx/onnxmltools
Commit Name: 401d78baaffb0751f2d9fb8f1c4c51a848d35020
Time: 2018-04-24
Author: wschin@outlook.com
File Name: tests/sklearn/test_pipeline.py
Class Name: TestSklearnPipeline
Method Name: test_combine_inputs_floats_ints
Project Name: onnx/onnxmltools
Commit Name: 401d78baaffb0751f2d9fb8f1c4c51a848d35020
Time: 2018-04-24
Author: wschin@outlook.com
File Name: tests/sklearn/test_OneHotEncoderConverter.py
Class Name: TestSklearnOneHotEncoderConverter
Method Name: test_model_one_hot_encoder
Project Name: onnx/onnxmltools
Commit Name: 401d78baaffb0751f2d9fb8f1c4c51a848d35020
Time: 2018-04-24
Author: wschin@outlook.com
File Name: tests/sklearn/test_ScalerConverter.py
Class Name: TestSklearnScalerConverter
Method Name: test_model_scaler
Project Name: onnx/onnxmltools
Commit Name: 401d78baaffb0751f2d9fb8f1c4c51a848d35020
Time: 2018-04-24
Author: wschin@outlook.com
File Name: tests/sklearn/test_TreeEnsembleConverters.py
Class Name: TestSklearnTreeEnsembleModels
Method Name: _test_multiple_output_core
Project Name: onnx/onnxmltools
Commit Name: 401d78baaffb0751f2d9fb8f1c4c51a848d35020
Time: 2018-04-24
Author: wschin@outlook.com
File Name: tests/sklearn/test_ImputerConverter.py
Class Name: TestSklearnImputerConverter
Method Name: test_imputer_int_inputs
Project Name: onnx/onnxmltools
Commit Name: 401d78baaffb0751f2d9fb8f1c4c51a848d35020
Time: 2018-04-24
Author: wschin@outlook.com
File Name: tests/sklearn/test_NormalizerConverter.py
Class Name: TestSklearnNormalizerConverter
Method Name: test_model_normalizer
Project Name: onnx/onnxmltools
Commit Name: 401d78baaffb0751f2d9fb8f1c4c51a848d35020
Time: 2018-04-24
Author: wschin@outlook.com
File Name: tests/sklearn/test_TreeEnsembleConverters.py
Class Name: TestSklearnTreeEnsembleModels
Method Name: _test_single_output_core
Project Name: onnx/onnxmltools
Commit Name: 401d78baaffb0751f2d9fb8f1c4c51a848d35020
Time: 2018-04-24
Author: wschin@outlook.com
File Name: tests/sklearn/test_TreeEnsembleConverters.py
Class Name: TestSklearnTreeEnsembleModels
Method Name: _test_one_class_classification_core
Project Name: onnx/onnxmltools
Commit Name: 401d78baaffb0751f2d9fb8f1c4c51a848d35020
Time: 2018-04-24
Author: wschin@outlook.com
File Name: tests/sklearn/test_OneHotEncoderConverter.py
Class Name: TestSklearnOneHotEncoderConverter
Method Name: test_one_hot_encoder_mixed_float_int