You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by zero323 <gi...@git.apache.org> on 2017/03/16 19:17:14 UTC

[GitHub] spark pull request #17321: [SPARK-19899][ML] Replace featuresCol with itemsC...

GitHub user zero323 opened a pull request:

    https://github.com/apache/spark/pull/17321

    [SPARK-19899][ML] Replace featuresCol with itemsCol in ml.fpm.FPGrowth

    ## What changes were proposed in this pull request?
    
    Replaces `featuresCol` `Param` with `itemsCol`. See [SPARK-19899](https://issues.apache.org/jira/browse/SPARK-19899).
    
    ## How was this patch tested?
    
    Manual tests. Existing unit tests.

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

    $ git pull https://github.com/zero323/spark SPARK-19899

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

    https://github.com/apache/spark/pull/17321.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 #17321
    
----
commit 77bf12da6a7045b243bf520bb1ecf001af32ea17
Author: zero323 <ze...@users.noreply.github.com>
Date:   2017-03-16T17:46:50Z

    Replace featuresCol with itemsCol in ml.fpm.FPGrowth

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #17321: [SPARK-19899][ML] Replace featuresCol with itemsC...

Posted by zero323 <gi...@git.apache.org>.
Github user zero323 commented on a diff in the pull request:

    https://github.com/apache/spark/pull/17321#discussion_r106626759
  
    --- Diff: mllib/src/main/scala/org/apache/spark/ml/fpm/FPGrowth.scala ---
    @@ -37,7 +37,20 @@ import org.apache.spark.sql.types._
     /**
      * Common params for FPGrowth and FPGrowthModel
      */
    -private[fpm] trait FPGrowthParams extends Params with HasFeaturesCol with HasPredictionCol {
    +private[fpm] trait FPGrowthParams extends Params with HasPredictionCol {
    +
    +  /**
    +   * Items column name.
    +   * Default: "items"
    +   * @group param
    +   */
    +  @Since("2.2.0")
    --- End diff --
    
    `FPGrowthParams` has been annotated before so I decided to make it consistent. I can remove annotation here, but then we should probably follow through and remove the rest.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #17321: [SPARK-19899][ML] Replace featuresCol with itemsC...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/spark/pull/17321


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #17321: [SPARK-19899][ML] Replace featuresCol with itemsCol in m...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/17321
  
    Merged build finished. Test PASSed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #17321: [SPARK-19899][ML] Replace featuresCol with itemsCol in m...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/17321
  
    **[Test build #74684 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/74684/testReport)** for PR 17321 at commit [`77bf12d`](https://github.com/apache/spark/commit/77bf12da6a7045b243bf520bb1ecf001af32ea17).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #17321: [SPARK-19899][ML] Replace featuresCol with itemsCol in m...

Posted by zero323 <gi...@git.apache.org>.
Github user zero323 commented on the issue:

    https://github.com/apache/spark/pull/17321
  
    Thanks @jkbradley 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #17321: [SPARK-19899][ML] Replace featuresCol with itemsCol in m...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/17321
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/74684/
    Test PASSed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #17321: [SPARK-19899][ML] Replace featuresCol with itemsCol in m...

Posted by jkbradley <gi...@git.apache.org>.
Github user jkbradley commented on the issue:

    https://github.com/apache/spark/pull/17321
  
    LGTM
    Thanks for the PR!
    Merging with master


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #17321: [SPARK-19899][ML] Replace featuresCol with itemsC...

Posted by MLnick <gi...@git.apache.org>.
Github user MLnick commented on a diff in the pull request:

    https://github.com/apache/spark/pull/17321#discussion_r106615770
  
    --- Diff: mllib/src/main/scala/org/apache/spark/ml/fpm/FPGrowth.scala ---
    @@ -37,7 +37,20 @@ import org.apache.spark.sql.types._
     /**
      * Common params for FPGrowth and FPGrowthModel
      */
    -private[fpm] trait FPGrowthParams extends Params with HasFeaturesCol with HasPredictionCol {
    +private[fpm] trait FPGrowthParams extends Params with HasPredictionCol {
    +
    +  /**
    +   * Items column name.
    +   * Default: "items"
    +   * @group param
    +   */
    +  @Since("2.2.0")
    --- End diff --
    
    We normally don't annotate in traits since later things may be overridden by concrete implementers


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #17321: [SPARK-19899][ML] Replace featuresCol with itemsC...

Posted by jkbradley <gi...@git.apache.org>.
Github user jkbradley commented on a diff in the pull request:

    https://github.com/apache/spark/pull/17321#discussion_r106970923
  
    --- Diff: mllib/src/main/scala/org/apache/spark/ml/fpm/FPGrowth.scala ---
    @@ -37,7 +37,20 @@ import org.apache.spark.sql.types._
     /**
      * Common params for FPGrowth and FPGrowthModel
      */
    -private[fpm] trait FPGrowthParams extends Params with HasFeaturesCol with HasPredictionCol {
    +private[fpm] trait FPGrowthParams extends Params with HasPredictionCol {
    +
    +  /**
    +   * Items column name.
    +   * Default: "items"
    +   * @group param
    +   */
    +  @Since("2.2.0")
    --- End diff --
    
    I think it's OK to have it here.  Only FPGrowth and FPGrowthModel will ever inherit from FPGrowthParams.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #17321: [SPARK-19899][ML] Replace featuresCol with itemsCol in m...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/17321
  
    **[Test build #74684 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/74684/testReport)** for PR 17321 at commit [`77bf12d`](https://github.com/apache/spark/commit/77bf12da6a7045b243bf520bb1ecf001af32ea17).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org