public class FeatureMapper
extends org.jpmml.converter.PMMLMapper
| Constructor and Description |
|---|
FeatureMapper(org.apache.spark.sql.types.StructType schema) |
| Modifier and Type | Method and Description |
|---|---|
void |
append(FeatureConverter<?> converter) |
void |
append(ModelConverter<?> converter) |
org.dmg.pmml.DataField |
createDataField(org.dmg.pmml.FieldName name) |
org.jpmml.converter.Schema |
createSchema(org.apache.spark.ml.Model<?> model) |
List<org.jpmml.converter.Feature> |
getFeatures(String column) |
List<org.jpmml.converter.Feature> |
getFeatures(String column,
int[] indices) |
org.jpmml.converter.Feature |
getOnlyFeature(String column) |
boolean |
hasFeatures(String column) |
void |
putFeatures(String column,
List<org.jpmml.converter.Feature> features) |
void |
removeDataField(org.dmg.pmml.FieldName name) |
org.dmg.pmml.DataField |
toCategorical(org.dmg.pmml.FieldName name,
List<String> categories) |
public void append(FeatureConverter<?> converter)
public void append(ModelConverter<?> converter)
public org.jpmml.converter.Schema createSchema(org.apache.spark.ml.Model<?> model)
public org.dmg.pmml.DataField toCategorical(org.dmg.pmml.FieldName name,
List<String> categories)
public boolean hasFeatures(String column)
public org.jpmml.converter.Feature getOnlyFeature(String column)
public org.dmg.pmml.DataField createDataField(org.dmg.pmml.FieldName name)
public void removeDataField(org.dmg.pmml.FieldName name)
Copyright © 2016. All Rights Reserved.