Skip to content

Commit

Permalink
Changed logging behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
freeman-lab committed Jul 10, 2014
1 parent 453974e commit fd31e03
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,8 @@ abstract class StreamingRegression[M <: GeneralizedLinearModel, A <: Generalized
/** The algorithm to use for updating. */
val algorithm: A

/** Log the latest model parameters and return the model. */
/** Return the latest model. */
def latest(): M = {
logInfo("Latest model: weights, %s".format(model.weights.toString))
logInfo("Latest model: intercept, %s".format(model.intercept.toString))
model
}

Expand All @@ -65,7 +63,8 @@ abstract class StreamingRegression[M <: GeneralizedLinearModel, A <: Generalized
model = algorithm.run(rdd, model.weights)
logInfo("Model updated")
}
this.latest()
logInfo("Current model: weights, %s".format(model.weights.toString))
logInfo("Current model: intercept, %s".format(model.intercept.toString))
}
}

Expand Down

0 comments on commit fd31e03

Please sign in to comment.