Package org.jpmml.sparkml.xgboost
Class XGBoostClassificationModelConverter
java.lang.Object
org.jpmml.sparkml.TransformerConverter<T>
org.jpmml.sparkml.ModelConverter<T>
org.jpmml.sparkml.PredictionModelConverter<T>
org.jpmml.sparkml.ClassificationModelConverter<T>
org.jpmml.sparkml.ProbabilisticClassificationModelConverter<ml.dmlc.xgboost4j.scala.spark.XGBoostClassificationModel>
org.jpmml.sparkml.xgboost.XGBoostClassificationModelConverter
- All Implemented Interfaces:
org.jpmml.converter.HasOptions,org.jpmml.sparkml.HasSparkMLOptions,org.jpmml.sparkml.model.HasPredictionModelOptions
public class XGBoostClassificationModelConverter
extends org.jpmml.sparkml.ProbabilisticClassificationModelConverter<ml.dmlc.xgboost4j.scala.spark.XGBoostClassificationModel>
-
Field Summary
Fields inherited from interface org.jpmml.sparkml.model.HasPredictionModelOptions
OPTION_KEEP_PREDICTIONCOL -
Constructor Summary
ConstructorsConstructorDescriptionXGBoostClassificationModelConverter(ml.dmlc.xgboost4j.scala.spark.XGBoostClassificationModel model) -
Method Summary
Modifier and TypeMethodDescriptionorg.dmg.pmml.mining.MiningModelencodeModel(org.jpmml.converter.Schema schema) intMethods inherited from class org.jpmml.sparkml.ProbabilisticClassificationModelConverter
registerOutputFieldsMethods inherited from class org.jpmml.sparkml.ClassificationModelConverter
checkSchema, getMiningFunctionMethods inherited from class org.jpmml.sparkml.PredictionModelConverter
getFeatures, getLabelMethods inherited from class org.jpmml.sparkml.ModelConverter
encodeSchema, getModel, registerModelMethods inherited from class org.jpmml.sparkml.TransformerConverter
getObject, getOption, getOptions, setOptions
-
Constructor Details
-
XGBoostClassificationModelConverter
public XGBoostClassificationModelConverter(ml.dmlc.xgboost4j.scala.spark.XGBoostClassificationModel model)
-
-
Method Details
-
getNumberOfClasses
public int getNumberOfClasses()- Overrides:
getNumberOfClassesin classorg.jpmml.sparkml.ClassificationModelConverter<ml.dmlc.xgboost4j.scala.spark.XGBoostClassificationModel>
-
encodeModel
public org.dmg.pmml.mining.MiningModel encodeModel(org.jpmml.converter.Schema schema) - Specified by:
encodeModelin classorg.jpmml.sparkml.ModelConverter<ml.dmlc.xgboost4j.scala.spark.XGBoostClassificationModel>
-