Changeset 20fc6f for src/Potentials/PotentialTrainer.cpp
- Timestamp:
- May 20, 2021, 7:39:44 PM (4 years ago)
- Branches:
- Candidate_v1.7.0, stable
- Children:
- 4b2207
- Parents:
- 9b0dcd
- File:
-
- 1 edited
-
src/Potentials/PotentialTrainer.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Potentials/PotentialTrainer.cpp
r9b0dcd r20fc6f 149 149 // threshold overrules max_runs 150 150 const double threshold = _threshold; 151 const unsigned int max_runs = (threshold >= 1.) ? _best_of_howmany : 1;151 const unsigned int max_runs = (threshold >= 1.) ? _best_of_howmany : std::numeric_limits<unsigned int>::max(); 152 152 LOG(1, "INFO: Maximum runs is " << max_runs << " and threshold set to " << threshold << "."); 153 153 do { … … 167 167 << " has better error of " << l2error << "."); 168 168 } 169 } while (( ++runs < max_runs) ||(l2error > threshold));169 } while (( ++runs < max_runs) && (l2error > threshold)); 170 170 // reset parameters from best fit 171 171 model.setParameters(bestparams);
Note:
See TracChangeset
for help on using the changeset viewer.
