public class Knn extends Object implements org.apache.flink.ml.api.Estimator<Knn,KnnModel>, KnnParams<Knn>
See: https://en.wikipedia.org/wiki/K-nearest_neighbors_algorithm.
LABEL_COLKFEATURES_COLPREDICTION_COL| 构造器和说明 |
|---|
Knn() |
| 限定符和类型 | 方法和说明 |
|---|---|
KnnModel |
fit(org.apache.flink.table.api.Table... inputs) |
Map<org.apache.flink.ml.param.Param<?>,Object> |
getParamMap() |
static Knn |
load(org.apache.flink.streaming.api.environment.StreamExecutionEnvironment env,
String path) |
void |
save(String path) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLabelCol, setLabelColgetK, setKgetFeaturesCol, setFeaturesColgetPredictionCol, setPredictionColpublic KnnModel fit(org.apache.flink.table.api.Table... inputs)
public Map<org.apache.flink.ml.param.Param<?>,Object> getParamMap()
getParamMap 在接口中 org.apache.flink.ml.param.WithParams<Knn>public void save(String path) throws IOException
save 在接口中 org.apache.flink.ml.api.Stage<Knn>IOExceptionpublic static Knn load(org.apache.flink.streaming.api.environment.StreamExecutionEnvironment env, String path) throws IOException
IOExceptionCopyright © 2019–2021 The Apache Software Foundation. All rights reserved.