Package org.jpmml.sparkml.xgboost
Class XGBoostRegressionModelConverter
- java.lang.Object
-
- org.jpmml.sparkml.TransformerConverter<T>
-
- org.jpmml.sparkml.ModelConverter<T>
-
- org.jpmml.sparkml.PredictionModelConverter<ml.dmlc.xgboost4j.scala.spark.XGBoostRegressionModel>
-
- org.jpmml.sparkml.xgboost.XGBoostRegressionModelConverter
-
- All Implemented Interfaces:
org.jpmml.converter.HasOptions,HasSparkMLOptions,HasPredictionModelOptions
public class XGBoostRegressionModelConverter extends PredictionModelConverter<ml.dmlc.xgboost4j.scala.spark.XGBoostRegressionModel>
-
-
Field Summary
-
Fields inherited from interface org.jpmml.sparkml.model.HasPredictionModelOptions
OPTION_KEEP_PREDICTIONCOL
-
-
Constructor Summary
Constructors Constructor Description XGBoostRegressionModelConverter(ml.dmlc.xgboost4j.scala.spark.XGBoostRegressionModel model)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.dmg.pmml.mining.MiningModelencodeModel(org.jpmml.converter.Schema schema)org.dmg.pmml.MiningFunctiongetMiningFunction()List<org.dmg.pmml.OutputField>registerOutputFields(org.jpmml.converter.Label label, org.dmg.pmml.Model pmmlModel, SparkMLEncoder encoder)-
Methods inherited from class org.jpmml.sparkml.PredictionModelConverter
getFeatures, getLabel
-
Methods inherited from class org.jpmml.sparkml.ModelConverter
checkSchema, encodeSchema, getModel, registerModel
-
Methods inherited from class org.jpmml.sparkml.TransformerConverter
getObject, getOption, getOptions, setOptions
-
-
-
-
Method Detail
-
getMiningFunction
public org.dmg.pmml.MiningFunction getMiningFunction()
- Specified by:
getMiningFunctionin classModelConverter<ml.dmlc.xgboost4j.scala.spark.XGBoostRegressionModel>
-
encodeModel
public org.dmg.pmml.mining.MiningModel encodeModel(org.jpmml.converter.Schema schema)
- Specified by:
encodeModelin classModelConverter<ml.dmlc.xgboost4j.scala.spark.XGBoostRegressionModel>
-
registerOutputFields
public List<org.dmg.pmml.OutputField> registerOutputFields(org.jpmml.converter.Label label, org.dmg.pmml.Model pmmlModel, SparkMLEncoder encoder)
- Overrides:
registerOutputFieldsin classModelConverter<ml.dmlc.xgboost4j.scala.spark.XGBoostRegressionModel>
-
-