elasticai.preprocessor.normalization.normalization#
Module Contents#
Classes#
API#
- class elasticai.preprocessor.normalization.normalization.DataNormalization(method: str, do_global_scaling: bool = False, peak_mode: int = 2)[source]#
Initialization
Normalizing the input data to enhance classification performance. Parameters: method (str): The normalization method [“minmax”, “norm”, “zscore”, “medianmad”, or “meanmad”] do_global_scaling (bool): Applied global scaling in normalization else sample scaling peak_mode (int): Mode for taking peak value (0: max, 1: min, 2: abs-max) Methods: normalize(): Normalize the input data based on the selected mode and method. Examples: # Create an instance of DataNormalization handler = DataNormalization(“minmax”) data_in = (0.5 - np.random.rand(100, 10)) * 10 normalized_frames = handler.normalize(data_in)
- list_normalization_methods(print_output: bool = True) list[source]#
Printing all available methods for normalization
- get_peak_amplitude_values() numpy.ndarray | torch.Tensor[source]#
Getting the peak amplitude of rawdata as array