Skip to content

Conversation

@mengxr
Copy link
Contributor

@mengxr mengxr commented Jun 21, 2016

What changes were proposed in this pull request?

Deprecate labelCol, which is not used by ChiSqSelectorModel.

@SparkQA
Copy link

SparkQA commented Jun 21, 2016

Test build #60966 has finished for PR 13823 at commit 98016b7.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@jkbradley
Copy link
Member

LGTM

@jkbradley
Copy link
Member

jkbradley commented Jun 22, 2016

Merging with master and branch-2.0

asfgit pushed a commit that referenced this pull request Jun 22, 2016
## What changes were proposed in this pull request?

Deprecate `labelCol`, which is not used by ChiSqSelectorModel.

Author: Xiangrui Meng <[email protected]>

Closes #13823 from mengxr/deprecate-setLabelCol-in-ChiSqSelectorModel.

(cherry picked from commit d77c4e6)
Signed-off-by: Joseph K. Bradley <[email protected]>
@asfgit asfgit closed this in d77c4e6 Jun 22, 2016
asfgit pushed a commit that referenced this pull request Jun 22, 2016
## What changes were proposed in this pull request?

We recently deprecated setLabelCol in ChiSqSelectorModel (#13823):

~~~scala
  /** group setParam */
  Since("1.6.0")
  deprecated("labelCol is not used by ChiSqSelectorModel.", "2.0.0")
  def setLabelCol(value: String): this.type = set(labelCol, value)
~~~

This unfortunately hit a genjavadoc bug and broken doc generation. This is the generated Java code:

~~~java
  /** group setParam */
  public  org.apache.spark.ml.feature.ChiSqSelectorModel setOutputCol (java.lang.String value)  { throw new RuntimeException(); }
   *
   * deprecated labelCol is not used by ChiSqSelectorModel. Since 2.0.0.
  */
  public  org.apache.spark.ml.feature.ChiSqSelectorModel setLabelCol (java.lang.String value)  { throw new RuntimeException(); }
~~~

Switching to multiline is a workaround.

Author: Xiangrui Meng <[email protected]>

Closes #13855 from mengxr/SPARK-16153.

(cherry picked from commit 00cc5cc)
Signed-off-by: Xiangrui Meng <[email protected]>
asfgit pushed a commit that referenced this pull request Jun 22, 2016
## What changes were proposed in this pull request?

We recently deprecated setLabelCol in ChiSqSelectorModel (#13823):

~~~scala
  /** group setParam */
  Since("1.6.0")
  deprecated("labelCol is not used by ChiSqSelectorModel.", "2.0.0")
  def setLabelCol(value: String): this.type = set(labelCol, value)
~~~

This unfortunately hit a genjavadoc bug and broken doc generation. This is the generated Java code:

~~~java
  /** group setParam */
  public  org.apache.spark.ml.feature.ChiSqSelectorModel setOutputCol (java.lang.String value)  { throw new RuntimeException(); }
   *
   * deprecated labelCol is not used by ChiSqSelectorModel. Since 2.0.0.
  */
  public  org.apache.spark.ml.feature.ChiSqSelectorModel setLabelCol (java.lang.String value)  { throw new RuntimeException(); }
~~~

Switching to multiline is a workaround.

Author: Xiangrui Meng <[email protected]>

Closes #13855 from mengxr/SPARK-16153.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants