Package org.jpmml.xgboost
Class XGBoostUtil
- java.lang.Object
-
- org.jpmml.xgboost.XGBoostUtil
-
public class XGBoostUtil extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringBINF_HEADERstatic StringSERIALIZATION_HEADER
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FeatureMaploadFeatureMap(InputStream is)static <DIS extends InputStream & DataInput>
LearnerloadLearner(DIS is, String charset, String jsonPath)static LearnerloadLearner(InputStream is)static LearnerloadLearner(InputStream is, ByteOrder byteOrder, String charset)static LearnerloadLearner(InputStream is, ByteOrder byteOrder, String charset, String jsonPath)
-
-
-
Field Detail
-
SERIALIZATION_HEADER
public static final String SERIALIZATION_HEADER
- See Also:
- Constant Field Values
-
BINF_HEADER
public static final String BINF_HEADER
- See Also:
- Constant Field Values
-
-
Method Detail
-
loadLearner
public static Learner loadLearner(InputStream is) throws IOException
- Throws:
IOException
-
loadLearner
public static Learner loadLearner(InputStream is, ByteOrder byteOrder, String charset) throws IOException
- Throws:
IOException
-
loadLearner
public static Learner loadLearner(InputStream is, ByteOrder byteOrder, String charset, String jsonPath) throws IOException
- Throws:
IOException
-
loadLearner
public static <DIS extends InputStream & DataInput> Learner loadLearner(DIS is, String charset, String jsonPath) throws IOException
- Throws:
IOException
-
loadFeatureMap
public static FeatureMap loadFeatureMap(InputStream is) throws IOException
- Throws:
IOException
-
-