def get_refs(self, base_model, datapoints, scaler=None, cache_data=True):
    try:
        if (not cache_data):
            raise DontCacheRef()
        return (self.__datapoints, self.__refs)
    except (DontCacheRef, AttributeError) as e:
        refs = []
        datapoints_for_drone = datapoints
        if scaler:
            datapoints_for_drone = scaler.transform(datapoints)
        for point in datapoints_for_drone:
            prob = base_model.predict_proba(point)
            refs.append(prob)
        self.__datapoints = datapoints_for_drone
        self.__refs = refs
        return (self.__datapoints, self.__refs)
def get_refs(self, base_model, datapoints, scaler=None, cache_data=True):
    try:
        if (not cache_data):
            raise DontCacheRef()
        return (self.__datapoints, self.__refs)
    except (DontCacheRef, AttributeError) as e:
        refs = []
        datapoints_for_drone = datapoints
        if scaler:
            datapoints_for_drone = scaler.transform(datapoints)
        for point in datapoints_for_drone:
            prob = base_model.predict_proba(point)
            refs.append(prob)
        self.__datapoints = datapoints_for_drone
        self.__refs = refs
        return (self.__datapoints, self.__refs)