-
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-177][Native Bayes] Fix error when converting Vector to CSRNumericTable #176
Conversation
2. add unit test for converting vector to CSRNumericTable Signed-off-by: minmingzhu <minming.zhu@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: |
Signed-off-by: minmingzhu <minming.zhu@intel.com>
@@ -53,7 +53,8 @@ suiteArray=( | |||
"classification.MLlibNaiveBayesSuite" \ | |||
"regression.MLlibLinearRegressionSuite" \ | |||
"stat.MLlibCorrelationSuite" \ | |||
"stat.MultivariateOnlineSummarizerSuite" | |||
"stat.MultivariateOnlineSummarizerSuite" \ | |||
"oneDALSuite" |
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.
could you put oneDALSuite in com.intel.oap.mllib namespace to align with oneDAL.scala
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.
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 agree, thanks!
Signed-off-by: minmingzhu <minming.zhu@intel.com>
Pls follow this format to file an issue first and rename your PR title. Pls be more specific about what you want to do. same for #176 |
@@ -14,7 +14,7 @@ | |||
* limitations under the License. | |||
*/ | |||
|
|||
package com.intel.oap.mllib; | |||
package com.intel.oap; |
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.
Let's keep this inside oap mllib namespace. oap space is for the whole oap product. same below.
@@ -236,7 +236,7 @@ object OneDAL { | |||
matrixLabel | |||
} | |||
|
|||
private def vectorsToSparseNumericTable(vectors: Array[Vector], | |||
def vectorsToSparseNumericTable(vectors: Array[Vector], | |||
nFeatures: Long): CSRNumericTable = { |
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.
nFeatures: Long): CSRNumericTable = { | |
nFeatures: Long): CSRNumericTable = { |
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 correct code indent
Signed-off-by: minmingzhu <minming.zhu@intel.com>
@minmingzhu thanks for your work, I will fix the rest of this PR and merge. |
Signed-off-by: minmingzhu minming.zhu@intel.com
What changes were proposed in this pull request?
(Please fill in changes proposed in this fix)
Does this PR also require the following changes?