fisher_score

fisher_score(X: ndarray, y: ndarray) float[source]

Numba Fisher score function.

Parameters:
X1d numpy array

A 1d numpy array of attribute values

y1d numpy array

A 1d numpy array of class values

Returns:
scorefloat

The Fisher score for the given array of attribute values and class values

Examples

>>> import numpy as np
>>> from aeon.utils.numba.stats import fisher_score
>>> X = np.array([1, 2, 2, 3, 3, 3, 4, 4, 4, 4])
>>> y = np.array([1, 1, 1, 1, 1, 2, 2, 2, 2, 2])
>>> f = fisher_score(X, y)