public class SparkMLEncoder
extends org.jpmml.converter.ModelEncoder
| Constructor and Description |
|---|
SparkMLEncoder(org.apache.spark.sql.types.StructType schema,
ConverterFactory converterFactory) |
| Modifier and Type | Method and Description |
|---|---|
org.dmg.pmml.DataField |
createDataField(org.dmg.pmml.FieldName name) |
ConverterFactory |
getConverterFactory() |
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) |
org.apache.spark.sql.types.StructType |
getSchema() |
boolean |
hasFeatures(String column) |
void |
putFeatures(String column,
List<org.jpmml.converter.Feature> features) |
void |
putOnlyFeature(String column,
org.jpmml.converter.Feature feature) |
addDecorator, addDecorator, addFeatureImportance, addTransformer, encodePMML, getDecorators, getFeatureImportances, getTransformers, getUnivariateStats, putUnivariateStats, putUnivariateStatsaddDataField, addDefineFunction, addDerivedField, createDataField, createDataField, createDerivedField, createDerivedField, encodeHeader, encodePMML, ensureDerivedField, getDataField, getDataFields, getDefineFunction, getDefineFunctions, getDerivedField, getDerivedFields, getField, removeDataField, removeDerivedField, toCategorical, toContinuous, toOrdinalpublic SparkMLEncoder(org.apache.spark.sql.types.StructType schema,
ConverterFactory converterFactory)
public boolean hasFeatures(String column)
public org.jpmml.converter.Feature getOnlyFeature(String column)
public void putOnlyFeature(String column, org.jpmml.converter.Feature feature)
public org.dmg.pmml.DataField createDataField(org.dmg.pmml.FieldName name)
public org.apache.spark.sql.types.StructType getSchema()
public ConverterFactory getConverterFactory()
Copyright © 2020. All rights reserved.