Skip to content

Commit

Permalink
revised draft
Browse files Browse the repository at this point in the history
  • Loading branch information
Bob Carpenter committed Oct 15, 2023
1 parent 3c82b94 commit 0c2290a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions prob-corpus/makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
prob-corpus.html: prob-corpus.qmd *.stan
quarto render prob-corpus.qmd --to html
quarto render prob-corpus.qmd --to html --execute-daemon-restart

prob-corpus.pdf: prob-corpus.qmd *.stan
quarto render prob-corpus.qmd --to pdf
quarto render prob-corpus.qmd --to pdf --execute-daemon-restart

clean:
rm -f prob-corpus.html prob-corpus.ipynb logistic-regression.hpp logistic-regression log-odds-linear-regression.hpp log-odds-linear-regression weighted-logistic-regression.hpp weighted-logistic-regression
12 changes: 7 additions & 5 deletions prob-corpus/prob-corpus.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -665,11 +665,13 @@ model_predict = csp.CmdStanModel(stan_file = "logistic-regression-predict.stan")
Fourth, set all the constants determining sizes for the simulation.

```{python}
D = 21 # number of predictors including intercept
N = 1000 # number of data points used to train
rho = 0.9 # correlation of predictor RW covariance
N_test = 1000 # number of test items
M = 100 # number of simulation runs
# D = 11, N = 500, rho = 0.9 good
D = 32 # number of predictors including intercept
N = 1024 # number of data points used to train
rho = 0.9 # correlation of predictor RW covariance
N_test = 1024 # number of test items
M = 32 # number of simulation runs
```

Fifth, allocate a pandas data frame to store the results, then collect
Expand Down

0 comments on commit 0c2290a

Please sign in to comment.