scikit-learn/scikit-learn — pull request #539 by pprett (2012-01-06 17:06:05+00:00)
Title: MRG Make feature_importances_ a property

Modules involved: `tree.tree`, `ensemble.forest`

Eliminate `compute_importance` fit parameter - make `feature_importances_` a property that will be computed on demand.

This eliminates ~40 lines of code and one fit parameter.