'Check model parameters.'

def _check_params(self):

    if (self.n_topics is not None):
        self._n_components = self.n_topics
        warnings.warn('n_topics    has    been    renamed    to    n_components    in    version    0.19    and    will    be    removed    in    0.21', DeprecationWarning)
    else:
        self._n_components = self.n_components
    if (self._n_components <= 0):
        raise ValueError(("Invalid    'n_components'    parameter:    %r" % self._n_components))
    if (self.total_samples <= 0):
        raise ValueError(("Invalid    'total_samples'    parameter:    %r" % self.total_samples))
    if (self.learning_offset < 0):
        raise ValueError(("Invalid    'learning_offset'    parameter:    %r" % self.learning_offset))
    if (self.learning_method not in ('batch', 'online', None)):
        raise ValueError(("Invalid    'learning_method'    parameter:    %r" % self.learning_method))
