diff --git a/examples/air/main.py b/examples/air/main.py index 7f58d750c0..691fff1d26 100644 --- a/examples/air/main.py +++ b/examples/air/main.py @@ -246,7 +246,7 @@ def per_param_optim_args(module_name, param_name): if __name__ == '__main__': - assert pyro.__version__.startswith('0.3.0') + assert pyro.__version__.startswith('0.3.1') parser = argparse.ArgumentParser(description="Pyro AIR example", argument_default=argparse.SUPPRESS) parser.add_argument('-n', '--num-steps', type=int, default=int(1e8), help='number of optimization steps to take') diff --git a/examples/baseball.py b/examples/baseball.py index 2cfd27495e..b98cb7aa71 100644 --- a/examples/baseball.py +++ b/examples/baseball.py @@ -307,7 +307,7 @@ def main(args): if __name__ == "__main__": - assert pyro.__version__.startswith('0.3.0') + assert pyro.__version__.startswith('0.3.1') parser = argparse.ArgumentParser(description="Baseball batting average using HMC") parser.add_argument("-n", "--num-samples", nargs="?", default=200, type=int) parser.add_argument("--num-chains", nargs='?', default=4, type=int) diff --git a/examples/bayesian_regression.py b/examples/bayesian_regression.py index 00146b3077..32bfee47ad 100644 --- a/examples/bayesian_regression.py +++ b/examples/bayesian_regression.py @@ -136,7 +136,7 @@ def main(args): if __name__ == '__main__': - assert pyro.__version__.startswith('0.3.0') + assert pyro.__version__.startswith('0.3.1') parser = argparse.ArgumentParser(description="parse args") parser.add_argument('-n', '--num-epochs', default=1000, type=int) parser.add_argument('-b', '--batch-size', default=N, type=int) diff --git a/examples/contrib/autoname/mixture.py b/examples/contrib/autoname/mixture.py index 99b714acc4..4e2e0dc417 100644 --- a/examples/contrib/autoname/mixture.py +++ b/examples/contrib/autoname/mixture.py @@ -74,7 +74,7 @@ def main(args): if __name__ == '__main__': - assert pyro.__version__.startswith('0.3.0') + assert pyro.__version__.startswith('0.3.1') parser = argparse.ArgumentParser(description="parse args") parser.add_argument('-n', '--num-epochs', default=200, type=int) parser.add_argument('--jit', action='store_true') diff --git a/examples/contrib/autoname/scoping_mixture.py b/examples/contrib/autoname/scoping_mixture.py index b6ee984d94..b5f5ba3251 100644 --- a/examples/contrib/autoname/scoping_mixture.py +++ b/examples/contrib/autoname/scoping_mixture.py @@ -66,7 +66,7 @@ def main(args): if __name__ == "__main__": - assert pyro.__version__.startswith('0.3.0') + assert pyro.__version__.startswith('0.3.1') parser = argparse.ArgumentParser(description="parse args") parser.add_argument('-n', '--num-epochs', default=200, type=int) args = parser.parse_args() diff --git a/examples/contrib/autoname/tree_data.py b/examples/contrib/autoname/tree_data.py index 4ce7935027..6552a11a04 100644 --- a/examples/contrib/autoname/tree_data.py +++ b/examples/contrib/autoname/tree_data.py @@ -104,7 +104,7 @@ def main(args): if __name__ == '__main__': - assert pyro.__version__.startswith('0.3.0') + assert pyro.__version__.startswith('0.3.1') parser = argparse.ArgumentParser(description="parse args") parser.add_argument('-n', '--num-epochs', default=100, type=int) args = parser.parse_args() diff --git a/examples/contrib/gp/sv-dkl.py b/examples/contrib/gp/sv-dkl.py index 079e4271f9..04068488d5 100644 --- a/examples/contrib/gp/sv-dkl.py +++ b/examples/contrib/gp/sv-dkl.py @@ -163,7 +163,7 @@ def main(args): if __name__ == '__main__': - assert pyro.__version__.startswith('0.3.0') + assert pyro.__version__.startswith('0.3.1') parser = argparse.ArgumentParser(description='Pyro GP MNIST Example') parser.add_argument('--data-dir', type=str, default=None, metavar='PATH', help='default directory to cache MNIST data') diff --git a/examples/contrib/oed/ab_test.py b/examples/contrib/oed/ab_test.py index aaea59cbef..71a1f3fbb7 100644 --- a/examples/contrib/oed/ab_test.py +++ b/examples/contrib/oed/ab_test.py @@ -113,7 +113,7 @@ def main(num_vi_steps, num_bo_steps, seed): if __name__ == "__main__": - assert pyro.__version__.startswith('0.3.0') + assert pyro.__version__.startswith('0.3.1') parser = argparse.ArgumentParser(description="A/B test experiment design using VI") parser.add_argument("-n", "--num-vi-steps", nargs="?", default=5000, type=int) parser.add_argument('--num-bo-steps', nargs="?", default=5, type=int) diff --git a/examples/contrib/oed/item_response.py b/examples/contrib/oed/item_response.py index 941d78bc20..b7a5b24c65 100644 --- a/examples/contrib/oed/item_response.py +++ b/examples/contrib/oed/item_response.py @@ -69,7 +69,7 @@ def main(N, M): if __name__ == "__main__": - assert pyro.__version__.startswith('0.3.0') + assert pyro.__version__.startswith('0.3.1') parser = argparse.ArgumentParser(description="Item response experiment design using NMC") parser.add_argument("-N", nargs="?", default=5000, type=int) parser.add_argument("-M", nargs="?", default=5000, type=int) diff --git a/examples/contrib/oed/sequential_oed_sigmoid_lm.py b/examples/contrib/oed/sequential_oed_sigmoid_lm.py index 326da2ec11..434826521f 100644 --- a/examples/contrib/oed/sequential_oed_sigmoid_lm.py +++ b/examples/contrib/oed/sequential_oed_sigmoid_lm.py @@ -144,7 +144,7 @@ def main(num_experiments, num_runs, plot=True): if __name__ == "__main__": - assert pyro.__version__.startswith('0.3.0') + assert pyro.__version__.startswith('0.3.1') parser = argparse.ArgumentParser(description="Sigmoid iterated experiment design") parser.add_argument("--num-experiments", nargs="?", default=5, type=int) parser.add_argument("--num-runs", nargs="?", default=5, type=int) diff --git a/examples/dmm/dmm.py b/examples/dmm/dmm.py index dad565de75..0ea2bcce64 100644 --- a/examples/dmm/dmm.py +++ b/examples/dmm/dmm.py @@ -420,7 +420,7 @@ def do_evaluation(): # parse command-line arguments and execute the main method if __name__ == '__main__': - assert pyro.__version__.startswith('0.3.0') + assert pyro.__version__.startswith('0.3.1') parser = argparse.ArgumentParser(description="parse args") parser.add_argument('-n', '--num-epochs', type=int, default=5000) diff --git a/examples/eight_schools/mcmc.py b/examples/eight_schools/mcmc.py index 857de3239f..adcc2591ff 100644 --- a/examples/eight_schools/mcmc.py +++ b/examples/eight_schools/mcmc.py @@ -46,7 +46,7 @@ def main(args): if __name__ == '__main__': - assert pyro.__version__.startswith('0.3.0') + assert pyro.__version__.startswith('0.3.1') parser = argparse.ArgumentParser(description='Eight Schools MCMC') parser.add_argument('--num-samples', type=int, default=1000, help='number of MCMC samples (default: 1000)') diff --git a/examples/eight_schools/svi.py b/examples/eight_schools/svi.py index 4518115b6e..c4ebe5801d 100644 --- a/examples/eight_schools/svi.py +++ b/examples/eight_schools/svi.py @@ -74,7 +74,7 @@ def main(args): if __name__ == '__main__': - assert pyro.__version__.startswith('0.3.0') + assert pyro.__version__.startswith('0.3.1') parser = argparse.ArgumentParser(description='Eight Schools SVI') parser.add_argument('--lr', type=float, default=0.01, help='learning rate (default: 0.01)') diff --git a/examples/hmm.py b/examples/hmm.py index 27dece237a..1180fc5830 100644 --- a/examples/hmm.py +++ b/examples/hmm.py @@ -584,7 +584,7 @@ def main(args): if __name__ == '__main__': - assert pyro.__version__.startswith('0.3.0') + assert pyro.__version__.startswith('0.3.1') parser = argparse.ArgumentParser(description="MAP Baum-Welch learning Bach Chorales") parser.add_argument("-m", "--model", default="1", type=str, help="one of: {}".format(", ".join(sorted(models.keys())))) diff --git a/examples/inclined_plane.py b/examples/inclined_plane.py index 61663f09df..0899017f28 100644 --- a/examples/inclined_plane.py +++ b/examples/inclined_plane.py @@ -121,7 +121,7 @@ def main(args): if __name__ == '__main__': - assert pyro.__version__.startswith('0.3.0') + assert pyro.__version__.startswith('0.3.1') parser = argparse.ArgumentParser(description="parse args") parser.add_argument('-n', '--num-samples', default=500, type=int) args = parser.parse_args() diff --git a/examples/lda.py b/examples/lda.py index 94e8895813..d2748b6b78 100644 --- a/examples/lda.py +++ b/examples/lda.py @@ -131,7 +131,7 @@ def main(args): if __name__ == '__main__': - assert pyro.__version__.startswith('0.3.0') + assert pyro.__version__.startswith('0.3.1') parser = argparse.ArgumentParser(description="Amortized Latent Dirichlet Allocation") parser.add_argument("-t", "--num-topics", default=8, type=int) parser.add_argument("-w", "--num-words", default=1024, type=int) diff --git a/examples/minipyro.py b/examples/minipyro.py index 843da16dc4..b82d0d5810 100644 --- a/examples/minipyro.py +++ b/examples/minipyro.py @@ -67,7 +67,7 @@ def guide(data): if __name__ == "__main__": import pyro - assert pyro.__version__.startswith('0.3.0') + assert pyro.__version__.startswith('0.3.1') parser = argparse.ArgumentParser(description="Mini Pyro demo") parser.add_argument("-f", "--full-pyro", action="store_true", default=False) parser.add_argument("-n", "--num-steps", default=1001, type=int) diff --git a/examples/rsa/generics.py b/examples/rsa/generics.py index ee0131c0a3..c9718591a1 100644 --- a/examples/rsa/generics.py +++ b/examples/rsa/generics.py @@ -154,7 +154,7 @@ def main(args): if __name__ == "__main__": - assert pyro.__version__.startswith('0.3.0') + assert pyro.__version__.startswith('0.3.1') parser = argparse.ArgumentParser(description="parse args") parser.add_argument('-n', '--num-samples', default=10, type=int) args = parser.parse_args() diff --git a/examples/rsa/hyperbole.py b/examples/rsa/hyperbole.py index 440296fc96..af89058587 100644 --- a/examples/rsa/hyperbole.py +++ b/examples/rsa/hyperbole.py @@ -151,7 +151,7 @@ def main(args): if __name__ == "__main__": - assert pyro.__version__.startswith('0.3.0') + assert pyro.__version__.startswith('0.3.1') parser = argparse.ArgumentParser(description="parse args") parser.add_argument('-n', '--num-samples', default=10, type=int) parser.add_argument('--price', default=10000, type=int) diff --git a/examples/rsa/schelling.py b/examples/rsa/schelling.py index debdd39b13..6b50a74998 100644 --- a/examples/rsa/schelling.py +++ b/examples/rsa/schelling.py @@ -76,7 +76,7 @@ def main(args): if __name__ == '__main__': - assert pyro.__version__.startswith('0.3.0') + assert pyro.__version__.startswith('0.3.1') parser = argparse.ArgumentParser(description="parse args") parser.add_argument('-n', '--num-samples', default=10, type=int) parser.add_argument('--depth', default=2, type=int) diff --git a/examples/rsa/schelling_false.py b/examples/rsa/schelling_false.py index 1e4aa2268d..cc65486a32 100644 --- a/examples/rsa/schelling_false.py +++ b/examples/rsa/schelling_false.py @@ -89,7 +89,7 @@ def main(args): if __name__ == '__main__': - assert pyro.__version__.startswith('0.3.0') + assert pyro.__version__.startswith('0.3.1') parser = argparse.ArgumentParser(description="parse args") parser.add_argument('-n', '--num-samples', default=10, type=int) parser.add_argument('--depth', default=3, type=int) diff --git a/examples/rsa/semantic_parsing.py b/examples/rsa/semantic_parsing.py index 93426de8b4..b6f6887139 100644 --- a/examples/rsa/semantic_parsing.py +++ b/examples/rsa/semantic_parsing.py @@ -337,7 +337,7 @@ def is_all_qud(world): if __name__ == "__main__": - assert pyro.__version__.startswith('0.3.0') + assert pyro.__version__.startswith('0.3.1') parser = argparse.ArgumentParser(description="parse args") parser.add_argument('-n', '--num-samples', default=10, type=int) args = parser.parse_args() diff --git a/examples/sparse_gamma_def.py b/examples/sparse_gamma_def.py index 84c9cf1aec..c195457acd 100644 --- a/examples/sparse_gamma_def.py +++ b/examples/sparse_gamma_def.py @@ -187,7 +187,7 @@ def main(args): if __name__ == '__main__': - assert pyro.__version__.startswith('0.3.0') + assert pyro.__version__.startswith('0.3.1') # parse command line arguments parser = argparse.ArgumentParser(description="parse args") parser.add_argument('-n', '--num-epochs', default=1000, type=int, help='number of training epochs') diff --git a/examples/vae/ss_vae_M2.py b/examples/vae/ss_vae_M2.py index c19a58d060..454e296b85 100644 --- a/examples/vae/ss_vae_M2.py +++ b/examples/vae/ss_vae_M2.py @@ -380,7 +380,7 @@ def main(args): "-sup 3000 -zd 50 -hl 500 -lr 0.00042 -b1 0.95 -bs 200 -log ./tmp.log" if __name__ == "__main__": - assert pyro.__version__.startswith('0.3.0') + assert pyro.__version__.startswith('0.3.1') parser = argparse.ArgumentParser(description="SS-VAE\n{}".format(EXAMPLE_RUN)) diff --git a/examples/vae/vae.py b/examples/vae/vae.py index 234af741ab..dce5906aab 100644 --- a/examples/vae/vae.py +++ b/examples/vae/vae.py @@ -198,7 +198,7 @@ def main(args): if __name__ == '__main__': - assert pyro.__version__.startswith('0.3.0') + assert pyro.__version__.startswith('0.3.1') # parse command line arguments parser = argparse.ArgumentParser(description="parse args") parser.add_argument('-n', '--num-epochs', default=101, type=int, help='number of training epochs') diff --git a/examples/vae/vae_comparison.py b/examples/vae/vae_comparison.py index f79992e1ef..582166dbb6 100644 --- a/examples/vae/vae_comparison.py +++ b/examples/vae/vae_comparison.py @@ -245,7 +245,7 @@ def main(args): if __name__ == '__main__': - assert pyro.__version__.startswith('0.3.0') + assert pyro.__version__.startswith('0.3.1') parser = argparse.ArgumentParser(description='VAE using MNIST dataset') parser.add_argument('-n', '--num-epochs', nargs='?', default=10, type=int) parser.add_argument('--batch_size', nargs='?', default=128, type=int) diff --git a/pyro/__init__.py b/pyro/__init__.py index 9502a5c809..b22a606d11 100644 --- a/pyro/__init__.py +++ b/pyro/__init__.py @@ -7,7 +7,7 @@ plate, random_module, sample, validation_enabled) from pyro.util import set_rng_seed -version_prefix = '0.3.0' +version_prefix = '0.3.1' # Get the __version__ string from the auto-generated _version.py file, if exists. try: diff --git a/tutorial/source/air.ipynb b/tutorial/source/air.ipynb index 74020edb2d..23755553f9 100644 --- a/tutorial/source/air.ipynb +++ b/tutorial/source/air.ipynb @@ -41,7 +41,7 @@ "import numpy as np\n", "\n", "smoke_test = ('CI' in os.environ)\n", - "assert pyro.__version__.startswith('0.3.0')\n", + "assert pyro.__version__.startswith('0.3.1')\n", "pyro.enable_validation(True)" ] }, diff --git a/tutorial/source/bayesian_regression.ipynb b/tutorial/source/bayesian_regression.ipynb index 668952a0ac..87175622f9 100644 --- a/tutorial/source/bayesian_regression.ipynb +++ b/tutorial/source/bayesian_regression.ipynb @@ -55,7 +55,7 @@ "\n", "# for CI testing\n", "smoke_test = ('CI' in os.environ)\n", - "assert pyro.__version__.startswith('0.3.0')\n", + "assert pyro.__version__.startswith('0.3.1')\n", "pyro.enable_validation(True)\n", "pyro.set_rng_seed(1)\n", "pyro.enable_validation(True)" diff --git a/tutorial/source/bayesian_regression_ii.ipynb b/tutorial/source/bayesian_regression_ii.ipynb index 39865479a4..7d379dac12 100644 --- a/tutorial/source/bayesian_regression_ii.ipynb +++ b/tutorial/source/bayesian_regression_ii.ipynb @@ -45,7 +45,7 @@ "import pyro.optim as optim\n", "import pyro.poutine as poutine\n", "\n", - "assert pyro.__version__.startswith('0.3.0')" + "assert pyro.__version__.startswith('0.3.1')" ] }, { diff --git a/tutorial/source/bo.ipynb b/tutorial/source/bo.ipynb index 45066217a6..69aca8a4ef 100644 --- a/tutorial/source/bo.ipynb +++ b/tutorial/source/bo.ipynb @@ -54,7 +54,7 @@ "import pyro\n", "import pyro.contrib.gp as gp\n", "\n", - "assert pyro.__version__.startswith('0.3.0')\n", + "assert pyro.__version__.startswith('0.3.1')\n", "pyro.enable_validation(True) # can help with debugging\n", "pyro.set_rng_seed(1)" ] diff --git a/tutorial/source/ekf.ipynb b/tutorial/source/ekf.ipynb index 7f0702aec9..0a9adb1a27 100644 --- a/tutorial/source/ekf.ipynb +++ b/tutorial/source/ekf.ipynb @@ -98,7 +98,7 @@ "from pyro.contrib.tracking.measurements import PositionMeasurement\n", "\n", "smoke_test = ('CI' in os.environ)\n", - "assert pyro.__version__.startswith('0.3.0')\n", + "assert pyro.__version__.startswith('0.3.1')\n", "pyro.enable_validation(True)" ] }, diff --git a/tutorial/source/enumeration.ipynb b/tutorial/source/enumeration.ipynb index 1d3fdbd8a2..2b2fc8689f 100644 --- a/tutorial/source/enumeration.ipynb +++ b/tutorial/source/enumeration.ipynb @@ -48,7 +48,7 @@ "from pyro.contrib.autoguide import AutoDiagonalNormal\n", "\n", "smoke_test = ('CI' in os.environ)\n", - "assert pyro.__version__.startswith('0.3.0')\n", + "assert pyro.__version__.startswith('0.3.1')\n", "pyro.enable_validation()\n", "pyro.set_rng_seed(0)" ] diff --git a/tutorial/source/gmm.ipynb b/tutorial/source/gmm.ipynb index 0804f5e294..10277913bf 100644 --- a/tutorial/source/gmm.ipynb +++ b/tutorial/source/gmm.ipynb @@ -41,7 +41,7 @@ "from pyro.infer import SVI, TraceEnum_ELBO, config_enumerate, infer_discrete\n", "\n", "smoke_test = ('CI' in os.environ)\n", - "assert pyro.__version__.startswith('0.3.0')\n", + "assert pyro.__version__.startswith('0.3.1')\n", "pyro.enable_validation(True)" ] }, diff --git a/tutorial/source/gp.ipynb b/tutorial/source/gp.ipynb index 78ac5a11b4..0905996ad8 100644 --- a/tutorial/source/gp.ipynb +++ b/tutorial/source/gp.ipynb @@ -61,7 +61,7 @@ "import pyro.distributions as dist\n", "\n", "smoke_test = ('CI' in os.environ) # ignore; used to check code integrity in the Pyro repo\n", - "assert pyro.__version__.startswith('0.3.0')\n", + "assert pyro.__version__.startswith('0.3.1')\n", "pyro.enable_validation(True) # can help with debugging\n", "pyro.set_rng_seed(0)" ] diff --git a/tutorial/source/gplvm.ipynb b/tutorial/source/gplvm.ipynb index b021f092ad..94cb980ed1 100644 --- a/tutorial/source/gplvm.ipynb +++ b/tutorial/source/gplvm.ipynb @@ -39,7 +39,7 @@ "import pyro.ops.stats as stats\n", "\n", "smoke_test = ('CI' in os.environ) # ignore; used to check code integrity in the Pyro repo\n", - "assert pyro.__version__.startswith('0.3.0')\n", + "assert pyro.__version__.startswith('0.3.1')\n", "pyro.enable_validation(True) # can help with debugging\n", "pyro.set_rng_seed(1)" ] diff --git a/tutorial/source/jit.ipynb b/tutorial/source/jit.ipynb index 961cdd068a..2092c7a00f 100644 --- a/tutorial/source/jit.ipynb +++ b/tutorial/source/jit.ipynb @@ -48,7 +48,7 @@ "from pyro.optim import Adam\n", "\n", "smoke_test = ('CI' in os.environ)\n", - "assert pyro.__version__.startswith('0.3.0')\n", + "assert pyro.__version__.startswith('0.3.1')\n", "pyro.enable_validation(True) # <---- This is always a good idea!" ] }, diff --git a/tutorial/source/svi_part_i.ipynb b/tutorial/source/svi_part_i.ipynb index d4fa3c34d2..75bcf94e1a 100644 --- a/tutorial/source/svi_part_i.ipynb +++ b/tutorial/source/svi_part_i.ipynb @@ -266,7 +266,7 @@ "n_steps = 2 if smoke_test else 2000\n", "\n", "# enable validation (e.g. validate parameters of distributions)\n", - "assert pyro.__version__.startswith('0.3.0')\n", + "assert pyro.__version__.startswith('0.3.1')\n", "pyro.enable_validation(True)\n", "\n", "# clear the param store in case we're in a REPL\n", diff --git a/tutorial/source/svi_part_iii.ipynb b/tutorial/source/svi_part_iii.ipynb index 376d370cc6..5453356d02 100644 --- a/tutorial/source/svi_part_iii.ipynb +++ b/tutorial/source/svi_part_iii.ipynb @@ -285,7 +285,7 @@ "import sys\n", "\n", "# enable validation (e.g. validate parameters of distributions)\n", - "assert pyro.__version__.startswith('0.3.0')\n", + "assert pyro.__version__.startswith('0.3.1')\n", "pyro.enable_validation(True)\n", "\n", "# this is for running the notebook in our testing framework\n", diff --git a/tutorial/source/tensor_shapes.ipynb b/tutorial/source/tensor_shapes.ipynb index 42b1d4007f..254a8a3815 100644 --- a/tutorial/source/tensor_shapes.ipynb +++ b/tutorial/source/tensor_shapes.ipynb @@ -51,7 +51,7 @@ "from pyro.optim import Adam\n", "\n", "smoke_test = ('CI' in os.environ)\n", - "assert pyro.__version__.startswith('0.3.0')\n", + "assert pyro.__version__.startswith('0.3.1')\n", "pyro.enable_validation(True) # <---- This is always a good idea!\n", "\n", "# We'll ue this helper to check our models are correct.\n", diff --git a/tutorial/source/tracking_1d.ipynb b/tutorial/source/tracking_1d.ipynb index 076669597a..14c01c84b8 100644 --- a/tutorial/source/tracking_1d.ipynb +++ b/tutorial/source/tracking_1d.ipynb @@ -31,7 +31,7 @@ "from pyro.optim import Adam\n", "\n", "%matplotlib inline\n", - "assert pyro.__version__.startswith('0.3.0')\n", + "assert pyro.__version__.startswith('0.3.1')\n", "pyro.enable_validation(True)\n", "smoke_test = ('CI' in os.environ)" ] diff --git a/tutorial/source/vae.ipynb b/tutorial/source/vae.ipynb index c7e4788529..9ed1e04459 100644 --- a/tutorial/source/vae.ipynb +++ b/tutorial/source/vae.ipynb @@ -114,7 +114,7 @@ "metadata": {}, "outputs": [], "source": [ - "assert pyro.__version__.startswith('0.3.0')\n", + "assert pyro.__version__.startswith('0.3.1')\n", "pyro.enable_validation(True)\n", "pyro.distributions.enable_validation(False)\n", "pyro.set_rng_seed(0)\n",