nnmnkwii.preprocessing.inv_minmax_scale

nnmnkwii.preprocessing.inv_minmax_scale(x, data_min=None, data_max=None, feature_range=(0, 1), scale_=None, min_=None)[source]

Inverse transform of min/max scaling for given a single data.

Given data min, max and feature range, apply min/max denormalization to data.

Note

If scale_ and min_ are given, feature_range will be ignored.

Parameters
  • x (array) – Input data

  • data_min (array) – Data min for each feature dimention.

  • data_max (array) – Data max for each feature dimention.

  • feature_range (array like) – Feature range.

  • scale_ ([optional]array) – Scaling factor.

  • min_ ([optional]array) – Minimum value for scaling.

Returns

Scaled data.

Return type

array

Raises

ValueError – If (data_min, data_max) or (scale_ and min_) are not specified.