Skip to content

Commit

Permalink
add default param checks for CountVectorizerModel
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanCutler committed Mar 29, 2018
1 parent a7755fd commit ecafd2b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions python/pyspark/ml/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -2096,6 +2096,11 @@ def test_java_params(self):
# NOTE: disable check_params_exist until there is parity with Scala API
ParamTests.check_params(self, cls(), check_params_exist=False)

# Additional classes that need explicit construction
from pyspark.ml.feature import CountVectorizerModel
ParamTests.check_params(self, CountVectorizerModel.from_vocabulary(['a'], 'input'),
check_params_exist=False)


def _squared_distance(a, b):
if isinstance(a, Vector):
Expand Down

0 comments on commit ecafd2b

Please sign in to comment.