zhengruifeng created SPARK-34256:
------------------------------------
Summary: VectorSlicer refine numFeatures checking and toString
method
Key: SPARK-34256
URL: https://issues.apache.org/jira/browse/SPARK-34256
Project: Spark
Issue Type: Improvement
Components: ML
Affects Versions: 3.2.0
Reporter: zhengruifeng
Current checking of numFeatures needs updates:
1, should use inputAttr.size instead of inputAttr.numAttributes to get
numFeatures;
2, this checking is necessary only if $(indices).nonEmpty, otherwise,
$(indices).max will throw exception java.lang.UnsupportedOperationException:
empty.max
3, in toString, should add length of names;
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]