Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
minmingzhu committed Sep 10, 2024
1 parent 621974f commit 9d9e154
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,8 @@ class LinearRegression @Since("1.3") (@Since("1.3.0") override val uid: String)
dataset.count()
}

val paramSupported = ($(regParam) == 0) || ($(regParam) != 0 && $(elasticNetParam) == 0)
val paramSupported = ($(regParam) == 0 || ($(regParam) != 0 && $(elasticNetParam) == 0)
&& (!isDefined(weightCol) || getWeightCol.isEmpty))
val sparkContext = dataset.sparkSession.sparkContext
val useDevice = sparkContext.getConf.get("spark.oap.mllib.device", Utils.DefaultComputeDevice)
val isPlatformSupported = Utils.checkClusterPlatformCompatibility(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,8 @@ class LinearRegression @Since("1.3.0") (@Since("1.3.0") override val uid: String
dataset.persist(StorageLevel.MEMORY_AND_DISK)
dataset.count()
}
val paramSupported = ($(regParam) == 0) || ($(regParam) != 0 && $(elasticNetParam) == 0)
val paramSupported = ($(regParam) == 0 || ($(regParam) != 0 && $(elasticNetParam) == 0)
&& (!isDefined(weightCol) || getWeightCol.isEmpty))
val sparkContext = dataset.sparkSession.sparkContext
val useDevice = sparkContext.getConf.get("spark.oap.mllib.device", Utils.DefaultComputeDevice)
val isPlatformSupported = Utils.checkClusterPlatformCompatibility(
Expand Down

0 comments on commit 9d9e154

Please # to comment.