Package org.jpmml.xgboost
Class ObjFunction
- java.lang.Object
-
- org.jpmml.xgboost.ObjFunction
-
- Direct Known Subclasses:
Classification,Regression
public abstract class ObjFunction extends Object
-
-
Constructor Summary
Constructors Constructor Description ObjFunction(String name)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected static org.dmg.pmml.mining.MiningModelcreateMiningModel(List<RegTree> trees, List<Float> weights, float base_score, Integer ntreeLimit, org.jpmml.converter.Schema schema)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()protected static floatinverseExp(float value)protected static floatinverseLogit(float value)floatprobToMargin(float value)
-
-
-
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 value)
-
getName
public String getName()
-
createMiningModel
protected static org.dmg.pmml.mining.MiningModel createMiningModel(List<RegTree> trees, List<Float> weights, float base_score, Integer ntreeLimit, org.jpmml.converter.Schema schema)
-
inverseLogit
protected static float inverseLogit(float value)
-
inverseExp
protected static float inverseExp(float value)
-
-