This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from ruffus import * | |
| import matplotlib.pylab as plt | |
| import os | |
| import time | |
| TEST_DIR = "./_ruffus_test" | |
| if not os.path.isdir(TEST_DIR): | |
| os.mkdir(TEST_DIR) | |
| INPUT_FNAME = os.path.join(TEST_DIR, "input.txt") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## | |
| ## Test DBN | |
| ## | |
| import pymc | |
| import numpy as np | |
| # prior probability of rain | |
| p_rain = 0.5 | |
| # make all the time steps |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| X Y | |
| 0 NaN NaN | |
| 1 -17.133395038326373 -0.15826216771576185 | |
| 2 -22.899670407968507 2.9710208492292054 | |
| 3 NaN NaN | |
| 4 -11.422398719854357 -0.25267457037283059 | |
| 5 -14.681082097060168 0.26469218403879324 | |
| 6 NaN NaN | |
| 7 -20.669954598649859 0.51158923059190897 | |
| 8 NaN NaN |