j143 commented on a change in pull request #935: URL: https://github.com/apache/systemml/pull/935#discussion_r433636919
########## 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) +y=normalize(X = X) Review comment: Also, `y = normalize(X = X)` or `y=normalize(X = X)` can be used consistently. ---------------------------------------------------------------- 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