... | ... |
@@ -1,4 +1,4 @@ |
1 |
-# CoGAPS Version: 3.3.7 |
|
1 |
+# CoGAPS Version: 3.3.8 |
|
2 | 2 |
|
3 | 3 |
[](https://bioconductor.org/packages/CoGAPS) |
4 | 4 |
[](https://bioconductor.org/packages/CoGAPS) |
... | ... |
@@ -122,6 +122,8 @@ void GapsRunner::runOnePhase() |
122 | 122 |
{ |
123 | 123 |
for (; mCurrentIteration < mMaxIterations; ++mCurrentIteration) |
124 | 124 |
{ |
125 |
+ createCheckpoint(); |
|
126 |
+ |
|
125 | 127 |
#ifdef __GAPS_R_BUILD__ |
126 | 128 |
Rcpp::checkUserInterrupt(); |
127 | 129 |
#endif |
... | ... |
@@ -145,7 +147,6 @@ void GapsRunner::runOnePhase() |
145 | 147 |
} |
146 | 148 |
|
147 | 149 |
displayStatus(); |
148 |
- createCheckpoint(); |
|
149 | 150 |
} |
150 | 151 |
} |
151 | 152 |
|
... | ... |
@@ -244,12 +245,10 @@ void GapsRunner::createCheckpoint() |
244 | 245 |
|
245 | 246 |
// create checkpoint file |
246 | 247 |
Archive ar(mCheckpointOutFile, ARCHIVE_WRITE); |
247 |
- |
|
248 | 248 |
gaps::random::save(ar); |
249 | 249 |
ar << mNumPatterns << mSeed << mASampler << mPSampler << mStatistics |
250 | 250 |
<< mFixedMatrix << mMaxIterations << mPhase << mCurrentIteration |
251 | 251 |
<< mNumUpdatesA << mNumUpdatesP; |
252 |
- |
|
253 | 252 |
ar.close(); |
254 | 253 |
|
255 | 254 |
// delete backup file |