FisherScore validation ledger#
Status: validated; supervised feature selector.
Authority: the frozen 0.1.0 contract is the multiclass, sample-count-weighted Fisher between/within ratio below; no legacy implementation is normative.
Specification: for feature
j, scoresum_c n_c(mu_cj-mu_j)^2 / sum_c sum_{i in c}(x_ij-mu_cj)^2. The class-count weighting is mandatory; neither scatter is averaged.Degeneracy: zero within-class and positive between-class scatter yields an infinite score; a feature constant globally receives zero. Stable sorting by original column order resolves equal scores.
API:
fit(X,y),get_support, inherited selector feature names, and dense float64transform; exactlyn_features_to_selectcolumns are returned.Evidence: literal hand-computed multiclass ratio, selected-column identity, label recoding, ties, constant columns, cloning, and finite-input tests.
Rdimtools: not used as an oracle. The selector is an inductive column map with linear scatter accumulation plus label/feature sorting.
Complexity:
O(np + n log n + p log p + Ln) time; O(np) memory; symbols follow the method catalog.