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

hex.tree.xgboost.XGBoostExtensionCheck Maven / Gradle / Ivy

package hex.tree.xgboost;

import water.ExtensionManager;
import water.MRTask;

public class XGBoostExtensionCheck extends MRTask {
    boolean enabled;

    @Override
    protected void setupLocal() {
        super.setupLocal();
        enabled = ExtensionManager.getInstance().isCoreExtensionEnabled(XGBoostExtension.NAME);
    }

    @Override
    public void reduce(XGBoostExtensionCheck mrt) {
        super.reduce(mrt);
        enabled = enabled && mrt.enabled;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy