reservoirflow.models.BlackOil.set_scalers#
- BlackOil.set_scalers(scalers_dict: dict)#
Set scalers configuration.
To change the scaling settings. Current settings can be shown under
scalers_dict
. By default the following settings are used:scalers_dict = { 'time':['MinMaxScaler', (0,1)], 'space':['MinMaxScaler', (-1,1)], 'pressure':['MinMaxScaler', (-1,1)], 'rate':[None,None], }
Note that by default rates are not scaled, time is scaled between 0 and 1, while space and pressure are scaled between -1 and 1. By default, MinMaxScaler is used for all dimensions.
- Parameters:
scalers_dict (dict) – scalers setting as dict in the following format: {‘time’: [scaler_type, scaler_range]} were: * scaler_type is a string with the scaler name from the
scalers
module (e.g. ‘MinMax’). * scaler_range is a tuple of the output_range of the scaler e.g. (-1,1). The keys must be in [‘time’, ‘space’, ‘pressure’, ‘rate’].