Skip to content

Commit

Permalink
revert unrelated change
Browse files Browse the repository at this point in the history
  • Loading branch information
Davies Liu committed Nov 3, 2014
1 parent 6880b14 commit e544ef9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/pyspark/mllib/regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ class LinearRegressionModel(LinearRegressionModelBase):

# train_func should take two parameters, namely data and initial_weights, and
# return the result of a call to the appropriate JVM stub.
# _regression_train_wrapper is responsible for setup and error checking.
def _regression_train_wrapper(train_func, modelClass, data, initial_weights):
initial_weights = initial_weights or [0.0] * len(data.first().features)
weights, intercept = train_func(_to_java_object_rdd(data, cache=True),
Expand Down

0 comments on commit e544ef9

Please sign in to comment.