Skip to content

Instantly share code, notes, and snippets.

@bfraiche
Last active April 2, 2019 17:43
Show Gist options
  • Save bfraiche/8652d5738c90662c94c78e413b6d1593 to your computer and use it in GitHub Desktop.
Save bfraiche/8652d5738c90662c94c78e413b6d1593 to your computer and use it in GitHub Desktop.
This gist contains code snippets for my blogpost: 'Random Forest with Python and Spark ML'
from pyspark.ml.regression import RandomForestRegressor
rf = RandomForestRegressor(labelCol="label", featuresCol="features")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment