Skip to content

Instantly share code, notes, and snippets.

@fclesio
Created January 13, 2020 16:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fclesio/981f7bf4acad5e43068d1a5b1a8055c6 to your computer and use it in GitHub Desktop.
Save fclesio/981f7bf4acad5e43068d1a5b1a8055c6 to your computer and use it in GitHub Desktop.
# Extract single tree
estimator = model_rf_reload_pkl.estimators_[5]
print(f’Number of Features: {estimator.n_features_}’)
# >> Number of Features: 9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment