You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2015/11/23 16:25:11 UTC

[jira] [Commented] (FLINK-1737) Add statistical whitening transformation to machine learning library

    [ https://issues.apache.org/jira/browse/FLINK-1737?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15022258#comment-15022258 ] 

ASF GitHub Bot commented on FLINK-1737:
---------------------------------------

Github user tillrohrmann commented on a diff in the pull request:

    https://github.com/apache/flink/pull/1078#discussion_r45615350
  
    --- Diff: flink-staging/flink-ml/src/main/scala/org/apache/flink/ml/math/DenseVector.scala ---
    @@ -102,6 +102,38 @@ case class DenseVector(
         }
       }
     
    +  /** Returns the outer product (a.k.a. Kronecker product) of `this`
    +    * with `other`. The result will given in [[org.apache.flink.ml.math.SparseMatrix]]
    +    * representation if `other` is sparse and as [[org.apache.flink.ml.math.DenseMatrix]] otherwise.
    +    *
    +    * @param other a Vector
    +    * @return the [[org.apache.flink.ml.math.Matrix]] which equals the outer product of `this`
    +    *         with `other.`
    +    */
    +  override def outer(other: Vector): Matrix = {
    +    val numRows = size
    +    val numCols = other.size
    +
    +    other match {
    +      case sv @ SparseVector(_, _, _) =>
    --- End diff --
    
    you can write `casesv: SparseVector =>`


> Add statistical whitening transformation to machine learning library
> --------------------------------------------------------------------
>
>                 Key: FLINK-1737
>                 URL: https://issues.apache.org/jira/browse/FLINK-1737
>             Project: Flink
>          Issue Type: New Feature
>          Components: Machine Learning Library
>            Reporter: Till Rohrmann
>            Assignee: Daniel Pape
>              Labels: ML, Starter
>
> The statistical whitening transformation [1] is a preprocessing step for different ML algorithms. It decorrelates the individual dimensions and sets its variance to 1.
> Statistical whitening should be implemented as a {{Transfomer}}.
> Resources:
> [1] [http://en.wikipedia.org/wiki/Whitening_transformation]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)