Package org.jpmml.xgboost
Class Classification
- java.lang.Object
-
- org.jpmml.xgboost.ObjFunction
-
- org.jpmml.xgboost.Classification
-
- Direct Known Subclasses:
BinomialLogisticRegression,HingeClassification,MultinomialLogisticRegression
public abstract class Classification extends ObjFunction
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jpmml.xgboost.ObjFunction
ObjFunction.ProbToMarginFunction
-
-
Field Summary
-
Fields inherited from class org.jpmml.xgboost.ObjFunction
DEFAULT_TARGET_INDEX
-
-
Constructor Summary
Constructors Constructor Description Classification(String name, int num_class)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)intnum_class()-
Methods inherited from class org.jpmml.xgboost.ObjFunction
encodeModel, getName, probToMargin, probToMarginFunction
-
-
-
-
Constructor Detail
-
Classification
public Classification(String name, int num_class)
-
-
Method Detail
-
encodeLabel
public org.jpmml.converter.Label encodeLabel(String targetName, List<?> targetCategories, org.jpmml.converter.ModelEncoder encoder)
- Specified by:
encodeLabelin classObjFunction
-
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)- Overrides:
encodeModelin classObjFunction
-
num_class
public int num_class()
-
-