Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
VEBER Philippe
codepi
Commits
172cee79
Commit
172cee79
authored
Jul 24, 2018
by
Carine Rey
Browse files
keep running infos
parent
3d7a93df
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
lib/diffsel.ml
lib/diffsel.ml
+4
-2
lib/scripts/diffselMCMCConvergenceAnalysis.Rmd
lib/scripts/diffselMCMCConvergenceAnalysis.Rmd
+4
-4
No files found.
lib/diffsel.ml
View file @
172cee79
...
...
@@ -28,12 +28,14 @@ let diffsel_add_iterations_script ~chainname =
set
-
e
continue
=
true
i
=
0
while
$
continue
do
i
=$
((
i
+
1
))
echo
i
=$
i
#
check
convergence
Rscript
-
e
"rmarkdown::render(
\"
DiffselMCMCConvergenceAnalysis.Rmd
\"
, params=list(set_trace1=
\"
../dest/myrun.trace
\"
))"
Rscript
-
e
"rmarkdown::render(
\"
DiffselMCMCConvergenceAnalysis.Rmd
\"
, params=list(set_trace1=
\"
../dest/myrun.trace
\"
)
,output_file=
\"
../dest/output_"
$
i
".html
\"
)"
new_max
=
`tail
-
n
1
new_iterations
.
txt
|
cut
-
f
1
`
continue
=
`tail
-
n
1
new_iterations
.
txt
|
cut
-
f
2
`
end_it
=
`tail
-
n
1
new_iterations
.
txt
|
cut
-
f
3
`
...
...
lib/scripts/diffselMCMCConvergenceAnalysis.Rmd
View file @
172cee79
...
...
@@ -83,7 +83,7 @@ new_iterations_str=paste(as.character(next_step_its), new_iterations_bool_str, r
if (new_iterations_bool_str) {
write(new_iterations_str, "new_iterations.txt", append=T)
} else {
write(paste("Burnin:",
str(
required_it)
)
, "new_iterations.txt", append=T)
write(paste("Burnin:", required_it) , "new_iterations.txt", append=T)
}
```
...
...
@@ -91,13 +91,13 @@ write(paste("Burnin:", str(required_it)) , "new_iterations.txt", append=T)
if (new_iterations_bool_str) {
cat(run_it)
cat(" iterations were already run.")
prin
t("")
ca
t("
\n
")
cat(required_it)
cat(" iterations are needed.")
prin
t("")
ca
t("
\n
")
cat(new_iterations)
cat(" additionnal iterations must be run.")
prin
t("")
ca
t("
\n
")
cat(next_step_its)
cat(" additionnal iterations will be run.")
} else {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment