Modifier and Type | Class and Description |
---|---|
static class |
IDFModelData.ModelDataDecoder
Decoder for
IDFModelData . |
static class |
IDFModelData.ModelDataEncoder
Encoder for
IDFModelData . |
Modifier and Type | Field and Description |
---|---|
long[] |
docFreq
Document frequency for all terms after filtering out infrequent terms.
|
DenseVector |
idf
Inverse document frequency for all terms.
|
long |
numDocs
Number of docs in the training set.
|
Constructor and Description |
---|
IDFModelData() |
IDFModelData(DenseVector idf,
long[] docFreq,
long numDocs) |
Modifier and Type | Method and Description |
---|---|
static org.apache.flink.streaming.api.datastream.DataStream<IDFModelData> |
getModelDataStream(org.apache.flink.table.api.Table modelDataTable)
Converts the table model to a data stream.
|
public DenseVector idf
public long[] docFreq
public long numDocs
public IDFModelData()
public IDFModelData(DenseVector idf, long[] docFreq, long numDocs)
public static org.apache.flink.streaming.api.datastream.DataStream<IDFModelData> getModelDataStream(org.apache.flink.table.api.Table modelDataTable)
modelDataTable
- The table model data.Copyright © 2019–2023 The Apache Software Foundation. All rights reserved.