j143 commented on a change in pull request #935:
URL: https://github.com/apache/systemml/pull/935#discussion_r433636526



##########
File path: dev/docs/builtins-reference.md
##########
@@ -351,3 +353,32 @@ 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 is used for data preparation by normalization. Here, 
the values of a matrix (numeric columns) are changed in the dataset to use a 
common scale, while preserving differences in the ranges of values.
+
+### Usage
+```r
+normalize(X); 
+```
+
+### Arguments
+| Name    | Type           | Default  | Description |
+| :------ | :------------- | -------- | :---------- |
+| X       | Matrix[Double] | required | Matrix of feature vectors. |
+
+
+### Returns
+| Type           | Description |
+| :------------- | :---------- |
+| Matrix[Double] | 1-column matrix of normalized values. |
+
+
+
+### Example
+```r
+X = rand (rows = 50, cols = 10)
+y = X %*% rand(rows=ncol(X), cols=1)

Review comment:
       In the first line: `X = rand(rows = 50, cols = 10)`
   In the second line: `y = ..... rand(rows = ncol(X), cols = 1)`
   
   Let's use the same style through out!




----------------------------------------------------------------
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.

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


Reply via email to