Skip to content
This repository has been archived by the owner on Dec 18, 2023. It is now read-only.

Commit

Permalink
Graduate VI from experimental (#1609)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #1609

- Graduated VI from experimental for the 0.2.0 release => moved it to `ppl/inference`
- Used the reference tool to find all references of the classes/ functions that are being graduated

Reviewed By: horizon-blue

Differential Revision: D38875109

fbshipit-source-id: ce0bf9458ce91f032962dc42b725ab840d431eda
  • Loading branch information
CactusWin authored and facebook-github-bot committed Aug 22, 2022
1 parent e773176 commit 00b0cf8
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 13 deletions.
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import pytest
import torch
import torch.distributions as dist
from beanmachine.ppl.experimental.vi import VariationalInfer
from beanmachine.ppl.inference.vi import VariationalInfer

cpu_device = torch.device("cpu")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@
import scipy.stats
import torch
import torch.distributions as dist
from beanmachine.ppl.experimental.vi import ADVI, MAP, VariationalInfer
from beanmachine.ppl.experimental.vi.gradient_estimator import (
monte_carlo_approximate_sf,
)
from beanmachine.ppl.experimental.vi.variational_world import VariationalWorld
from beanmachine.ppl.inference.vi import ADVI, MAP, VariationalInfer
from beanmachine.ppl.inference.vi.gradient_estimator import monte_carlo_approximate_sf
from beanmachine.ppl.inference.vi.variational_world import VariationalWorld
from beanmachine.ppl.world import init_from_prior, RVDict
from torch import optim
from torch.distributions import constraints
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
import torch
from beanmachine import ppl as bm
from beanmachine.ppl.distributions.delta import Delta
from beanmachine.ppl.experimental.vi.variational_infer import VariationalInfer
from beanmachine.ppl.experimental.vi.variational_world import VariationalWorld
from beanmachine.ppl.inference.vi.variational_infer import VariationalInfer
from beanmachine.ppl.inference.vi.variational_world import VariationalWorld
from beanmachine.ppl.model.rv_identifier import RVIdentifier
from beanmachine.ppl.world import RVDict
from torch import distributions as dist
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from typing import Callable, Mapping

import torch
from beanmachine.ppl.experimental.vi.variational_world import VariationalWorld
from beanmachine.ppl.inference.vi.variational_world import VariationalWorld
from beanmachine.ppl.model.rv_identifier import RVIdentifier
from beanmachine.ppl.world import RVDict, World

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@

import torch
import torch.optim as optim
from beanmachine.ppl.experimental.vi.discrepancy import kl_reverse
from beanmachine.ppl.experimental.vi.gradient_estimator import (
from beanmachine.ppl.inference.vi.discrepancy import kl_reverse
from beanmachine.ppl.inference.vi.gradient_estimator import (
monte_carlo_approximate_reparam,
)
from beanmachine.ppl.experimental.vi.variational_world import VariationalWorld
from beanmachine.ppl.inference.vi.variational_world import VariationalWorld
from beanmachine.ppl.model.rv_identifier import RVIdentifier
from beanmachine.ppl.world.world import RVDict
from tqdm.auto import tqdm
Expand Down
2 changes: 1 addition & 1 deletion src/beanmachine/ppl/model/statistical_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import torch
import torch.distributions as dist
from beanmachine.ppl.experimental.vi.variational_world import VariationalWorld
from beanmachine.ppl.inference.vi.variational_world import VariationalWorld
from beanmachine.ppl.legacy.world import World
from beanmachine.ppl.model.rv_identifier import RVIdentifier
from beanmachine.ppl.world import get_world_context
Expand Down

0 comments on commit 00b0cf8

Please sign in to comment.