You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@systemml.apache.org by ja...@apache.org on 2020/06/08 07:11:09 UTC
[systemml] branch master updated: [DOC] Documentation for builtin
Outlier function
This is an automated email from the ASF dual-hosted git repository.
janardhan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/systemml.git
The following commit(s) were added to refs/heads/master by this push:
new 8750194 [DOC] Documentation for builtin Outlier function
8750194 is described below
commit 8750194ed952efadd06608b988bd7ee2b0268a8e
Author: Supratick Dey <su...@gmail.com>
AuthorDate: Mon Jun 8 12:39:12 2020 +0530
[DOC] Documentation for builtin Outlier function
Closes #940.
---
dev/docs/builtins-reference.md | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/dev/docs/builtins-reference.md b/dev/docs/builtins-reference.md
index 4b56fb3..c8fb028 100644
--- a/dev/docs/builtins-reference.md
+++ b/dev/docs/builtins-reference.md
@@ -35,6 +35,7 @@ limitations under the License.
* [`normalize`-Function](#normalize-function)
* [`gnmf`-Function](#gnmf-function)
* [`msvm`-Function](#msvm-function)
+ * [`outlier`-Function](#outlier-function)
* [`toOneHot`-Function](#toOneHOt-function)
@@ -413,6 +414,7 @@ y = X %*% rand(rows = ncol(X), cols = 1)
w = lm(X = X, y = y)
ress = slicefinder(X = X,W = w, Y = y, k = 5, paq = 1, S = 2);
```
+
## `normalize`-Function
The `normalize`-function normalises the values of a matrix by changing the dataset to use a common scale.
@@ -478,6 +480,33 @@ H = rand(rows = 2, cols = ncol(X), min = -0.05, max = 0.05);
gnmf(X = X, rnk = 2, eps = 10^-8, maxi = 10)
```
+## `outlier`-Function
+
+This `outlier`-function takes a matrix data set as input from where it determines which point(s)
+have the largest difference from mean.
+
+### Usage
+```r
+outlier(X, opposite)
+```
+
+### Arguments
+| Name | Type | Default | Description |
+| :------- | :------------- | -------- | :---------- |
+| X | Matrix[Double] | required | Matrix of Recoded dataset for outlier evaluation |
+| opposite | Boolean | required | (1)TRUE for evaluating outlier from upper quartile range, (0)FALSE for evaluating outlier from lower quartile range |
+
+### Returns
+| Type | Description |
+| :------------- | :---------- |
+| Matrix[Double] | matrix indicating outlier values |
+
+### Example
+```r
+X = rand (rows = 50, cols = 10)
+outlier(X=X, opposite=1)
+```
+
## `toOneHot`-Function
The `toOneHot`-function encodes unordered categorical vector to multiple binarized vectors.