biz.k11i.xgboost.tree.DefaultRegTreeFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xgboost-predictor Show documentation
Show all versions of xgboost-predictor Show documentation
Pure Java implementation of XGBoost predictor for online prediction tasks
package biz.k11i.xgboost.tree;
import biz.k11i.xgboost.util.ModelReader;
import java.io.IOException;
public final class DefaultRegTreeFactory implements RegTreeFactory {
public static RegTreeFactory INSTANCE = new DefaultRegTreeFactory();
@Override
public final RegTree loadTree(ModelReader reader) throws IOException {
RegTreeImpl regTree = new RegTreeImpl();
regTree.loadModel(reader);
return regTree;
}
}