API¶
Core elimination interfaces¶
|
Run random-forest feature elimination over an iterator process. |
|
Recursive feature elimination for estimators using a dev split. |
LOWESS helpers¶
|
Extract max features based on LOWESS rate of change. |
|
Extract peripheral features based on LOWESS curvature. |
|
Plot the LOWESS smoothing curve with selection annotations. |
Plotting functions¶
Plotting helpers live in dRFEtools.plotting and are re-exported from the
top-level package for convenience.
|
Plot feature elimination results for a metric. |
|
Plot LOWESS smoothing with feature count annotations. |
Ranking utilities¶
|
Ranks features and writes the results to a file :type features: :param features: A vector of feature names :type rank: :param rank: A vector with feature ranks based on absolute value of feature importance :type n_features_to_keep: int :param n_features_to_keep: Number of features to keep. :type n_features_to_keep: int :type fold: int :param fold: Current fold being analyzed. :type fold: int :type out_dir: str :param out_dir: Output directory for text file. Default is current directory. :type out_dir: str :type RANK: bool :param RANK: Whether to perform ranking and write results. :type RANK: bool. |
Developmental set metrics functions¶
|
Accuracy for development predictions. |
|
Explained variance for development predictions. |
|
Mean squared error for development predictions. |
|
Normalized mutual information for development predictions. |
|
Coefficient of determination for development predictions. |
|
Area under the ROC curve for development predictions. |
Out-of-Bag (OOB) metrics functions¶
|
Accuracy for OOB predictions. |
|
Explained variance for OOB predictions. |
|
Mean squared error for OOB predictions. |
|
Normalized mutual information for OOB predictions. |
|
Coefficient of determination for OOB predictions. |
|
Area under the ROC curve for OOB predictions. |
Utility helpers¶
|
Coerce RFE outputs into the standardized dictionary format. |
|
Return absolute feature importance values from an estimator. |
|
Persist a plot to standard image formats. |
|
Normalize user-provided file system paths. |
Command-line entry points¶
|
|
|