-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_bglm.py
132 lines (83 loc) · 2.1 KB
/
test_bglm.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
import unittest
import sys
sys.path.append('/Users/carsonmckee/Dev/bayesglm_2/bayesglm')
import bglm
import distributions
class TestGLMInit(unittest.TestCase):
def test_init(self):
t = bglm.Prior('a', distributions.Normal(0,1))
class TestGLMFit(unittest.TestCase):
def test_fit_poisson(self):
pass
def test_fit_normal(self):
pass
def test_fit_gamma(self):
pass
def test_fit_binomial(self):
pass
def test_fit_laplace(self):
pass
class TestGLMFitted(unittest.TestCase):
def test_fitted_poisson(self):
pass
def test_fitted_normal(self):
pass
def test_fitted_gamma(self):
pass
def test_fitted_binomial(self):
pass
def test_fitted_laplace(self):
pass
class TestGLMPredict(unittest.TestCase):
def test_predict_poisson(self):
pass
def test_predict_normal(self):
pass
def test_predict_gamma(self):
pass
def test_predict_binomial(self):
pass
def test_predict_laplace(self):
pass
class TestGLMChains(unittest.TestCase):
def test_get_chains(self):
pass
def test_acceptance_rates(self):
pass
class TestGLMResiduals(unittest.TestCase):
def test_residuals_poisson(self):
pass
def test_residuals_normal(self):
pass
def test_residuals_gamma(self):
pass
def test_residuals_binomial(self):
pass
def test_residuals_laplace(self):
pass
class TestGLMAICDIC(unittest.TestCase):
def test_aic_poisson(self):
pass
def test_aic_normal(self):
pass
def test_aic_gamma(self):
pass
def test_aic_binomial(self):
pass
def test_aic_laplace(self):
pass
def test_dic_poisson(self):
pass
def test_dic_normal(self):
pass
def test_dic_gamma(self):
pass
def test_dic_binomial(self):
pass
def test_dic_laplace(self):
pass
class TestPrior(unittest.TestCase):
def test_init(self):
pass
if __name__ == '__main__':
unittest.main()