spark-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m...@apache.org
Subject spark git commit: [MINOR] [ML] override toString of AttributeGroup
Date Fri, 18 Sep 2015 23:23:05 GMT
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 <ekl@databricks.com>
Author: Eric Liang <ekhliang@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 <ekl@databricks.com>
Authored: Fri Sep 18 16:23:05 2015 -0700
Committer: Xiangrui Meng <meng@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-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org


Mime
View raw message