Discussion:
[jira] [Created] (MAHOUT-1896) Add convenience methods for interacting with Spark ML
Trevor Grant (JIRA)
2016-12-15 22:50:58 UTC
Permalink
Trevor Grant created MAHOUT-1896:
------------------------------------

Summary: Add convenience methods for interacting with Spark ML
Key: MAHOUT-1896
URL: https://issues.apache.org/jira/browse/MAHOUT-1896
Project: Mahout
Issue Type: Bug
Reporter: Trevor Grant
Priority: Minor


Currently the method for ingesting RDDs to DRM is `drmWrap`. This is a flexible method, however there are many cases when the RDD to be wrapped is either RDD[org.apache.spark.mllib.lingalg.Vector], RDD[org.apache.spark.mllib.regression.LabeledPoint], or DataFrame[Row] (as is the case when working with SparkML. It makes sense to create convenience methods for converting these types to DRM.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
ASF GitHub Bot (JIRA)
2016-12-15 23:07:59 UTC
Permalink
[ https://issues.apache.org/jira/browse/MAHOUT-1896?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15752790#comment-15752790 ]

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

GitHub user rawkintrevo opened a pull request:

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

[MAHOUT-1896][WIP] Add convenience methods for interacting with Spark ML

Currently the method for ingesting RDDs to DRM is `drmWrap`. This is a flexible method, however there are many cases when the RDD to be wrapped is either RDD[org.apache.spark.mllib.lingalg.Vector], RDD[org.apache.spark.mllib.regression.LabeledPoint], or DataFrame[Row] (as is the case when working with SparkML. It makes sense to create convenience methods for converting these types to DRM.

* [x] Add `drmWrapMLLibLabeledPoint`
* [x] Add `drmWrapDataFrame`
* [x] Add `drmWrapMLLibVector`
* [ ] Tests
* [ ] Scala Docs

Minor improvement

[Relevent JIRA MAHOUT-1896](https://issues.apache.org/jira/browse/MAHOUT-1896)

Requires no license updates

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

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

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

https://github.com/apache/mahout/pull/263.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 #263

----
commit a70560edd11703aeabd5db224e79816437eeb3ce
Author: rawkintrevo <***@gmail.com>
Date: 2016-12-15T22:40:14Z

Added drmWrapMLlibLabledPointWrap and drmWrapDataFrame

commit fb89247a22ddaad54a0cee13a13bcfe7a8557d88
Author: rawkintrevo <***@gmail.com>
Date: 2016-12-15T23:02:39Z

Added drmWrapMLLibVector

----
Post by Trevor Grant (JIRA)
Add convenience methods for interacting with Spark ML
-----------------------------------------------------
Key: MAHOUT-1896
URL: https://issues.apache.org/jira/browse/MAHOUT-1896
Project: Mahout
Issue Type: Bug
Reporter: Trevor Grant
Priority: Minor
Currently the method for ingesting RDDs to DRM is `drmWrap`. This is a flexible method, however there are many cases when the RDD to be wrapped is either RDD[org.apache.spark.mllib.lingalg.Vector], RDD[org.apache.spark.mllib.regression.LabeledPoint], or DataFrame[Row] (as is the case when working with SparkML. It makes sense to create convenience methods for converting these types to DRM.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
ASF GitHub Bot (JIRA)
2016-12-21 02:18:58 UTC
Permalink
[ https://issues.apache.org/jira/browse/MAHOUT-1896?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15765878#comment-15765878 ]

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

Github user rawkintrevo commented on the issue:

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

@andrewpalumbo thanks for the review!

Fixed typos per your request and updated to convert to sparse vectors in cases where original vector was sparse.

re: the implicit conversion of the mahoutCtx, that threw errors so I left it as was.
Post by Trevor Grant (JIRA)
Add convenience methods for interacting with Spark ML
-----------------------------------------------------
Key: MAHOUT-1896
URL: https://issues.apache.org/jira/browse/MAHOUT-1896
Project: Mahout
Issue Type: Bug
Affects Versions: 0.12.2
Reporter: Trevor Grant
Assignee: Trevor Grant
Priority: Minor
Fix For: 0.13.0
Currently the method for ingesting RDDs to DRM is `drmWrap`. This is a flexible method, however there are many cases when the RDD to be wrapped is either RDD[org.apache.spark.mllib.lingalg.Vector], RDD[org.apache.spark.mllib.regression.LabeledPoint], or DataFrame[Row] (as is the case when working with SparkML. It makes sense to create convenience methods for converting these types to DRM.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
ASF GitHub Bot (JIRA)
2016-12-21 18:29:58 UTC
Permalink
[ https://issues.apache.org/jira/browse/MAHOUT-1896?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15767767#comment-15767767 ]

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

Github user andrewpalumbo commented on the issue:

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

LGTM, +1.
Post by Trevor Grant (JIRA)
Add convenience methods for interacting with Spark ML
-----------------------------------------------------
Key: MAHOUT-1896
URL: https://issues.apache.org/jira/browse/MAHOUT-1896
Project: Mahout
Issue Type: Bug
Affects Versions: 0.12.2
Reporter: Trevor Grant
Assignee: Trevor Grant
Priority: Minor
Fix For: 0.13.0
Currently the method for ingesting RDDs to DRM is `drmWrap`. This is a flexible method, however there are many cases when the RDD to be wrapped is either RDD[org.apache.spark.mllib.lingalg.Vector], RDD[org.apache.spark.mllib.regression.LabeledPoint], or DataFrame[Row] (as is the case when working with SparkML. It makes sense to create convenience methods for converting these types to DRM.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
ASF GitHub Bot (JIRA)
2016-12-21 23:56:58 UTC
Permalink
[ https://issues.apache.org/jira/browse/MAHOUT-1896?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15768529#comment-15768529 ]

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

Github user rawkintrevo commented on the issue:

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

Will squash
Post by Trevor Grant (JIRA)
Add convenience methods for interacting with Spark ML
-----------------------------------------------------
Key: MAHOUT-1896
URL: https://issues.apache.org/jira/browse/MAHOUT-1896
Project: Mahout
Issue Type: Bug
Affects Versions: 0.12.2
Reporter: Trevor Grant
Assignee: Trevor Grant
Priority: Minor
Fix For: 0.13.0
Currently the method for ingesting RDDs to DRM is `drmWrap`. This is a flexible method, however there are many cases when the RDD to be wrapped is either RDD[org.apache.spark.mllib.lingalg.Vector], RDD[org.apache.spark.mllib.regression.LabeledPoint], or DataFrame[Row] (as is the case when working with SparkML. It makes sense to create convenience methods for converting these types to DRM.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
Andrew Palumbo (JIRA)
2016-12-20 18:52:58 UTC
Permalink
[ https://issues.apache.org/jira/browse/MAHOUT-1896?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Palumbo updated MAHOUT-1896:
-----------------------------------
Sprint: Jan/Feb-2017
Post by Trevor Grant (JIRA)
Add convenience methods for interacting with Spark ML
-----------------------------------------------------
Key: MAHOUT-1896
URL: https://issues.apache.org/jira/browse/MAHOUT-1896
Project: Mahout
Issue Type: Bug
Affects Versions: 0.12.2
Reporter: Trevor Grant
Assignee: Trevor Grant
Priority: Minor
Fix For: 0.13.0
Currently the method for ingesting RDDs to DRM is `drmWrap`. This is a flexible method, however there are many cases when the RDD to be wrapped is either RDD[org.apache.spark.mllib.lingalg.Vector], RDD[org.apache.spark.mllib.regression.LabeledPoint], or DataFrame[Row] (as is the case when working with SparkML. It makes sense to create convenience methods for converting these types to DRM.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
Andrew Palumbo (JIRA)
2016-12-31 22:01:00 UTC
Permalink
[ https://issues.apache.org/jira/browse/MAHOUT-1896?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Palumbo reassigned MAHOUT-1896:
--------------------------------------

Assignee: Andrew Palumbo (was: Trevor Grant)
Post by Trevor Grant (JIRA)
Add convenience methods for interacting with Spark ML
-----------------------------------------------------
Key: MAHOUT-1896
URL: https://issues.apache.org/jira/browse/MAHOUT-1896
Project: Mahout
Issue Type: Bug
Affects Versions: 0.12.2
Reporter: Trevor Grant
Assignee: Andrew Palumbo
Priority: Minor
Fix For: 0.13.0
Currently the method for ingesting RDDs to DRM is `drmWrap`. This is a flexible method, however there are many cases when the RDD to be wrapped is either RDD[org.apache.spark.mllib.lingalg.Vector], RDD[org.apache.spark.mllib.regression.LabeledPoint], or DataFrame[Row] (as is the case when working with SparkML. It makes sense to create convenience methods for converting these types to DRM.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
Andrew Palumbo (JIRA)
2016-12-31 22:01:00 UTC
Permalink
[ https://issues.apache.org/jira/browse/MAHOUT-1896?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on MAHOUT-1896 started by Andrew Palumbo.
----------------------------------------------
Post by Trevor Grant (JIRA)
Add convenience methods for interacting with Spark ML
-----------------------------------------------------
Key: MAHOUT-1896
URL: https://issues.apache.org/jira/browse/MAHOUT-1896
Project: Mahout
Issue Type: Bug
Affects Versions: 0.12.2
Reporter: Trevor Grant
Assignee: Andrew Palumbo
Priority: Minor
Fix For: 0.13.0
Currently the method for ingesting RDDs to DRM is `drmWrap`. This is a flexible method, however there are many cases when the RDD to be wrapped is either RDD[org.apache.spark.mllib.lingalg.Vector], RDD[org.apache.spark.mllib.regression.LabeledPoint], or DataFrame[Row] (as is the case when working with SparkML. It makes sense to create convenience methods for converting these types to DRM.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
Andrew Palumbo (JIRA)
2016-12-31 22:01:00 UTC
Permalink
[ https://issues.apache.org/jira/browse/MAHOUT-1896?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Palumbo updated MAHOUT-1896:
-----------------------------------
Assignee: Trevor Grant (was: Andrew Palumbo)
Post by Trevor Grant (JIRA)
Add convenience methods for interacting with Spark ML
-----------------------------------------------------
Key: MAHOUT-1896
URL: https://issues.apache.org/jira/browse/MAHOUT-1896
Project: Mahout
Issue Type: Bug
Affects Versions: 0.12.2
Reporter: Trevor Grant
Assignee: Trevor Grant
Priority: Minor
Fix For: 0.13.0
Currently the method for ingesting RDDs to DRM is `drmWrap`. This is a flexible method, however there are many cases when the RDD to be wrapped is either RDD[org.apache.spark.mllib.lingalg.Vector], RDD[org.apache.spark.mllib.regression.LabeledPoint], or DataFrame[Row] (as is the case when working with SparkML. It makes sense to create convenience methods for converting these types to DRM.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
ASF GitHub Bot (JIRA)
2017-01-13 20:06:26 UTC
Permalink
[ https://issues.apache.org/jira/browse/MAHOUT-1896?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15822281#comment-15822281 ]

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

Github user asfgit closed the pull request at:

https://github.com/apache/mahout/pull/263
Post by Trevor Grant (JIRA)
Add convenience methods for interacting with Spark ML
-----------------------------------------------------
Key: MAHOUT-1896
URL: https://issues.apache.org/jira/browse/MAHOUT-1896
Project: Mahout
Issue Type: Bug
Affects Versions: 0.12.2
Reporter: Trevor Grant
Assignee: Trevor Grant
Priority: Minor
Fix For: 0.13.0
Currently the method for ingesting RDDs to DRM is `drmWrap`. This is a flexible method, however there are many cases when the RDD to be wrapped is either RDD[org.apache.spark.mllib.lingalg.Vector], RDD[org.apache.spark.mllib.regression.LabeledPoint], or DataFrame[Row] (as is the case when working with SparkML. It makes sense to create convenience methods for converting these types to DRM.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
Trevor Grant (JIRA)
2017-01-21 05:47:26 UTC
Permalink
[ https://issues.apache.org/jira/browse/MAHOUT-1896?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Trevor Grant resolved MAHOUT-1896.
----------------------------------
Resolution: Fixed
Post by Trevor Grant (JIRA)
Add convenience methods for interacting with Spark ML
-----------------------------------------------------
Key: MAHOUT-1896
URL: https://issues.apache.org/jira/browse/MAHOUT-1896
Project: Mahout
Issue Type: Bug
Affects Versions: 0.12.2
Reporter: Trevor Grant
Assignee: Trevor Grant
Priority: Minor
Fix For: 0.13.0
Currently the method for ingesting RDDs to DRM is `drmWrap`. This is a flexible method, however there are many cases when the RDD to be wrapped is either RDD[org.apache.spark.mllib.lingalg.Vector], RDD[org.apache.spark.mllib.regression.LabeledPoint], or DataFrame[Row] (as is the case when working with SparkML. It makes sense to create convenience methods for converting these types to DRM.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Loading...