Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,11 @@ class LogisticRegression @Since("1.2.0") (
throw new SparkException(msg)
}

if (!state.actuallyConverged) {
logWarning("LogisticRegression training fininshed but the result " +
s"is not converged because: ${state.convergedReason.get.reason}")
}

/*
The coefficients are trained in the scaled space; we're converting them back to
the original space.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,11 @@ class AFTSurvivalRegression @Since("1.6.0") (@Since("1.6.0") override val uid: S
throw new SparkException(msg)
}

if (!state.actuallyConverged) {
logWarning("AFTSurvivalRegression training fininshed but the result " +
s"is not converged because: ${state.convergedReason.get.reason}")
}

state.x.toArray.clone()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,12 @@ object LBFGS extends Logging {
state = states.next()
}
lossHistory += state.value

if (!state.actuallyConverged) {
logWarning("LBFGS training fininshed but the result " +
s"is not converged because: ${state.convergedReason.get.reason}")
}

val weights = Vectors.fromBreeze(state.x)

val lossHistoryArray = lossHistory.result()
Expand Down