Normalizes the input data to between 0 and 1 based on the passed minimum and maximum values. Then, discretizes the values
to a given number of bins. Default is to both normalize and discretize.
Args:
data: The data tensor to be normalized.
min_val: The value that will be normalized to 0
max_val: The value that will be normalized to 1
numBins: The number of bins in which to discretize data.
type: Weather only normalization or also discretization is performed. Type has to have words 'norm', 'Norm', 'discr' or 'Discr' in name. Default is to both normalize and discretize.