Skip to content

Commit 6decabc

Browse files
committed
2 parents 7fb9cf4 + 91c595f commit 6decabc

File tree

17 files changed

+112
-874
lines changed

17 files changed

+112
-874
lines changed

.github/workflows/compile.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Compile models
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/setup-python@v2
16+
with:
17+
python-version: '3.x'
18+
architecture: 'x64'
19+
20+
- uses: actions/checkout@v2
21+
with:
22+
repository: 'stan-dev/performance-tests-cmdstan'
23+
submodules: recursive
24+
25+
- uses: actions/checkout@v2
26+
with:
27+
path: 'example-models-new'
28+
fetch-depth: 0
29+
30+
- name: Write modified models
31+
run: |
32+
cd example-models-new
33+
echo "example-models-new/basic_distributions/binormal.stan" > ../test-models.txt
34+
git diff --name-only origin/master $GITHUB_SHA --diff-filter=AM | grep ".stan$" | sed -e 's/^/example-models-new\//' >> ../test-models.txt
35+
36+
- name: Compile all new or modified models
37+
run: |
38+
cd cmdstan
39+
make build
40+
cd ..
41+
./runPerformanceTests.py --runs=0 --tests-file test-models.txt

ARM/Ch.21/finite_populations.stan

Lines changed: 0 additions & 36 deletions
This file was deleted.

ARM/Ch.21/r_sqr.data.R

Lines changed: 0 additions & 728 deletions
This file was deleted.

ARM/Ch.21/r_sqr.stan

Lines changed: 0 additions & 41 deletions
This file was deleted.

BPA/Ch.06/Mb.stan

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ model {
5050
+ bernoulli_lpmf(y[i] | p_eff[i]);
5151
else // s[i] == 0
5252
target += log_sum_exp(bernoulli_lpmf(1 | omega) // z[i] == 1
53-
+ bernoulli_lpmf(0 | p_eff[i]),
53+
+ bernoulli_lpmf(y[i] | p_eff[i]),
5454
bernoulli_lpmf(0 | omega)); // z[i] == 0
5555
}
5656

BPA/Ch.06/Mt.stan

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ model {
3434
+ bernoulli_lpmf(y[i] | p);
3535
else // s[i] == 0
3636
target += log_sum_exp(bernoulli_lpmf(1 | omega) // z[i] == 1
37-
+ bernoulli_lpmf(0 | p),
37+
+ bernoulli_lpmf(y[i] | p),
3838
bernoulli_lpmf(0 | omega)); // z[i] == 0
3939
}
4040

BPA/Ch.06/MtX.stan

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ model {
5454
+ bernoulli_logit_lpmf(y[i] | logit_p[i]);
5555
else // s[i] == 0
5656
target += log_sum_exp(bernoulli_lpmf(1 | omega) // z[i] == 1
57-
+ bernoulli_logit_lpmf(0 | logit_p[i]),
57+
+ bernoulli_logit_lpmf(y[i] | logit_p[i]),
5858
bernoulli_lpmf(0 | omega)); // z[i] == 0
5959
}
6060

BPA/Ch.06/Mtbh.stan

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ model {
5959
+ bernoulli_logit_lpmf(y[i] | logit_p[i]);
6060
else // s[i] == 0
6161
target += log_sum_exp(bernoulli_lpmf(1 | omega) // z[i] == 1
62-
+ bernoulli_logit_lpmf(0 | logit_p[i]),
62+
+ bernoulli_logit_lpmf(y[i] | logit_p[i]),
6363
bernoulli_lpmf(0 | omega)); // z[i] == 0
6464
}
6565

BPA/Ch.06/Mth.stan

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ model {
5151
+ bernoulli_logit_lpmf(y[i] | logit_p[i]);
5252
else // s[i] == 0
5353
target += log_sum_exp(bernoulli_lpmf(1 | omega) // z[i] == 1
54-
+ bernoulli_logit_lpmf(0 | logit_p[i]),
54+
+ bernoulli_logit_lpmf(y[i] | logit_p[i]),
5555
bernoulli_lpmf(0 | omega)); // z[i] == 0
5656
}
5757
}

education/causal_rct/Model_04_Independent_Potential_Outcomes_with_Covariates-Two-Part Model.stan renamed to education/causal_rct/Model_04_Independent_Potential_Outcomes_with_Covariates-Two-Part-Model.stan

File renamed without changes.

0 commit comments

Comments
 (0)