Esempio n. 1
0
 public void terminate() throws MaltChainedException {
   if (divideModels != null) {
     for (AtomicModel divideModel : divideModels.values()) {
       divideModel.terminate();
     }
   }
   if (masterModel != null) {
     masterModel.terminate();
   }
 }
Esempio n. 2
0
 public void train() throws MaltChainedException {
   for (AtomicModel divideModel : divideModels.values()) {
     divideModel.train();
   }
   masterModel.train();
   save();
   for (AtomicModel divideModel : divideModels.values()) {
     divideModel.terminate();
   }
   masterModel.terminate();
 }