You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2022/10/09 04:28:38 UTC

[GitHub] [flink-ml] zhipeng93 commented on a diff in pull request #161: [FLINK-28571] Improve API and Document of ChiSqTest

zhipeng93 commented on code in PR #161:
URL: https://github.com/apache/flink-ml/pull/161#discussion_r990731155


##########
docs/content/docs/operators/stats/chisqtest.md:
##########
@@ -0,0 +1,187 @@
+---
+title: "ChiSqTest"
+type: docs
+aliases:
+- /operators/stats/chisqtest.html
+---
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+## ChiSqTest
+
+Chi-square Test computes the statistics of independence of variables in a contingency table,
+e.g., p-value, and DOF(degree of freedom) for each input feature. The contingency table is
+constructed from the observed categorical values.
+
+### Input Columns
+
+| Param name  | Type   | Default      | Description                |
+|:------------|:-------|:-------------|:---------------------------|
+| featuresCol | Vector | `"features"` | The feature vector.        |

Review Comment:
   nit: could you remove `The` in the description to be consistent with existing docs?
   
   Same for other params.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org