aboutsummaryrefslogtreecommitdiff
path: root/mllib
diff options
context:
space:
mode:
authorEric Liang <ekl@databricks.com>2015-09-18 16:23:05 -0700
committerXiangrui Meng <meng@databricks.com>2015-09-18 16:23:05 -0700
commitc8149ef2c57f5c47ab97ee8d8d58a216d4bc4156 (patch)
tree92182cf5cf1efc3ab61f2e2106f09520018ad35d /mllib
parent8074208fa47fa654c1055c48cfa0d923edeeb04f (diff)
downloadspark-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.scala2
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
}
/**