Package org.jpmml.xgboost
Class ObjFunction
- java.lang.Object
-
- org.jpmml.xgboost.ObjFunction
-
- Direct Known Subclasses:
Classification,Regression
public abstract class ObjFunction extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceObjFunction.ProbToMarginFunction
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_TARGET_INDEX
-
Constructor Summary
Constructors Constructor Description ObjFunction(String name)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract org.jpmml.converter.LabelencodeLabel(String targetName, List<?> targetCategories, org.jpmml.converter.ModelEncoder encoder)org.dmg.pmml.mining.MiningModelencodeModel(int targetIndex, List<RegTree> trees, List<Float> weights, float[] base_score, Integer ntreeLimit, org.jpmml.converter.Schema schema)abstract org.dmg.pmml.mining.MiningModelencodeModel(List<RegTree> trees, List<Float> weights, float[] base_score, Integer ntreeLimit, org.jpmml.converter.Schema schema)StringgetName()float[]probToMargin(float[] base_score)ObjFunction.ProbToMarginFunctionprobToMarginFunction()
-
-
-
Field Detail
-
DEFAULT_TARGET_INDEX
public static final int DEFAULT_TARGET_INDEX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ObjFunction
public ObjFunction(String name)
-
-
Method Detail
-
encodeLabel
public abstract org.jpmml.converter.Label encodeLabel(String targetName, List<?> targetCategories, org.jpmml.converter.ModelEncoder encoder)
-
encodeModel
public abstract org.dmg.pmml.mining.MiningModel encodeModel(List<RegTree> trees, List<Float> weights, float[] base_score, Integer ntreeLimit, org.jpmml.converter.Schema schema)
-
encodeModel
public org.dmg.pmml.mining.MiningModel encodeModel(int targetIndex, List<RegTree> trees, List<Float> weights, float[] base_score, Integer ntreeLimit, org.jpmml.converter.Schema schema)
-
probToMargin
public float[] probToMargin(float[] base_score)
-
probToMarginFunction
public ObjFunction.ProbToMarginFunction probToMarginFunction()
-
getName
public String getName()
-
-