Skip to content

Commit

Permalink
Fixes nightly build 9/29 (#541)
Browse files Browse the repository at this point in the history
* fix ci build
* Update test_sklearn_tfidf_vectorizer_converter_pipeline.py
  • Loading branch information
xadupre authored Sep 30, 2020
1 parent 7b1c5a8 commit 0736a35
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions tests/test_sklearn_nearest_neighbour_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ def test_model_knn_regressor(self):
@unittest.skipIf(
StrictVersion(onnxruntime.__version__) < StrictVersion("1.2.0"),
reason="not available")
@unittest.skipIf(
StrictVersion(onnx.__version__) <= StrictVersion("1.6.0"),
reason="not available")
def test_model_knn_regressor_radius(self):
model, X = self._fit_model(RadiusNeighborsRegressor())
model_onnx = convert_sklearn(model, "KNN regressor",
Expand Down
4 changes: 2 additions & 2 deletions tests/test_sklearn_tfidf_vectorizer_converter_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ class TestSklearnTfidfVectorizerPipeline(unittest.TestCase):
def common_test_model_tfidf_vectorizer_pipeline_cls(
self, kind=None, verbose=False):
if kind == 'stop':
if ort_version.startswith('1.4'):
# regression with stopwords in onnxruntime 1.4
if ort_version.startswith('1.4') or ort_version.startswith('1.5'):
# regression with stopwords in onnxruntime 1.4, 1.5
stopwords = ['theh']
else:
stopwords = ['the', 'and', 'is']
Expand Down

0 comments on commit 0736a35

Please sign in to comment.