Created
July 30, 2020 20:19
-
-
Save rikturr/1b30990dd5ce6d742699793cd11cbf76 to your computer and use it in GitHub Desktop.
spark_rf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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