Repository: spark
Updated Branches:
  refs/heads/master 8074208fa -> c8149ef2c


[MINOR] [ML] override toString of AttributeGroup

This makes equality test failures much more readable.

mengxr

Author: Eric Liang <e...@databricks.com>
Author: Eric Liang <ekhli...@gmail.com>

Closes #8826 from ericl/attrgroupstr.


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/c8149ef2
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/c8149ef2
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/c8149ef2

Branch: refs/heads/master
Commit: c8149ef2c57f5c47ab97ee8d8d58a216d4bc4156
Parents: 8074208
Author: Eric Liang <e...@databricks.com>
Authored: Fri Sep 18 16:23:05 2015 -0700
Committer: Xiangrui Meng <m...@databricks.com>
Committed: Fri Sep 18 16:23:05 2015 -0700

----------------------------------------------------------------------
 .../main/scala/org/apache/spark/ml/attribute/AttributeGroup.scala  | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/c8149ef2/mllib/src/main/scala/org/apache/spark/ml/attribute/AttributeGroup.scala
----------------------------------------------------------------------
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 457c158..2c29eeb 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
 }
 
 /**


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org
For additional commands, e-mail: commits-h...@spark.apache.org

Reply via email to