类 ANOVATest
- java.lang.Object
-
- org.apache.flink.ml.stats.anovatest.ANOVATest
-
- 所有已实现的接口:
Serializable,org.apache.flink.ml.api.AlgoOperator<ANOVATest>,org.apache.flink.ml.api.Stage<ANOVATest>,org.apache.flink.ml.common.param.HasFeaturesCol<ANOVATest>,org.apache.flink.ml.common.param.HasFlatten<ANOVATest>,org.apache.flink.ml.common.param.HasLabelCol<ANOVATest>,org.apache.flink.ml.param.WithParams<ANOVATest>,ANOVATestParams<ANOVATest>
public class ANOVATest extends Object implements org.apache.flink.ml.api.AlgoOperator<ANOVATest>, ANOVATestParams<ANOVATest>
An AlgoOperator which implements the ANOVA test algorithm.See Wikipedia for more information on ANOVA test.
The input of this algorithm is a table containing a labelColumn of numerical type and a featuresColumn of vector type. Each index in the input vector represents a feature to be tested. By default, the output of this algorithm is a table containing a single row with the following columns, each of which has one value per feature.
- "pValues": vector
- "degreesOfFreedom": int array
- "fValues": vector
The output of this algorithm can be flattened to multiple rows by setting
HasFlatten.FLATTENto true, which would contain the following columns:- "featureIndex": int
- "pValue": double
- "degreeOfFreedom": int
- "fValues": double
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 ANOVATest()
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 Map<org.apache.flink.ml.param.Param<?>,Object>getParamMap()static ANOVATestload(org.apache.flink.table.api.bridge.java.StreamTableEnvironment tEnv, String path)voidsave(String path)org.apache.flink.table.api.Table[]transform(org.apache.flink.table.api.Table... inputs)
-
-
-
方法详细资料
-
transform
public org.apache.flink.table.api.Table[] transform(org.apache.flink.table.api.Table... inputs)
- 指定者:
transform在接口中org.apache.flink.ml.api.AlgoOperator<ANOVATest>
-
save
public void save(String path) throws IOException
- 指定者:
save在接口中org.apache.flink.ml.api.Stage<ANOVATest>- 抛出:
IOException
-
load
public static ANOVATest load(org.apache.flink.table.api.bridge.java.StreamTableEnvironment tEnv, String path) throws IOException
- 抛出:
IOException
-
-