Github user sethah commented on a diff in the pull request:
https://github.com/apache/spark/pull/15435#discussion_r106522957
--- Diff:
mllib/src/test/scala/org/apache/spark/ml/classification/LogisticRegressionSuite.scala
---
@@ -194,15 +207,9 @@ class LogisticRegressionSuite
// thresholds and threshold must be consistent: values
withClue("fit with ParamMap should throw error if threshold,
thresholds do not match.") {
intercept[IllegalArgumentException] {
- lr2.fit(smallBinaryDataset,
- lr2.thresholds -> Array(0.3, 0.7), lr2.threshold ->
(expectedThreshold / 2.0))
- }
- }
- withClue("fit with ParamMap should throw error if threshold,
thresholds do not match.") {
- intercept[IllegalArgumentException] {
- val lr2model = lr2.fit(smallBinaryDataset,
- lr2.thresholds -> Array(0.3, 0.7), lr2.threshold ->
(expectedThreshold / 2.0))
- lr2model.getThreshold
+ val lr3 = lr2.copy(
--- End diff --
why is this changed?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]