Package org.jpmml.xgboost
Class Learner
- java.lang.Object
-
- org.jpmml.xgboost.Learner
-
- All Implemented Interfaces:
BinaryLoadable,JSONLoadable,UBJSONLoadable
public class Learner extends Object implements BinaryLoadable, JSONLoadable, UBJSONLoadable
-
-
Constructor Summary
Constructors Constructor Description Learner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.dmg.pmml.mining.MiningModelconfigureModel(Map<String,?> options, org.dmg.pmml.mining.MiningModel miningModel)org.jpmml.converter.SchemaconfigureSchema(Map<String,?> options, org.jpmml.converter.Schema schema)FeatureMapencodeFeatureMap()org.jpmml.converter.LabelencodeLabel(String targetName, List<String> targetCategories, XGBoostEncoder encoder)org.dmg.pmml.mining.MiningModelencodeModel(Integer ntreeLimit, org.jpmml.converter.Schema schema)org.dmg.pmml.mining.MiningModelencodeModel(Map<String,?> options, org.jpmml.converter.Schema schema)org.dmg.pmml.PMMLencodePMML(Map<String,?> options, String targetName, List<String> targetCategories, FeatureMap featureMap)org.jpmml.converter.SchemaencodeSchema(String targetName, List<String> targetCategories, FeatureMap featureMap, XGBoostEncoder encoder)GBTreegbtree()StringgetAttribute(String key)IntegergetBestIteration()DoublegetBestScore()<DIS extends InputStream & DataInput>
voidloadBinary(DIS is, String charset)voidloadBinary(XGBoostDataInput input)voidloadJSON(com.google.gson.JsonObject root)voidloadJSON(InputStream is, String charset, String jsonPath)voidloadUBJSON(com.devsmart.ubjson.UBObject root)voidloadUBJSON(InputStream is, String jsonPath)intnum_class()intnum_feature()ObjFunctionobj()org.jpmml.converter.SchematoXGBoostSchema(org.jpmml.converter.Schema schema)
-
-
-
Method Detail
-
loadBinary
public void loadBinary(XGBoostDataInput input) throws IOException
- Specified by:
loadBinaryin interfaceBinaryLoadable- Throws:
IOException
-
loadJSON
public void loadJSON(com.google.gson.JsonObject root)
- Specified by:
loadJSONin interfaceJSONLoadable
-
loadUBJSON
public void loadUBJSON(com.devsmart.ubjson.UBObject root)
- Specified by:
loadUBJSONin interfaceUBJSONLoadable
-
loadBinary
public <DIS extends InputStream & DataInput> void loadBinary(DIS is, String charset) throws IOException
- Throws:
IOException
-
loadJSON
public void loadJSON(InputStream is, String charset, String jsonPath) throws IOException
- Throws:
IOException
-
loadUBJSON
public void loadUBJSON(InputStream is, String jsonPath) throws IOException
- Throws:
IOException
-
encodeFeatureMap
public FeatureMap encodeFeatureMap()
-
encodeSchema
public org.jpmml.converter.Schema encodeSchema(String targetName, List<String> targetCategories, FeatureMap featureMap, XGBoostEncoder encoder)
-
encodeLabel
public org.jpmml.converter.Label encodeLabel(String targetName, List<String> targetCategories, XGBoostEncoder encoder)
-
toXGBoostSchema
public org.jpmml.converter.Schema toXGBoostSchema(org.jpmml.converter.Schema schema)
-
encodePMML
public org.dmg.pmml.PMML encodePMML(Map<String,?> options, String targetName, List<String> targetCategories, FeatureMap featureMap)
-
encodeModel
public org.dmg.pmml.mining.MiningModel encodeModel(Map<String,?> options, org.jpmml.converter.Schema schema)
-
encodeModel
public org.dmg.pmml.mining.MiningModel encodeModel(Integer ntreeLimit, org.jpmml.converter.Schema schema)
-
configureSchema
public org.jpmml.converter.Schema configureSchema(Map<String,?> options, org.jpmml.converter.Schema schema)
-
configureModel
public org.dmg.pmml.mining.MiningModel configureModel(Map<String,?> options, org.dmg.pmml.mining.MiningModel miningModel)
-
num_feature
public int num_feature()
-
num_class
public int num_class()
-
obj
public ObjFunction obj()
-
gbtree
public GBTree gbtree()
-
getBestIteration
public Integer getBestIteration()
-
getBestScore
public Double getBestScore()
-
-