Skip to content

Commit

Permalink
correct LogisticRegressionWithLBFGS regType parameter for pyspark
Browse files Browse the repository at this point in the history
  • Loading branch information
yanboliang committed Feb 28, 2015
1 parent 9168259 commit 12db65a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/pyspark/mllib/classification.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def train(cls, data, iterations=100, initialWeights=None, regParam=0.01, regType
"""
def train(rdd, i):
return callMLlibFunc("trainLogisticRegressionModelWithLBFGS", rdd, int(iterations), i,
float(regParam), str(regType), bool(intercept), int(corrections),
float(regParam), regType, bool(intercept), int(corrections),
float(tolerance))

return _regression_train_wrapper(train, LogisticRegressionModel, data, initialWeights)
Expand Down

0 comments on commit 12db65a

Please sign in to comment.