-
- Downloads
[SPARK-12346][ML] Missing attribute names in GLM for vector-type features
Currently `summary()` fails on a GLM model fitted over a vector feature missing ML attrs, since the output feature attrs will also have no name. We can avoid this situation by forcing `VectorAssembler` to make up suitable names when inputs are missing names. cc mengxr Author: Eric Liang <ekl@databricks.com> Closes #10323 from ericl/spark-12346.
Showing
- mllib/src/main/scala/org/apache/spark/ml/feature/VectorAssembler.scala 3 additions, 3 deletions...n/scala/org/apache/spark/ml/feature/VectorAssembler.scala
- mllib/src/test/scala/org/apache/spark/ml/feature/RFormulaSuite.scala 38 additions, 0 deletions...est/scala/org/apache/spark/ml/feature/RFormulaSuite.scala
- mllib/src/test/scala/org/apache/spark/ml/feature/VectorAssemblerSuite.scala 2 additions, 2 deletions...la/org/apache/spark/ml/feature/VectorAssemblerSuite.scala
Please register or sign in to comment