コード例 #1
0
 public void terminate() throws MaltChainedException {
   if (divideModels != null) {
     for (AtomicModel divideModel : divideModels.values()) {
       divideModel.terminate();
     }
   }
   if (masterModel != null) {
     masterModel.terminate();
   }
 }
コード例 #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();
 }