Skip to content

Instantly share code, notes, and snippets.

@rikturr
Created July 30, 2020 20:19
Show Gist options
  • Save rikturr/1b30990dd5ce6d742699793cd11cbf76 to your computer and use it in GitHub Desktop.
Save rikturr/1b30990dd5ce6d742699793cd11cbf76 to your computer and use it in GitHub Desktop.
spark_rf
from pyspark.ml.regression import RandomForestRegressor
rf = RandomForestRegressor(numTrees=100, maxDepth=10, seed=42)
fitted = rf.fit(X)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment