def rescaling(array, floor=0, ceil=1):
    """ Rescale the range of features to a given range. """
    arr_min = array.min(axis=0)
    array = (array - arr_min) / (array.max(axis=0) - arr_min)
    return array * (ceil - floor) + floor
