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
Conversation
Test build #28326 has started for PR 4925 at commit
|
Test build #28326 has finished for PR 4925 at commit
|
Test PASSed. |
* Keys used to store attributes. | ||
*/ | ||
private[attribute] object AttributeKeys { | ||
final val ML_ATTR: String = "ml_attr" |
There was a problem hiding this comment.
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
?
There was a problem hiding this comment.
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.
Test build #28349 has started for PR 4925 at commit
|
Test build #28349 has finished for PR 4925 at commit
|
Test PASSed. |
Test build #28357 has started for PR 4925 at commit
|
Test build #28357 has finished for PR 4925 at commit
|
Test PASSed. |
* ML column. | ||
* ML attributes are stored in the metadata field of the column schema. | ||
*/ | ||
package object attribute |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
Test build #28505 has started for PR 4925 at commit
|
Test build #28505 has finished for PR 4925 at commit
|
Test PASSed. |
I'm merging this into master, so we can test the APIs in feature transformers. Feel free to propose any changes. Thanks! |
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.