You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/12/15 18:42:58 UTC

[jira] [Commented] (MAHOUT-1895) Add convenience methods for converting Vectors to Scala types

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

ASF GitHub Bot commented on MAHOUT-1895:
----------------------------------------

GitHub user rawkintrevo opened a pull request:

    https://github.com/apache/mahout/pull/262

    [MAHOUT-1895] Add convenience methods for converting Vectors to Scala Types

    adds the following methods to Vector
    .toMap
    .toArray
    
    * [x] Add Methods
    * [x] Add Tests
    
    Minor Improvement
    
    Relevent JIRA:
    [MAHOUT-1895](https://issues.apache.org/jira/browse/MAHOUT-1895) 
    
    Requires no license updates


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/rawkintrevo/mahout mahout-1895

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/mahout/pull/262.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #262
    
----
commit 317eea9d5bbbca3122325b4bf3ee6804d75ca5e6
Author: rawkintrevo <tr...@gmail.com>
Date:   2016-12-15T18:39:28Z

    [MAHOUT-1895] Add convenience methods for converting Vectors to Scala Types

----


> Add convenience methods for converting Vectors to Scala types
> -------------------------------------------------------------
>
>                 Key: MAHOUT-1895
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-1895
>             Project: Mahout
>          Issue Type: Bug
>            Reporter: Trevor Grant
>            Priority: Minor
>
> While dense and sparse vectors may be created from `TraversableOnce[Double]` such as `Array[Double]` and `TraversableOnce[(Int, AnyVal)]` such as `Map[Int,Double]` respectively. Converting back into this format is somewhat tedious.  We should add convenience methods to take care of this. 



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