4 Copyright (C) e2its - All Rights Reserved 5 * Unauthorized copying of this file, via any medium is strictly prohibited 6 * Proprietary and confidential 8 * This file is part of gDayF project. 10 * Written by Jose L. Sanchez <e2its.es@gmail.com>, 2016-2019 13 from collections
import OrderedDict
22 OrderedDict.__init__(self)
30 self[
'objective'] = OrderedDict()
36 self[
'type'] =
"normalization" 37 self[
'class'] =
"base" 38 self[
'datetime'] = datetime
39 self[
'objective'][
'value'] = OrderedDict()
46 self[
'class'] =
"ignore_column" 47 self[
'objective'][
'value'] = OrderedDict()
55 self[
'type'] =
"normalization" 56 self[
'class'] =
"stdmean" 57 self[
'objective'][
'value'] = OrderedDict()
58 self[
'objective'][
'mean'] = mean
59 self[
'objective'][
'std'] = std
66 self[
'class'] =
"drop_missing" 67 self[
'objective'][
'value'] = OrderedDict()
75 self[
'type'] =
"bucketing" 76 self[
'class'] =
"discretize" 77 self[
'objective'][
'buckets_number'] = buckets_number
78 self[
'objective'][
'fixed_size'] = fixed_size
88 self[
'type'] =
"normalization" 89 self[
'class'] =
"working_range" 90 self[
'objective'][
'minval'] = minval
91 self[
'objective'][
'maxval'] = maxval
92 self[
'objective'][
'minval'] = minrange
93 self[
'objective'][
'maxval'] = maxrange
100 self[
'type'] =
"normalization" 101 self[
'class'] =
"offset" 102 self[
'objective'][
'offset'] = offset
110 self[
'type'] =
"bucketing" 111 self[
'class'] =
"working_range" 112 self[
'objective'][
'bucket_ratio'] = bucket_ratio
119 self[
'type'] =
"imputation" 120 self[
'class'] =
"fixed_missing_values" 121 self[
'objective'][
'value'] = value
130 self[
'type'] =
"imputation" 131 self[
'class'] =
"mean_missing_values" 132 self[
'objective'][
'objective_column'] = objective_column
133 self[
'objective'][
'full'] = full
141 self[
'type'] =
"imputation" 142 self[
'class'] =
"progressive_missing_values" 143 self[
'objective'][
'objective_column'] = objective_column
def set_stdmean(self, mean=0, std=1)
Method oriented to establish stdmean Normalization [Metadata].
def set_discretize(self, buckets_number=10, fixed_size=True)
Method oriented to establish bucketing actions [Metadata].
def set_offset(self, offset=0)
Method oriented to establish offset (+ or -) data actions [Metadata].
def reset(self)
Method oriented to reset a NormalizationSet instance.
def set_base(self, datetime=True)
Method oriented to establish base Normalization [Metadata].
def set_ignore_column(self)
Method oriented to establish ignore_column Normalization [Metadata].
def set_fixed_missing_values(self, value=0.0)
Method oriented to establish fixed value imputation data actions into missing values [Metadata]...
def set_drop_missing(self)
Method oriented to establish drop_missing Normalization [Metadata].
Class NormalizationSet manage the Normalizations metadata as OrderedDict supporting Normalizer Class ...
def set_working_range(self, minval=-1.0, maxval=1.0, minrange=-1.0, maxrange=1.0)
Method oriented to establish re-scaling data actions [Metadata].
def __init__(self)
The constructor Generate an empty NormalizationSet class with all elements initialized to correct typ...
def set_aggregation(self, bucket_ratio=0.25)
Method oriented to aggregate minimal and maximal non-frequent values on aggregated intervals [Metadat...
def set_mean_missing_values(self, objective_column, full=False)
Method oriented to establish variable value imputation data actions into missing values based on obje...
def set_progressive_missing_values(self, objective_column)
Method oriented to establish variable extrapolated value imputation data actions into missing values ...