object LinearRegression extends DefaultParamsReadable[LinearRegression] with Serializable
- Annotations
- @Since( "1.6.0" )
- Source
- LinearRegression.scala
- Alphabetic
- By Inheritance
- LinearRegression
- Serializable
- Serializable
- DefaultParamsReadable
- MLReadable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
val
MAX_FEATURES_FOR_NORMAL_SOLVER: Int
When using
LinearRegression.solver
== "normal", the solver must limit the number of features to at most this number.When using
LinearRegression.solver
== "normal", the solver must limit the number of features to at most this number. The entire covariance matrix XTX will be collected to the driver. This limit helps prevent memory overflow errors.- Annotations
- @Since( "2.1.0" )
-
def
load(path: String): LinearRegression
Reads an ML instance from the input path, a shortcut of
read.load(path)
.Reads an ML instance from the input path, a shortcut of
read.load(path)
.- Definition Classes
- LinearRegression → MLReadable
- Annotations
- @Since( "1.6.0" )
- Note
Implementing classes should override this to be Java-friendly.
-
def
read: MLReader[LinearRegression]
Returns an
MLReader
instance for this class.Returns an
MLReader
instance for this class.- Definition Classes
- DefaultParamsReadable → MLReadable