Skip to content

Commit 75f75f1

Browse files
zaxtaxtwiecki
authored andcommitted
Better explain Theano shared variables
1 parent 25369b2 commit 75f75f1

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

docs/source/notebooks/api_quickstart.ipynb

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1496,7 +1496,9 @@
14961496
"source": [
14971497
"## 4.1 Predicting on hold-out data\n",
14981498
"\n",
1499-
"In many cases you want to predict on unseen / hold-out data. This is especially relevant in Probabilistic Machine Learning and Bayesian Deep Learning. While we plan to improve the API in this regard, this can currently be achieved with a `theano.shared` variable. These are theano tensors whose values can be changed later. Otherwise they can be passed into PyMC3 just like any other numpy array or tensor."
1499+
"In many cases you want to predict on unseen / hold-out data. This is especially relevant in Probabilistic Machine Learning and Bayesian Deep Learning. While we plan to improve the API in this regard, this can currently be achieved with a `theano.shared` variable. These are theano tensors whose values can be changed later. Otherwise they can be passed into PyMC3 just like any other numpy array or tensor.\n",
1500+
"\n",
1501+
"This distinction is significant since internally all models in PyMC3 are giant symbolic expressions. When you pass data directly into a model, you are giving Theano permission to treat this data as a constant and optimize it away as it sees fit. If you need to change this data later you might not have a way to point at it in the symbolic expression. Using `theano.shared` offers a way to point to a place in that symbolic expression, and change what is there."
15001502
]
15011503
},
15021504
{
@@ -1582,8 +1584,8 @@
15821584
"metadata": {
15831585
"anaconda-cloud": {},
15841586
"kernelspec": {
1585-
"display_name": "Python 3",
1586-
"language": "python",
1587+
"display_name": "IPython (Python 3)",
1588+
"language": "",
15871589
"name": "python3"
15881590
},
15891591
"language_info": {
@@ -1596,7 +1598,7 @@
15961598
"name": "python",
15971599
"nbconvert_exporter": "python",
15981600
"pygments_lexer": "ipython3",
1599-
"version": "3.6.1"
1601+
"version": "3.5.2"
16001602
}
16011603
},
16021604
"nbformat": 4,

0 commit comments

Comments
 (0)