(data_instance, exposure_index)
return data_instance
return data_instance without exposure
        Parameters
        ----------
        data_instance: Table of Instances, input data
        exposure_index: column index of exposure variable
return data_instance without exposure
        Parameters
        ----------
        data_instance: Table of Instances, input data
        exposure_index: column index of exposure variable
return data_instance without exposure Parameters ---------- data_instance : Table of Instances input data exposure_index : column index of exposure variable
def load_instance(data_instance, exposure_index):
        """
        return data_instance without exposure
        Parameters
        ----------
        data_instance: Table of Instances, input data
        exposure_index: column index of exposure variable
        """
        if exposure_index == -1:
            return data_instance
        if exposure_index >= len(data_instance.features):
            raise ValueError(
                "exposure_index {} out of features' range".format(exposure_index))
        data_instance.features = np.delete(data_instance.features, exposure_index)
        return data_instance
def load_instance ( data_instance , exposure_index ) : if exposure_index == - 1 : return data_instance if exposure_index >= len ( data_instance . features ) : raise ValueError ( "exposure_index {} out of features' range" . format ( exposure_index ) ) data_instance . features = np . delete ( data_instance . features , exposure_index ) return data_instance