def __init__(self, alpha=1.0, binarize=0.0, fit_prior=True, class_prior=None): self._hyperparams = { 'alpha': alpha, 'binarize': binarize, 'fit_prior': fit_prior, 'class_prior': class_prior} self._wrapped_model = Op(**self._hyperparams)
def __init__(self, alpha=1.0, fit_prior=True, class_prior=None, norm=False): self._hyperparams = { 'alpha': alpha, 'fit_prior': fit_prior, 'class_prior': class_prior, 'norm': norm } self._wrapped_model = Op(**self._hyperparams)
def __init__(self, **hyperparams): self._hyperparams = hyperparams self._wrapped_model = Op(**self._hyperparams)
def __init__(self, priors=None, var_smoothing=1e-09): self._hyperparams = {'priors': priors, 'var_smoothing': var_smoothing} self._wrapped_model = Op(**self._hyperparams)