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

Graduate VI from experimental #1609

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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