@@ -271,7 +271,7 @@ def __init__(self, featuresCol="features", labelCol="label", predictionCol="pred
271
271
__init__(self, featuresCol="features", labelCol="label", predictionCol="prediction",
272
272
maxDepth=5, maxBins=32, minInstancesPerNode=1, minInfoGain=0.0,
273
273
maxMemoryInMB=256, cacheNodeIds=False, checkpointInterval=10, impurity="variance",
274
- numTrees=20, featureSubsetStrategy="auto", seed=42 )
274
+ numTrees=20, featureSubsetStrategy="auto", seed=None )
275
275
"""
276
276
super (RandomForestRegressor , self ).__init__ ()
277
277
#: param for Criterion used for information gain calculation (case-insensitive).
@@ -292,7 +292,7 @@ def __init__(self, featuresCol="features", labelCol="label", predictionCol="pred
292
292
"The number of features to consider for splits at each tree node. Supported " +
293
293
"options: " + ", " .join (RandomForestParams .supportedFeatureSubsetStrategies ))
294
294
self ._setDefault (maxDepth = 5 , maxBins = 32 , minInstancesPerNode = 1 , minInfoGain = 0.0 ,
295
- maxMemoryInMB = 256 , cacheNodeIds = False , checkpointInterval = 10 , seed = 42 ,
295
+ maxMemoryInMB = 256 , cacheNodeIds = False , checkpointInterval = 10 , seed = None ,
296
296
impurity = "variance" , numTrees = 20 , featureSubsetStrategy = "auto" )
297
297
kwargs = self .__init__ ._input_kwargs
298
298
self .setParams (** kwargs )
@@ -305,7 +305,7 @@ def setParams(self, featuresCol="features", labelCol="label", predictionCol="pre
305
305
"""
306
306
setParams(self, featuresCol="features", labelCol="label", predictionCol="prediction",
307
307
maxDepth=5, maxBins=32, minInstancesPerNode=1, minInfoGain=0.0,
308
- maxMemoryInMB=256, cacheNodeIds=False, checkpointInterval=10, seed=42 ,
308
+ maxMemoryInMB=256, cacheNodeIds=False, checkpointInterval=10, seed=None ,
309
309
impurity="variance", numTrees=20, featureSubsetStrategy="auto")
310
310
Sets params for linear regression.
311
311
"""
0 commit comments