Skip to content

Commit 0c47cee

Browse files
committed
fix style
1 parent f523149 commit 0c47cee

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

python/pyspark/ml/regression.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1376,9 +1376,9 @@ class GeneralizedLinearRegression(JavaEstimator, HasLabelCol, HasFeaturesCol, Ha
13761376
typeConverter=TypeConverters.toFloat)
13771377
solver = Param(Params._dummy(), "solver", "The solver algorithm for optimization. Supported " +
13781378
"options: irls.", typeConverter=TypeConverters.toString)
1379-
offsetCol = Param(Params._dummy(), "offsetCol", "The offset column name. If this is not set or " +
1380-
"empty, we treat all instance offsets as 0.0",
1381-
typeConverter=TypeConverters.toString)
1379+
offsetCol = Param(Params._dummy(), "offsetCol", "The offset column name. If this is not set " +
1380+
"or empty, we treat all instance offsets as 0.0",
1381+
typeConverter=TypeConverters.toString)
13821382

13831383
@keyword_only
13841384
def __init__(self, labelCol="label", featuresCol="features", predictionCol="prediction",

python/pyspark/ml/tests.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1295,9 +1295,9 @@ def test_offset(self):
12951295

12961296
df = self.spark.createDataFrame(
12971297
[(0.2, 1.0, 2.0, Vectors.dense(0.0, 5.0)),
1298-
(0.5, 2.1, 0.5, Vectors.dense(1.0, 2.0)),
1299-
(0.9, 0.4, 1.0, Vectors.dense(2.0, 1.0)),
1300-
(0.7, 0.7, 0.0, Vectors.dense(3.0, 3.0))], ["label", "weight", "offset", "features"])
1298+
(0.5, 2.1, 0.5, Vectors.dense(1.0, 2.0)),
1299+
(0.9, 0.4, 1.0, Vectors.dense(2.0, 1.0)),
1300+
(0.7, 0.7, 0.0, Vectors.dense(3.0, 3.0))], ["label", "weight", "offset", "features"])
13011301

13021302
glr = GeneralizedLinearRegression(family="poisson", weightCol="weight", offsetCol="offset")
13031303
model = glr.fit(df)

0 commit comments

Comments
 (0)