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
Updating the LinRegDS documentation
  • Loading branch information
Niketan Pansare committed Aug 8, 2016
commit cfe6087b16dc0f4d401e68bb22b72dae3fa272b4
2 changes: 1 addition & 1 deletion docs/algorithms-regression.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ efficient when the number of features $m$ is relatively small
{% highlight python %}
import SystemML as sml
# C = 1/reg
lr = sml.mllearn.LinearRegression(sqlCtx, fit_intercept=True, max_iter=100, tol=0.000001, C=1.0, solver='direct-solve')
lr = sml.mllearn.LinearRegression(sqlCtx, fit_intercept=True, C=1.0, solver='direct-solve')
# X_train, y_train and X_test can be NumPy matrices or Pandas DataFrame
y_test = lr.fit(X_train, y_train)
# df_train is DataFrame that contains two columns: "features" (of type Vector) and "label". df_test is a DataFrame that contains the column "features"
Expand Down