public abstract class ModelMapper extends Mapper
Mappers with a model.| 构造器和说明 |
|---|
ModelMapper(org.apache.flink.table.api.TableSchema modelSchema,
org.apache.flink.table.api.TableSchema dataSchema,
org.apache.flink.ml.api.misc.param.Params params)
Constructs a ModelMapper.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected org.apache.flink.table.api.TableSchema |
getModelSchema()
Get the schema of the model rows that are passed to
loadModel(List). |
abstract void |
loadModel(List<org.apache.flink.types.Row> modelRows)
Load the model from the list of rows.
|
getDataSchema, getOutputSchema, mappublic ModelMapper(org.apache.flink.table.api.TableSchema modelSchema,
org.apache.flink.table.api.TableSchema dataSchema,
org.apache.flink.ml.api.misc.param.Params params)
modelSchema - The schema of the model rows passed to loadModel(List).dataSchema - The schema of the input data rows.params - The parameters of this ModelMapper.protected org.apache.flink.table.api.TableSchema getModelSchema()
loadModel(List).public abstract void loadModel(List<org.apache.flink.types.Row> modelRows)
modelRows - The list of rows that containing the model.Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.