Skip to content
Closed
Changes from 1 commit
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
Prev Previous commit
Next Next commit
fix style issues
  • Loading branch information
actuaryzhang committed Jul 13, 2017
commit 602c3bd91ff481da6fb37743d1c007305b3d47a5
Original file line number Diff line number Diff line change
Expand Up @@ -1478,10 +1478,9 @@ class GeneralizedLinearRegressionTrainingSummary private[regression] (
}

/**
* Summary table with feature name, coefficient, standard error,
* tValue and pValue.
*
*/
* Summary table with feature name, coefficient, standard error,
* tValue and pValue.
*/
@Since("2.2.0")
lazy val summaryTable: DataFrame = {
if (isNormalSolver) {
Expand All @@ -1491,7 +1490,7 @@ class GeneralizedLinearRegressionTrainingSummary private[regression] (
if (model.getFitIntercept) {
featureNames = featureNames :+ "Intercept"
coefficients = coefficients :+ model.intercept
// reorder so that intercept comes first
// Reorder so that intercept comes first
idx = (coefficients.length - 1) +: idx
}
val result = for (i <- idx.toSeq) yield
Expand Down