examples/train_tnbc.py
def img_normaliser(max_range_value=1, max_range_scaling_factor=2, max_range_offset=-1):
        """Returns the normaliser function for the input data"""

        def _norm(data):
            return data / max_range_value * max_range_scaling_factor + max_range_offset

        return _norm
Returns the normaliser function for the input data
Returns the normaliser function for the input data
Returns the normaliser function for the input data
def img_normaliser(max_range_value=1, max_range_scaling_factor=2, max_range_offset=-1):
        def _norm(data):
            return data / max_range_value * max_range_scaling_factor + max_range_offset
        return _norm
def img_normaliser ( max_range_value = 1 , max_range_scaling_factor = 2 , max_range_offset = - 1 ) : def _norm ( data ) : return data / max_range_value * max_range_scaling_factor + max_range_offset return _norm
Returns the normaliser function for the input data
Returns the normaliser function for the input data
"""Returns the normaliser function for the input data"""
max_range_value
max_range_scaling_factor
max_range_offset