Return-Path: X-Original-To: apmail-spark-issues-archive@minotaur.apache.org Delivered-To: apmail-spark-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C1F0117BAE for ; Thu, 9 Apr 2015 22:38:22 +0000 (UTC) Received: (qmail 95672 invoked by uid 500); 9 Apr 2015 22:38:12 -0000 Delivered-To: apmail-spark-issues-archive@spark.apache.org Received: (qmail 95527 invoked by uid 500); 9 Apr 2015 22:38:12 -0000 Mailing-List: contact issues-help@spark.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@spark.apache.org Received: (qmail 95324 invoked by uid 99); 9 Apr 2015 22:38:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Apr 2015 22:38:12 +0000 Date: Thu, 9 Apr 2015 22:38:12 +0000 (UTC) From: "Xiangrui Meng (JIRA)" To: issues@spark.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (SPARK-6693) add toString with max lines and width for matrix MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SPARK-6693?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Xiangrui Meng resolved SPARK-6693. ---------------------------------- Resolution: Fixed Fix Version/s: 1.4.0 Issue resolved by pull request 5344 [https://github.com/apache/spark/pull/5344] > add toString with max lines and width for matrix > ------------------------------------------------ > > Key: SPARK-6693 > URL: https://issues.apache.org/jira/browse/SPARK-6693 > Project: Spark > Issue Type: Improvement > Components: MLlib > Affects Versions: 1.3.0 > Reporter: yuhao yang > Priority: Minor > Fix For: 1.4.0 > > Original Estimate: 2h > Remaining Estimate: 2h > > It's kind of annoying when debugging and found you cannot print out the matrix as you want. > original toString of Matrix only print like following, > 0.17810102596909183 0.5616906241468385 ... (100 total) > 0.9692861997823815 0.015558159784155756 ... > 0.8513015122819192 0.031523763918528847 ... > 0.5396875653953941 0.3267864552779176 ... > The def toString(maxLines : Int, maxWidth : Int) is useful when debuging, logging and saving matrix to files. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org For additional commands, e-mail: issues-help@spark.apache.org