Skip to content

Instantly share code, notes, and snippets.

@bfraiche
Last active April 2, 2019 22:18
Show Gist options
  • Save bfraiche/18eea3d0f55788f6d073726afc5d0a28 to your computer and use it in GitHub Desktop.
Save bfraiche/18eea3d0f55788f6d073726afc5d0a28 to your computer and use it in GitHub Desktop.
This gist contains code snippets for my blogpost: 'Random Forest with Python and Spark ML'
print('numTrees - ', bestModel.getNumTrees)
print('maxDepth - ', bestModel.getOrDefault('maxDepth'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment