Gpytorch: Initializing GaussianLikelihood noise broken

Created on 25 Jan 2019  路  2Comments  路  Source: cornellius-gp/gpytorch

>>> import gpytorch
>>> gl = gpytorch.likelihoods.GaussianLikelihood()
>>> gl.initialize(noise=1)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File ".../gpytorch/gpytorch/module.py", line 89, in initialize
    setattr(self, name, val)
  File "../lib/python3.6/site-packages/torch/nn/modules/module.py", line 579, in __setattr__
    object.__setattr__(self, name, value)
  File ".../gpytorch/gpytorch/likelihoods/gaussian_likelihood.py", line 63, in noise
    self.noise_covar.initialize(value)
TypeError: initialize() takes 1 positional argument but 2 were given

raw_noise works though

>>> gl.initialize(raw_noise=1)
GaussianLikelihood(
  (noise_covar): HomoskedasticNoise()
)
bug

All 2 comments

We're open to a PR 馃槃

This might be a good opportunity to remove the log_ kwargs deprecation... this has been around for a while now and we could declutter things...

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mshvartsman picture mshvartsman  路  5Comments

dhruvbalwada picture dhruvbalwada  路  3Comments

Floyx picture Floyx  路  4Comments

ptonner picture ptonner  路  6Comments

mmirtcho picture mmirtcho  路  4Comments