def scale(intermediate_layer_output, rmax=1, rmin=0):
    X_std = ((intermediate_layer_output - intermediate_layer_output.min()) / (intermediate_layer_output.max() - intermediate_layer_output.min()))
    X_scaled = ((X_std * (rmax - rmin)) + rmin)
    return X_scaled
def scale(intermediate_layer_output, rmax=1, rmin=0):
    X_std = ((intermediate_layer_output - intermediate_layer_output.min()) / (intermediate_layer_output.max() - intermediate_layer_output.min()))
    X_scaled = ((X_std * (rmax - rmin)) + rmin)
    return X_scaled