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