( data_instance, exposure_index)
return exposure
return exposure of a given data_instance
        Parameters
        ----------
        data_instance: Table of Instances, input data
        exposure_index: column index of exposure variable
return exposure of a given data_instance
        Parameters
        ----------
        data_instance: Table of Instances, input data
        exposure_index: column index of exposure variable
return exposure of a given data_instance Parameters ---------- data_instance : Table of Instances input data exposure_index : column index of exposure variable
def load_exposure( data_instance, exposure_index):
        """
        return exposure of a given data_instance
        Parameters
        ----------
        data_instance: Table of Instances, input data
        exposure_index: column index of exposure variable
        """
        if exposure_index == -1:
            exposure = 1
        else:
            exposure = data_instance.features[exposure_index]
        return exposure
def load_exposure ( data_instance , exposure_index ) : if exposure_index == - 1 : exposure = 1 else : exposure = data_instance . features [ exposure_index ] return exposure