Skip to content

Migration guide from alpha to beta

Geoff Pleiss edited this page Oct 2, 2018 · 1 revision

Alpha -> Beta

Here's a list of breaking changes that you need to address to move to GPyTorch 0.1 (Beta).

Big breaking changes

  • gpytorch.random_variables have been replaced by gpytorch.distributions. These build upon PyTorch distributions.
    • gpytorch.random_variables.GaussianRandomVariable -> gpytorch.distributions.MultivariateNormal.
    • gpytorch.random_variables.MultitaskGaussianRandomVariable -> gpytorch.distributions.MultitaskMultivariateNormal.

Smaller breaking changes

Utilities

  • gpytorch.utils.scale_to_bounds is now gpytorch.utils.grid.scale_to_bounds

Kernels

  • GridInterpolationKernel, GridKernel, InducingPointKernel - the attribute base_kernel_module has become base_kernel (for consistency)
  • AdditiveGridInterpolationKernel no longer exists. Now use `AdditiveStructureKernel(GridInterpolationKernel(...))
  • MultiplicativeGridInterpolationKernel no longer exists. Now use ProductStructureKernel(GridInterpolationKernel(...))`.

Attributes (n_* -> num_*)

  • IndexKernel: n_tasks -> num_tasks
  • LCMKernel: n_tasks -> num_tasks
  • MultitaskKernel: n_tasks -> num_tasks
  • MultitaskGaussianLikelihood: n_tasks -> num_tasks
  • SoftmaxLikelihood: n_features -> num_features
  • MultitaskMean: n_tasks -> num_tasks
  • VariationalMarginalLogLikelihood: n_data -> num_data
  • SpectralMixtureKernel: n_dimensions -> ard_num_dims, n_mixtures -> num_mixtures