-
Notifications
You must be signed in to change notification settings - Fork 12
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
[ML-133][Correlation] Add Correlation algorithm #127
Conversation
2. add Correlation example 3. enable spark 3.1.1 and spark 3.0.0 Signed-off-by: minmingzhu <minmingzhu@intel.com>
Thanks for opening a pull request! Could you open an issue for this pull request on Github Issues? Then could you also rename pull request title and commit log in the following format?
See also: |
examples/correlation/run.sh
Outdated
DATA_FILE=$HDFS_ROOT/data/sample_linear_regression_data.txt | ||
|
||
APP_JAR=target/oap-mllib-examples-$OAP_MLLIB_VERSION.jar | ||
APP_CLASS=org.apache.spark.examples.ml.LinearRegressionExample |
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.
APP_CLASS=org.apache.spark.examples.ml.LinearRegressionExample | |
APP_CLASS=org.apache.spark.examples.ml.CorrelationExample |
mllib-dal/src/main/java/org/apache/spark/ml/stat/CorrelationResult.java
Outdated
Show resolved
Hide resolved
mllib-dal/src/main/scala/org/apache/spark/ml/stat/CorrelationDALImpl.scala
Outdated
Show resolved
Hide resolved
mllib-dal/src/spark-3.1.1/main/scala/org/apache/spark/ml/stat/Correlation.scala
Outdated
Show resolved
Hide resolved
mllib-dal/src/main/scala/org/apache/spark/ml/stat/CorrelationDALImpl.scala
Outdated
Show resolved
Hide resolved
Signed-off-by: minmingzhu <minming.zhu@intel.com>
Signed-off-by: minmingzhu <minming.zhu@intel.com>
Signed-off-by: minmingzhu <minming.zhu@intel.com>
Signed-off-by: minmingzhu <minming.zhu@intel.com>
Signed-off-by: minmingzhu <minming.zhu@intel.com>
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.
Pls use IDEA and format-cpp to format the code.
examples/correlation/src/main/scala/org/apache/spark/examples/ml/CorrelationExample.scala
Outdated
Show resolved
Hide resolved
2. modify test 3. enable spark 3.0.1 and spark 3.0.2 4. remove print Signed-off-by: minmingzhu <minming.zhu@intel.com>
Signed-off-by: minmingzhu <minming.zhu@intel.com>
Signed-off-by: minmingzhu <minming.zhu@intel.com>
Signed-off-by: minmingzhu <minming.zhu@intel.com>
2. add GPU test Signed-off-by: minmingzhu <minming.zhu@intel.com>
examples/correlation/src/main/scala/org/apache/spark/examples/ml/CorrelationExample.scala
Outdated
Show resolved
Hide resolved
mllib-dal/src/spark-3.0.0/main/scala/org/apache/spark/ml/stat/Correlation.scala
Show resolved
Hide resolved
mllib-dal/src/main/scala/org/apache/spark/ml/stat/CorrelationDALImpl.scala
Show resolved
Hide resolved
mllib-dal/src/main/scala/org/apache/spark/ml/stat/CorrelationDALImpl.scala
Outdated
Show resolved
Hide resolved
mllib-dal/src/main/scala/org/apache/spark/ml/stat/CorrelationDALImpl.scala
Outdated
Show resolved
Hide resolved
mllib-dal/src/main/scala/org/apache/spark/ml/stat/CorrelationDALImpl.scala
Outdated
Show resolved
Hide resolved
mllib-dal/src/main/native/javah/org_apache_spark_ml_stat_CorrelationDALImpl.h
Show resolved
Hide resolved
Signed-off-by: minmingzhu <minming.zhu@intel.com>
Signed-off-by: minmingzhu <minming.zhu@intel.com>
…rt to ml.Matrix. Signed-off-by: minmingzhu <minming.zhu@intel.com>
2. make-up code Signed-off-by: minmingzhu <minming.zhu@intel.com>
Signed-off-by: minmingzhu <minming.zhu@intel.com>
…set data to be cached on spark 3.0.1, 3.0.2 and 3.1.1 Signed-off-by: minmingzhu <minming.zhu@intel.com>
Signed-off-by: minmingzhu <minming.zhu@intel.com>
build correlation
Merged, Thanks a lot for your contribution! @minmingzhu |
Signed-off-by: minmingzhu minmingzhu@intel.com
What changes were proposed in this pull request?
(Please fill in changes proposed in this fix)