diff options
author | Eric Liang <ekl@databricks.com> | 2015-09-18 16:23:05 -0700 |
---|---|---|
committer | Xiangrui Meng <meng@databricks.com> | 2015-09-18 16:23:05 -0700 |
commit | c8149ef2c57f5c47ab97ee8d8d58a216d4bc4156 (patch) | |
tree | 92182cf5cf1efc3ab61f2e2106f09520018ad35d /mllib | |
parent | 8074208fa47fa654c1055c48cfa0d923edeeb04f (diff) | |
download | spark-c8149ef2c57f5c47ab97ee8d8d58a216d4bc4156.tar.gz spark-c8149ef2c57f5c47ab97ee8d8d58a216d4bc4156.tar.bz2 spark-c8149ef2c57f5c47ab97ee8d8d58a216d4bc4156.zip |
[MINOR] [ML] override toString of AttributeGroup
This makes equality test failures much more readable.
mengxr
Author: Eric Liang <ekl@databricks.com>
Author: Eric Liang <ekhliang@gmail.com>
Closes #8826 from ericl/attrgroupstr.
Diffstat (limited to 'mllib')
-rw-r--r-- | mllib/src/main/scala/org/apache/spark/ml/attribute/AttributeGroup.scala | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mllib/src/main/scala/org/apache/spark/ml/attribute/AttributeGroup.scala b/mllib/src/main/scala/org/apache/spark/ml/attribute/AttributeGroup.scala index 457c15830f..2c29eeb01a 100644 --- a/mllib/src/main/scala/org/apache/spark/ml/attribute/AttributeGroup.scala +++ b/mllib/src/main/scala/org/apache/spark/ml/attribute/AttributeGroup.scala @@ -183,6 +183,8 @@ class AttributeGroup private ( sum = 37 * sum + attributes.map(_.toSeq).hashCode sum } + + override def toString: String = toMetadata.toString } /** |