def METHOD_NAME(self, locations, targets, logger=None):
    """Update the Neighbors Regressor with data
    :param locations:   The locations for interpolating. (n_samples, n_features).
                        (In sklearn parlance, this is 'X'.)
    :param targets:     The target values. (n_samples, n_targets).
                        (In sklearn parlance, this is 'y'.)
    """
    logger = galsim.config.LoggerWrapper(logger)
    self.knn.fit(locations, targets)
    self.locations = locations
    logger.debug('locations updated to shape: %s', self.locations.shape)
    self.targets = targets
    logger.debug('targets updated to shape: %s', self.targets.shape)