Skip to content

Commit 8f78f59

Browse files
committed
update
1 parent cc30578 commit 8f78f59

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

mllib/src/main/scala/org/apache/spark/ml/tuning/CrossValidator.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,6 @@ object CrossValidatorModel extends MLReadable[CrossValidatorModel] {
301301

302302
val (metadata, estimator, evaluator, estimatorParamMaps) =
303303
ValidatorParams.loadImpl(path, sc, className)
304-
val numFolds = (metadata.params \ "numFolds").extract[Int]
305304
val bestModelPath = new Path(path, "bestModel").toString
306305
val bestModel = DefaultParamsReader.loadParamsInstance[Model[_]](bestModelPath, sc)
307306
val avgMetrics = (metadata.metadata \ "avgMetrics").extract[Seq[Double]].toArray

mllib/src/main/scala/org/apache/spark/ml/util/ReadWrite.scala

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -399,11 +399,14 @@ private[ml] object DefaultParamsReader {
399399
* This works if all Params (except params included by `skipParams` list) implement
400400
* [[org.apache.spark.ml.param.Param.jsonDecode()]].
401401
*
402-
* The params included in `skipParams` won't be set. This is useful if some params don't
403-
* implement [[org.apache.spark.ml.param.Param.jsonDecode()]] and need special handling.
402+
* @param skipParams The params included in `skipParams` won't be set. This is useful if some
403+
* params don't implement [[org.apache.spark.ml.param.Param.jsonDecode()]]
404+
* and need special handling.
404405
* TODO: Move to [[Metadata]] method
405406
*/
406-
def getAndSetParams(instance: Params, metadata: Metadata,
407+
def getAndSetParams(
408+
instance: Params,
409+
metadata: Metadata,
407410
skipParams: Option[List[String]] = None): Unit = {
408411
implicit val format = DefaultFormats
409412
metadata.params match {

0 commit comments

Comments
 (0)