Commit a1fc95ac authored by kartoffelsalat's avatar kartoffelsalat

add hint to krenew

parent f70b7cd4
......@@ -3,6 +3,7 @@
These results were presented in the ACL workshop paper Kluth & Schultheis (2018, see https://pub.uni-bielefeld.de/record/2920199).
The commands below run 4 MCMC chains one after the other and produce output under the file specified with the `-o` option and plots under a newly created `img/` folder at the same location.
Each command takes roughly 12-15 days.
Accordingly, you might want to make sure that your account has write-access after several days of computing. If your system uses a Kerberos authentication, this might not be the case anymore. If so, you will find the program `krenew` useful.
We actually computed only one chain at the same time (`--posterior=1`) and combined 4 chains manually afterwards, because the chains are currently not run in parallel and we were running out of time.
For these simulations, the `--threads` option does only control the number of threads used by `R` (if possible; this depends on whether `R` is configured to use an optimized BLAS implementation).
We identified the option `threads=2` to result in the highest speed.
......
......@@ -5,7 +5,7 @@ It should be rather self-explanatory. All commands print estimates on when they
Most of the simulations should be ready in roughly 1 week (many only take 1 day). However, the landscaping simulations take longer, in particular the landscaping simulations where the AVS or the AVS-BB model is involved.
Generally, the AVS or AVS-BB model take longer than the rAVS or rAVS-CoO model, because of the higher number of vectors to be computed.
Also, the larger the data set, the longer the computation.
As of now, the commands will overwrite already existing results (see the `-o` option). If you change this, make sure that the folder exists. The program will otherwise fail only in the very end as it does not check for this in the beginning!
As of now, the commands will overwrite already existing results (see the `-o` option). If you change this, make sure that the folder exists. The program will otherwise fail only in the very end as it does not check for this in the beginning! Relatedly, you might want to make sure that your account has write-access after several days of computing. If your system uses a Kerberos authentication, this might not be the case anymore. If so, you will find the program `krenew` useful.
You might want to change the `--threads` option to a sensible value depending on your hardware.
## Simple Hold-Out Computations (Includes Goodness-of-Fit Computations)
......
......@@ -634,7 +634,10 @@ std::ofstream Visualizer::openFile(std::string fileToOpen, bool quiet){
// the loop that tries to open the file more than once
// is a workaround for a buggy system at Bielefeld University that sometimes failed
// to save files. Since some computations take a long time, the attempt to save is repeated
// to save files (it turned out to actually be a "feature" of Kerberos authentication
// that restricted access after some time without user input. If this is the same for
// your system you might want to try the program krenew).
// Since some computations take a long time, the attempt to save is repeated
// instead of just trying once and failing.
int maxTries = 8; // actual number of tries is +2
int nTry = 0;
......@@ -649,9 +652,9 @@ std::ofstream Visualizer::openFile(std::string fileToOpen, bool quiet){
std::cerr << std::put_time(localtime(&errorTime_C), "%b %d, %T") << ": Failed to open " << fileToOpen << std::endl;
std::cerr << "debug info(): failbit (Logical error on i/o operation): " << (file.fail() && !file.bad()) << ", badbit (Read/writing error on i/o operation): " << file.bad() << ", eofbit (end-of-file reached): " << file.eof() << std::endl;
if(nTry > maxTries){
throw std::runtime_error("Couldn't open file. Check if all folders are existing and you didn't do a typo ...");
throw std::runtime_error("Couldn't open file. Check if all folders are existing and you didn't do a typo ... (If your system uses Kerberos authentication, try to use 'krenew' together with 'sl-model'.)");
} else {
std::cerr << "Couldn't open file. Waiting for 5 minutes and trying for " << (maxTries - nTry)+1 << " more times." << std::endl;
std::cerr << "Couldn't open file. (If your system uses Kerberos authentication, try to use 'krenew' together with 'sl-model'.) Waiting for 5 minutes and trying for " << (maxTries - nTry)+1 << " more times." << std::endl;
sleep(300);
}
} else { // success in opening file
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment