Skip to content

Commit 7d34939

Browse files
committed
Updating ML Doc "Estimator, Transformer, and Param" example to use model.extractParamMap instead of model.fittingParamMap, which no longer exists.
1 parent a4f2412 commit 7d34939

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/ml-guide.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ val model1 = lr.fit(training.toDF)
207207
// we can view the parameters it used during fit().
208208
// This prints the parameter (name: value) pairs, where names are unique IDs for this
209209
// LogisticRegression instance.
210-
println("Model 1 was fit using parameters: " + model1.fittingParamMap)
210+
println("Model 1 was fit using parameters: " + model1.extractParamMap)
211211

212212
// We may alternatively specify parameters using a ParamMap,
213213
// which supports several methods for specifying parameters.
@@ -222,7 +222,7 @@ val paramMapCombined = paramMap ++ paramMap2
222222
// Now learn a new model using the paramMapCombined parameters.
223223
// paramMapCombined overrides all parameters set earlier via lr.set* methods.
224224
val model2 = lr.fit(training.toDF, paramMapCombined)
225-
println("Model 2 was fit using parameters: " + model2.fittingParamMap)
225+
println("Model 2 was fit using parameters: " + model2.extractParamMap)
226226

227227
// Prepare test data.
228228
val test = sc.parallelize(Seq(

0 commit comments

Comments
 (0)