060a71ef947f9d9e87e94dd8320ef78c83c946cb,tests/xgboost/test_xgboost_converters.py,TestXGBoostModels,test_xgb_classifier_multi,#TestXGBoostModels#,41

Before Change



    @unittest.skipIf(sys.version_info[0] == 2, reason="xgboost converter not tested on python 2")
    def test_xgb_classifier_multi(self):
        iris = load_iris()
        X = iris.data[:, :2]
        y = iris.target

        xgb = XGBClassifier()
        xgb.fit(X, y)
        conv_model = convert_xgboost(xgb, initial_types=[("input", FloatTensorType(shape=[1, "None"]))])
        self.assertTrue(conv_model is not None)
        dump_multiple_classification(xgb, allow_failure="StrictVersion(onnx.__version__) < StrictVersion("1.3.0")")

After Change


    @unittest.skipIf(sys.version_info[0] == 2,
                     reason="xgboost converter not tested on python 2")
    def test_xgb_classifier_multi(self):
        xgb, x_test = _fit_classification_model(XGBClassifier(), 3)
        conv_model = convert_xgboost(
            xgb, initial_types=[("input", FloatTensorType(shape=[1, "None"]))])
        self.assertTrue(conv_model is not None)
        dump_data_and_model(
            x_test,
            xgb,
            conv_model,
            basename="SklearnXGBClassifierMulti",
            allow_failure="StrictVersion("
            "onnx.__version__)"
            "< StrictVersion("1.3.0")",
        )

    @unittest.skipIf(sys.version_info[0] == 2,
                     reason="xgboost converter not tested on python 2")
    def test_xgb_classifier_multi_reglog(self):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 11

Instances


Project Name: onnx/onnxmltools
Commit Name: 060a71ef947f9d9e87e94dd8320ef78c83c946cb
Time: 2019-09-18
Author: prabhat.roy@microsoft.com
File Name: tests/xgboost/test_xgboost_converters.py
Class Name: TestXGBoostModels
Method Name: test_xgb_classifier_multi


Project Name: onnx/onnxmltools
Commit Name: 060a71ef947f9d9e87e94dd8320ef78c83c946cb
Time: 2019-09-18
Author: prabhat.roy@microsoft.com
File Name: tests/xgboost/test_xgboost_converters.py
Class Name: TestXGBoostModels
Method Name: test_xgb_classifier


Project Name: onnx/onnxmltools
Commit Name: 060a71ef947f9d9e87e94dd8320ef78c83c946cb
Time: 2019-09-18
Author: prabhat.roy@microsoft.com
File Name: tests/xgboost/test_xgboost_converters.py
Class Name: TestXGBoostModels
Method Name: test_xgb_classifier_multi_reglog


Project Name: onnx/onnxmltools
Commit Name: 060a71ef947f9d9e87e94dd8320ef78c83c946cb
Time: 2019-09-18
Author: prabhat.roy@microsoft.com
File Name: tests/xgboost/test_xgboost_converters.py
Class Name: TestXGBoostModels
Method Name: test_xgb_classifier_reglog


Project Name: onnx/onnxmltools
Commit Name: 060a71ef947f9d9e87e94dd8320ef78c83c946cb
Time: 2019-09-18
Author: prabhat.roy@microsoft.com
File Name: tests/xgboost/test_xgboost_converters.py
Class Name: TestXGBoostModels
Method Name: test_xgb_classifier_multi