Skip to content
Permalink
Browse files

[SPARK-23107][ML] ML 2.3 QA: New Scala APIs, docs.

## What changes were proposed in this pull request?
Audit new APIs and docs in 2.3.0.

## How was this patch tested?
No test.

Author: Yanbo Liang <ybliang8@gmail.com>

Closes #20459 from yanboliang/SPARK-23107.

(cherry picked from commit e15da5b)
Signed-off-by: Nick Pentreath <nickp@za.ibm.com>
  • Loading branch information...
yanboliang authored and MLnick committed Feb 1, 2018
1 parent 871fd48 commit 205bce974b86bef9d9d507e1b89549cb01c7b535
@@ -74,7 +74,7 @@ private[feature] trait RFormulaBase extends HasFeaturesCol with HasLabelCol with
* @group param
*/
@Since("2.3.0")
final override val handleInvalid: Param[String] = new Param[String](this, "handleInvalid",
override val handleInvalid: Param[String] = new Param[String](this, "handleInvalid",
"How to handle invalid data (unseen or NULL values) in features and label column of string " +
"type. Options are 'skip' (filter out rows with invalid data), error (throw an error), " +
"or 'keep' (put invalid data in a special additional bucket, at index numLabels).",
@@ -645,7 +645,7 @@ class LinearRegressionModel private[ml] (
extends RegressionModel[Vector, LinearRegressionModel]
with LinearRegressionParams with MLWritable {

def this(uid: String, coefficients: Vector, intercept: Double) =
private[ml] def this(uid: String, coefficients: Vector, intercept: Double) =
this(uid, coefficients, intercept, 1.0)

private var trainingSummary: Option[LinearRegressionTrainingSummary] = None

0 comments on commit 205bce9

Please sign in to comment.
You can’t perform that action at this time.