Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ private[feature] trait StandardScalerParams extends Params with HasInputCol with
* :: Experimental ::
* Standardizes features by removing the mean and scaling to unit variance using column summary
* statistics on the samples in the training set.
*
* The "unit std" is computed using the
* [[https://en.wikipedia.org/wiki/Standard_deviation#Corrected_sample_standard_deviation
* corrected sample standard deviation]],
* which is computed as the square root of the unbiased sample variance.
*/
@Experimental
class StandardScaler(override val uid: String) extends Estimator[StandardScalerModel]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ import org.apache.spark.rdd.RDD
* Standardizes features by removing the mean and scaling to unit std using column summary
* statistics on the samples in the training set.
*
* The "unit std" is computed using the
* [[https://en.wikipedia.org/wiki/Standard_deviation#Corrected_sample_standard_deviation
* corrected sample standard deviation]],
* which is computed as the square root of the unbiased sample variance.
*
* @param withMean False by default. Centers the data with mean before scaling. It will build a
* dense output, so this does not work on sparse input and will raise an exception.
* @param withStd True by default. Scales the data to unit standard deviation.
Expand Down