Skip to content

Commit

Permalink
fix seed in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mengxr committed Apr 21, 2015
1 parent 3ad2387 commit 89321ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/pyspark/mllib/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ def test_classification(self):

rf_model = RandomForest.trainClassifier(
rdd, numClasses=2, categoricalFeaturesInfo=categoricalFeaturesInfo, numTrees=10,
maxBins=4)
maxBins=4, seed=1)
self.assertTrue(rf_model.predict(features[0]) <= 0)
self.assertTrue(rf_model.predict(features[1]) > 0)
self.assertTrue(rf_model.predict(features[2]) <= 0)
Expand Down

0 comments on commit 89321ee

Please sign in to comment.