LinearNormaliser

class frlearn.feature_preprocessors.LinearNormaliser(dispersion=None, location=None)[source]

Linearly transforms all features by normalising a measure of dispersion and a measure of location, ensuring that for each feature, that measure of dispersion becomes 1 and that measure of location becomes 0.

Parameters
dispersion: (np.array -> np.array) or None = None

The measure of dispersion to normalise.

location: (np.array -> np.array) or None = None

The measure of location to normalise.

Notes

If the measure of dispersion is 0 for some feature, it will be left unnormalised.

class Model[source]