Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-4588] ML Attributes #4925

Closed
wants to merge 7 commits into from
Closed

Conversation

mengxr
Copy link
Contributor

@mengxr mengxr commented Mar 6, 2015

This continues the work in #4460 from @srowen . The design doc is published on the JIRA page with some minor changes.

Short description of ML attributes: https://github.com/apache/spark/pull/4925/files?diff=unified#diff-95e7f5060429f189460b44a3f8731a35R24

More details can be found in the design doc.

@srowen Could you help review this PR? There are many lines but most of them are boilerplate code.

@SparkQA
Copy link

SparkQA commented Mar 6, 2015

Test build #28326 has started for PR 4925 at commit b1aceef.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Mar 6, 2015

Test build #28326 has finished for PR 4925 at commit b1aceef.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • sealed abstract class AttributeType(val name: String)
    • sealed abstract class Attribute extends Serializable

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/28326/
Test PASSed.

* Keys used to store attributes.
*/
private[attribute] object AttributeKeys {
final val ML_ATTR: String = "ml_attr"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you need : String here? also, I may not get the purpose of final here since val is already immutable but would it be simpler to declare the object as final?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For public fields, we put the types explicitly. You are right about final. An object is already final, we don't need final for its members. I'lll remove them with the next update.

@SparkQA
Copy link

SparkQA commented Mar 6, 2015

Test build #28349 has started for PR 4925 at commit 393ffdc.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Mar 6, 2015

Test build #28349 has finished for PR 4925 at commit 393ffdc.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • sealed abstract class AttributeType(val name: String)
    • sealed abstract class Attribute extends Serializable

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/28349/
Test PASSed.

@SparkQA
Copy link

SparkQA commented Mar 6, 2015

Test build #28357 has started for PR 4925 at commit 617be40.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Mar 7, 2015

Test build #28357 has finished for PR 4925 at commit 617be40.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • sealed abstract class AttributeType(val name: String)
    • sealed abstract class Attribute extends Serializable

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/28357/
Test PASSed.

* ML column.
* ML attributes are stored in the metadata field of the column schema.
*/
package object attribute
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any way to make this doc show up in the Java docs?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need package-info.java for Java. Let me include it with the next update.

@SparkQA
Copy link

SparkQA commented Mar 12, 2015

Test build #28505 has started for PR 4925 at commit 71d1bd0.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Mar 12, 2015

Test build #28505 has finished for PR 4925 at commit 71d1bd0.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • sealed abstract class AttributeType(val name: String)
    • sealed abstract class Attribute extends Serializable

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/28505/
Test PASSed.

@asfgit asfgit closed this in a4b2716 Mar 12, 2015
@mengxr
Copy link
Contributor Author

mengxr commented Mar 12, 2015

I'm merging this into master, so we can test the APIs in feature transformers. Feel free to propose any changes. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants