You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean Owen (JIRA)" <ji...@apache.org> on 2015/08/30 14:56:45 UTC
[jira] [Resolved] (SPARK-10356) MLlib: Normalization should use
absolute values
[ https://issues.apache.org/jira/browse/SPARK-10356?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sean Owen resolved SPARK-10356.
-------------------------------
Resolution: Not A Problem
> MLlib: Normalization should use absolute values
> -----------------------------------------------
>
> Key: SPARK-10356
> URL: https://issues.apache.org/jira/browse/SPARK-10356
> Project: Spark
> Issue Type: Bug
> Components: MLlib
> Affects Versions: 1.4.1
> Reporter: Carsten Schnober
> Labels: easyfix
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> The normalizer does not handle vectors with negative values properly. It can be tested with the following code
> {code}
> val normalized = new Normalizer(1.0).transform(v: Vector)
> normalizer.toArray.sum == 1.0
> {code}
> This yields true if all values in Vector v are positive, but false when v contains one or more negative values. This is because the values in v are taken immediately without applying {{abs()}},
> This (probably) does not occur for {{p=2.0}} because the values are squared and hence positive anyway.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org