seldonian.utils.RL_utils.clamp

clamp(val_in, min_val, max_val)

Limit val_in to be between min_val and max_val