

def increment(self, samples, n_samples=None, verbose=False):
    "\n        Update the mean and precision matrix of the GMRF by updating the\n        distributions of all the edges.\n\n        Parameters\n        ----------\n        samples : `list` or `iterable` of :map:`Vectorizable`\n            List or iterable of samples to build the model from.\n        n_samples : `int`, optional\n            If provided then ``samples``  must be an iterator that yields\n            ``n_samples``. If not provided then samples has to be a\n            list (so we know how large the data matrix needs to be).\n        verbose : `bool`, optional\n            If ``True``, the progress of the model's incremental update is\n            printed.\n        "
    if (not self.is_incremental):
        raise ValueError('GMRF cannot be incrementally updated.')
    data = as_matrix(samples, length=n_samples, verbose=verbose)
    self._increment(data=data, verbose=verbose)

dataset/ETHPy150Open menpo/menpo/menpo/model/gmrf.py GMRFModel.increment/original