All Downloads are FREE. Search and download functionalities are using the official Maven repository.

hex.tree.xgboost.task.XGBoostCleanupTask Maven / Gradle / Ivy

There is a newer version: 3.46.0.6
Show newest version
package hex.tree.xgboost.task;

import hex.tree.xgboost.matrix.RemoteMatrixLoader;

/**
 * Cleans up after XGBoost training
 */
public class XGBoostCleanupTask extends AbstractXGBoostTask {

  private XGBoostCleanupTask(XGBoostSetupTask setupTask) {
    super(setupTask);
  }

  @Override
  protected void execute() {
    XGBoostUpdater.terminate(_modelKey);
    RemoteMatrixLoader.cleanup(_modelKey.toString());
  }

  public static void cleanUp(XGBoostSetupTask setupTask) {
    new XGBoostCleanupTask(setupTask).doAllNodes();
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy