datasetops.scaler¶
Module Contents¶
-
class
datasetops.scaler.ElemStats¶ Bases:
typing.NamedTuple-
mean:np.ndarray¶
-
std:np.ndarray¶
-
min:np.ndarray¶
-
max:np.ndarray¶
-
axis:int = 0¶
-
__eq__(self, other)¶
-
-
datasetops.scaler._make_scaler_reshapes(data_shape: Shape = None, axis: int = 0)¶
-
datasetops.scaler._make_scaler(transform_fn: ItemTransformFn, shape: Shape, axis=0) → ItemTransformFn¶
-
datasetops.scaler.fit(iterable: Iterable, shape: Shape = None, axis=0) → ElemStats¶
-
datasetops.scaler.center(shape: Shape, stats: ElemStats) → ItemTransformFn¶
-
datasetops.scaler.standardize(shape: Shape, stats: ElemStats) → ItemTransformFn¶
-
datasetops.scaler.minmax(shape: Shape, stats: ElemStats, feature_range=0, 1) → ItemTransformFn¶
-
datasetops.scaler.maxabs(shape: Shape, stats: ElemStats) → ItemTransformFn¶