Commit 544b4d0
committed
[SPARK-21241][MLlib]- Add setIntercept to StreamingLinearRegressionWithSGD in Pyspark.
StreamingLinearRegressionWithSGD class in PySpark is missing the setIntercept Method which offers the possibility
to turn on/off the intercept value. API parity is not respected between Python and Scala. We add the setIntercept
Method to StreamingLinearRegressionWithSGD class which calls setIntercept Method in LinearRegressionModel class
in order to turn on/off the intercept. A big thanks to Matthieu CANEILL for his precious help in solving the issue.
This patch was tested by running all tests with ./dev/run-tests and by manual tests.1 parent 9ce714d commit 544b4d0
1 file changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
202 | 206 | | |
203 | 207 | | |
204 | 208 | | |
| |||
795 | 799 | | |
796 | 800 | | |
797 | 801 | | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
798 | 807 | | |
799 | 808 | | |
800 | 809 | | |
| |||
0 commit comments