Skip to content

Commit 9bf75ad

Browse files
committed
removed seed from CrossValidator example in tuning.py
1 parent 0bd1457 commit 9bf75ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/pyspark/ml/tuning.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ class CrossValidator(Estimator, HasSeed):
107107
>>> lr = LogisticRegression()
108108
>>> grid = ParamGridBuilder().addGrid(lr.maxIter, [0, 1]).build()
109109
>>> evaluator = BinaryClassificationEvaluator()
110-
>>> cv = CrossValidator(estimator=lr, estimatorParamMaps=grid, evaluator=evaluator, seed=42)
110+
>>> cv = CrossValidator(estimator=lr, estimatorParamMaps=grid, evaluator=evaluator)
111111
>>> cvModel = cv.fit(dataset)
112112
>>> evaluator.evaluate(cvModel.transform(dataset))
113113
0.8333...

0 commit comments

Comments
 (0)