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

hex.tree.xgboost.exec.XGBoostExecReq Maven / Gradle / Ivy

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

import water.BootstrapFreezable;
import water.Iced;
import water.util.IcedHashMapGeneric;

import java.util.Arrays;
import java.util.Map;

public class XGBoostExecReq extends Iced implements BootstrapFreezable {

    @Override
    public String toString() {
        return "XGBoostExecReq{}";
    }

    public static class Init extends XGBoostExecReq {
        public int num_nodes;
        public IcedHashMapGeneric.IcedHashMapStringObject parms;
        public String save_matrix_path;
        public String[] nodes;
        public boolean has_checkpoint;

        public void setParms(Map parms) {
            this.parms = new IcedHashMapGeneric.IcedHashMapStringObject();
            this.parms.putAll(parms);
        }

        @Override
        public String toString() {
            return "XGBoostExecReq.Init{" +
                "num_nodes=" + num_nodes +
                ", parms=" + parms +
                ", save_matrix_path='" + save_matrix_path + '\'' +
                ", nodes=" + Arrays.toString(nodes) +
                ", has_checkpoint=" + has_checkpoint +
                '}';
        }
    }

    public static class Update extends XGBoostExecReq {
        public int treeId;

        @Override
        public String toString() {
            return "XGBoostExecReq.Update{" +
                "treeId=" + treeId +
                '}';
        }
    }

    public static class GetEvalMetric extends XGBoostExecReq {
        @Override
        public String toString() {
            return "XGBoostExecReq.GetEvalMetric{}";
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy