gatelfdata.featurenumeric module

Module for the FeatureNumeric class

class gatelfdata.featurenumeric.FeatureNumeric(fname, attrinfo, featurestats)[source]

Bases: object

normalize(value, normalize=None)[source]

This normalizes the value using the currently set normalization if normalize is None, explicitly no normalization if normalize is false (overriding what is the default), or whatever the string or function set indicates.

normalize_meanvar(value)[source]
normalize_minmax(value)[source]
set_normalization(normalize=None)[source]

Either one of ‘meanvar’, ‘minmax’ or a function that takes and returns a float or one of the normalization methods of this class.

type_converted()[source]
type_original()[source]