File tree 2 files changed +8
-8
lines changed
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 678
678
"source" : [
679
679
" with model:\n " ,
680
680
" idx = np.arange(n_count_data) # Index\n " ,
681
- " lambda_ = tt .switch(tau >= idx, lambda_1, lambda_2)"
681
+ " lambda_ = pm.math .switch(tau >= idx, lambda_1, lambda_2)"
682
682
]
683
683
},
684
684
{
Original file line number Diff line number Diff line change 330
330
"outputs": [],
331
331
"source": [
332
332
"import numpy as np\n",
333
+ "\n",
333
334
"n_data_points = 5 # in CH1 we had ~70 data points\n",
334
335
"idx = np.arange(n_data_points)\n",
335
336
"with model:\n",
336
- " lambda_ = pm.switch(tau >= idx, lambda_1, lambda_2)"
337
+ " lambda_ = pm.math. switch(tau >= idx, lambda_1, lambda_2)"
337
338
]
338
339
},
339
340
{
384
385
}
385
386
],
386
387
"source": [
387
- "import numpy as np\n",
388
388
"import theano.tensor as tt\n",
389
389
"\n",
390
390
"with pm.Model() as theano_test:\n",
2646
2646
"metadata": {
2647
2647
"anaconda-cloud": {},
2648
2648
"kernelspec": {
2649
- "display_name": "Python 2 ",
2649
+ "display_name": "Python 3 ",
2650
2650
"language": "python",
2651
- "name": "python2 "
2651
+ "name": "python3 "
2652
2652
},
2653
2653
"language_info": {
2654
2654
"codemirror_mode": {
2655
2655
"name": "ipython",
2656
- "version": 2
2656
+ "version": 3
2657
2657
},
2658
2658
"file_extension": ".py",
2659
2659
"mimetype": "text/x-python",
2660
2660
"name": "python",
2661
2661
"nbconvert_exporter": "python",
2662
- "pygments_lexer": "ipython2 ",
2663
- "version": "2.7.11 "
2662
+ "pygments_lexer": "ipython3 ",
2663
+ "version": "3.5.2 "
2664
2664
}
2665
2665
},
2666
2666
"nbformat": 4,
You can’t perform that action at this time.
0 commit comments