You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by Christopher Bourez <ch...@gmail.com> on 2016/01/18 16:56:25 UTC
spark random forest regressor : argument minInstancesPerNode not accepted
Dears,
I'm trying to set the parameter 'minInstancesPerNode', it sounds like it is
not working :
model = RandomForest.trainRegressor(trainingData,
categoricalFeaturesInfo={},numTrees=2500,
featureSubsetStrategy="sqrt",impurity='variance',minInstancesPerNode=1000)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: trainRegressor() got an unexpected keyword argument
'minInstancesPerNode'
Thanks for your help
Christopher Bourez
06 17 17 50 60