We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72a9302 commit 42ff98eCopy full SHA for 42ff98e
1 file changed
mllib/src/main/scala/org/apache/spark/ml/regression/LinearRegression.scala
@@ -409,7 +409,8 @@ object LinearRegression extends DefaultParamsReadable[LinearRegression] {
409
410
/**
411
* When using [[LinearRegression.solver]] == "normal", the solver must limit the number of
412
- * features to at most this number.
+ * features to at most this number. The entire covariance matrix X^T^X will be collected
413
+ * to the driver. This limit helps prevent memory overflow errors.
414
*/
415
@Since("2.1.0")
416
val MAX_FEATURES_FOR_NORMAL_SOLVER: Int = WeightedLeastSquares.MAX_NUM_FEATURES
0 commit comments