-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-4894][mllib] Added Bernoulli option to NaiveBayes model in mllib #4087
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
Changes from 1 commit
ce73c63
4a3676d
0313c0c
76e5b0f
d9477ed
3891bf2
5a4a534
b61b5e2
3730572
b93aaf6
7622b0c
dc65374
85f298f
e016569
ea09b28
900b586
b85b0c9
c298e78
2d0c1ba
e2d925e
fb0a5c7
01baad7
bea62af
18f3219
a22d670
852a727
6a8f383
9ad89ca
2224b15
acb69af
f3c8994
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -186,7 +186,7 @@ class NaiveBayes private ( | |
| private var lambda: Double, | ||
| private var modelType: NaiveBayes.ModelType) extends Serializable with Logging { | ||
|
|
||
| private def this(lambda: Double) = this(lambda, NaiveBayes.Multinomial) | ||
| def this(lambda: Double) = this(lambda, NaiveBayes.Multinomial) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No need for this constructor since it was private before.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removing this causes MiMa test failures.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh OK. In that case, does it work if we keep it private?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nope, I tried adding it back as private before just adding it back and it still failed. |
||
|
|
||
| def this() = this(1.0, NaiveBayes.Multinomial) | ||
|
|
||
|
|
||
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.
Add getModelType method