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-14549][ML] Copy the Vector and Matrix classes from mllib to ml in mllib-local #12317
Conversation
Test build #55571 has finished for PR 12317 at commit
|
Test build #55574 has finished for PR 12317 at commit
|
Test build #55589 has finished for PR 12317 at commit
|
@dbtsai Please remove |
…w `IllegalArgumentException` instead of `SparkException`.
… SparkFunSuite imports
38914b2
to
45a0ee8
Compare
<dependency> | ||
<groupId>org.json4s</groupId> | ||
<artifactId>json4s-jackson_${scala.binary.version}</artifactId> | ||
<version>3.2.10</version> |
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.
Core also depends on json4s (See https://github.com/apache/spark/blob/master/core/pom.xml#L195.). Shall we move the version definition to a common place?
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.
I have another JIRA to do so. We also want to consolidate the version of breeze. https://issues.apache.org/jira/browse/SPARK-14612
If you want, I can do it in this PR.
Test build #55752 has finished for PR 12317 at commit
|
Test build #55755 has finished for PR 12317 at commit
|
Test build #55760 has finished for PR 12317 at commit
|
Test build #55766 has finished for PR 12317 at commit
|
Test build #55827 has finished for PR 12317 at commit
|
@mengxr The versions of the dependencies have been moved to the parent POM. |
I'm making another pass. |
@@ -49,6 +49,10 @@ | |||
<scope>test</scope> | |||
</dependency> | |||
<dependency> | |||
<groupId>org.json4s</groupId> | |||
<artifactId>json4s-jackson_${scala.binary.version}</artifactId> |
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.
I created https://issues.apache.org/jira/browse/SPARK-14653 as a follow-up item.
Test build #55902 has finished for PR 12317 at commit
|
LGTM. Merged into master. Thanks! |
What changes were proposed in this pull request?
This task will copy the Vector and Matrix classes from mllib to ml package in mllib-local jar. The UDTs and
since
annotation in ml vector and matrix will be removed from now. UDTs will be achieved by #SPARK-14487, andsince
will be replaced by /* @ since 1.2.0 */The BLAS implementation will be copied, and some of the test utilities will be copies as well.
Summary of changes:
@Since
was removed, and we'll use standard/* @Since /*
Java doc. Will be in another PR.UDT
related code was removed, and will useSPARK-13944
[SPARK-14487][SQL] User Defined Type registration without SQLUserDefinedType annotation #12259 to replace the annotation.@Since
was removed.UDT
related code was removed.def parseNumeric
, it was throwingthrow new SparkException(s"Cannot parse $other.")
, and now it's throwingthrow new IllegalArgumentException(s"Cannot parse $other.")
def parseNumeric
is now throwingthrow new IllegalArgumentException(s"Cannot parse $other.")
throw new SparkException
were replaced bythrow new IllegalArgumentException
How was this patch tested?
unit tests