guide.importance¶
- guide.importance(estimator, X, y, *, sample_weight=None, permutations=300, max_depth=4, random_state=0)¶
GUIDE variable importance scores (Loh and Zhou, 2021).
Scores come from unpruned trees of depth
max_depthgrown with the configuration ofestimator, which must be an unfitted or fittedGuideRegressor(constant leaves, squared-error loss) orGuideClassifier(default priors and costs). The trees have constant nodes, so an LDA classifier is scored like a constant one. The estimator itself is not modified.permutationsresponse permutations estimate each score’s null mean for the bias adjustment; they run onestimator.n_jobsthreads.- Returns:
- dict
The report written by
guide-rs importance:scores(per feature, in decreasing order of adjusted score, withraw_score,null_mean,adjusted_score,normalized_scoreandgroup),thresholds,permutations,seedandwarnings.