-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-7605] [MLlib] [PySpark] Python API for ElementwiseProduct #6346
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
Conversation
|
ping @mengxr @jkbradley |
|
Test build #33331 has finished for PR 6346 at commit
|
|
ping @davies Would you be able to have a look at this? |
python/pyspark/mllib/feature.py
Outdated
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.
Should this be TypeError?
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.
Hmm. on Second thoughts, I should maybe just write
self.vector = _convert_to_vector(vector)
WDYT?
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.
Sounds good.
|
@davies I fixed your comments and replaced vector with scalingVector for consistency |
|
Test build #35059 has finished for PR 6346 at commit
|
|
LGTM, merging into master! |
|
@davies Thanks. Do you want me to look at any particular PR if it needs reviews? |
|
Any comments on any PR or JIRA are welcome, thanks! |
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.
No need to set up SparkContext for an example here. I prefer to be able to copy and paste code into the pyspark shell for testing.
|
Oh, I see this was merged already. @MechCoder I'm updating some docs, so I'll include those comments in my next patch. Thanks for the PR! |
Python API for org.apache.spark.mllib.feature.ElementwiseProduct Author: MechCoder <manojkumarsivaraj334@gmail.com> Closes apache#6346 from MechCoder/spark-7605 and squashes the following commits: 79d1ef5 [MechCoder] Consistent and support list / array types 5f81d81 [MechCoder] [SPARK-7605] [MLlib] Python API for ElementwiseProduct
Python API for org.apache.spark.mllib.feature.ElementwiseProduct