src.report.best_score_selection_report

Classes

BestScoreSelectionReport(fnames, scores, ...)

class src.report.best_score_selection_report.BestScoreSelectionReport(fnames, scores, score_name, pvalues=None, selected_features=None, **kwargs)
Author:

Alberto M. Esmoris Pena

Class to handle reports based on selecting the best scoring features. See Report See also KBestSelector and PercentileSelector.

Variables:
  • fnames (list) – The names of all the features.

  • scores (np.ndarray) – The feature-wise scores.

  • score_name (str) – The name of the score.

  • pvalues (np.ndarray or None) – The p-values, if available, i.e., can be None.

  • selected_features (list) – The indices or bool mask representing the selected features. This is an optional attribute, if it is not available, then selected features will not be reported.

__init__(fnames, scores, score_name, pvalues=None, selected_features=None, **kwargs)

Initialize an instance of BestScoreSelectionReport.

Parameters:
  • fnames – The names of all the features (OPTIONAL). If not given, the default will be f1, …, fn.

  • scores – The feature-wise scores.

  • score_name – The name of the score.

  • pvalues – The p-values (OPTIONAL).

  • selected_features – The indices or bool mask representing the selected features (OPTIONAL).

  • kwargs – The key-word arguments.