Skip to contents

Divides each column by its standard deviation without centering. This is equivalent to sklearn.preprocessing.scale(X, with_mean=False) in Python.

Mathematical operation for column j: x_j' = x_j / sd(x_j)

Usage

scale_columns(x)

Arguments

x

A matrix (dense or sparse)

Value

Scaled matrix with same dimensions