Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id D8560200C60 for ; Mon, 10 Apr 2017 03:12:47 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id D6F06160BA8; Mon, 10 Apr 2017 01:12:47 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 29F48160BA4 for ; Mon, 10 Apr 2017 03:12:47 +0200 (CEST) Received: (qmail 83631 invoked by uid 500); 10 Apr 2017 01:12:46 -0000 Mailing-List: contact issues-help@systemml.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@systemml.incubator.apache.org Delivered-To: mailing list issues@systemml.incubator.apache.org Received: (qmail 83622 invoked by uid 99); 10 Apr 2017 01:12:46 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Apr 2017 01:12:46 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id B0728C05C6 for ; Mon, 10 Apr 2017 01:12:45 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 8OkNWAhSQOa1 for ; Mon, 10 Apr 2017 01:12:45 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 838BB5FCD2 for ; Mon, 10 Apr 2017 01:12:44 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id D40B5E0A17 for ; Mon, 10 Apr 2017 01:12:43 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 8F6712406D for ; Mon, 10 Apr 2017 01:12:42 +0000 (UTC) Date: Mon, 10 Apr 2017 01:12:42 +0000 (UTC) From: "Glenn Weidner (JIRA)" To: issues@systemml.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SYSTEMML-1474) Index out of bounds error in test_naive_bayes1 of test_mllearn_numpy.py MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 10 Apr 2017 01:12:48 -0000 [ https://issues.apache.org/jira/browse/SYSTEMML-1474?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15962333#comment-15962333 ] Glenn Weidner commented on SYSTEMML-1474: ----------------------------------------- Thank you Niketan for the information! Yes, I will take that on and try things thing out. > Index out of bounds error in test_naive_bayes1 of test_mllearn_numpy.py > ----------------------------------------------------------------------- > > Key: SYSTEMML-1474 > URL: https://issues.apache.org/jira/browse/SYSTEMML-1474 > Project: SystemML > Issue Type: Bug > Reporter: Glenn Weidner > Assignee: Niketan Pansare > Priority: Minor > Fix For: SystemML 0.14 > > > The following error was observed running the python tests from command line with spark-submit: > {code} > ====================================================================== > ERROR: test_naive_bayes1 (__main__.TestMLLearn) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "/home/spark/test_mllearn_numpy.py", line 184, in test_naive_bayes1 > mllearn_predicted = nb.fit(vectors, newsgroups_train.target).predict(vectors_test) > File "/usr/lib/python2.7/site-packages/systemml/mllearn/estimators.py", line 142, in fit > self.fit_numpy(X, y) > File "/usr/lib/python2.7/site-packages/systemml/mllearn/estimators.py", line 95, in fit_numpy > self._fit_numpy() > File "/usr/lib/python2.7/site-packages/systemml/mllearn/estimators.py", line 88, in _fit_numpy > self.model = self.estimator.fit(convertToMatrixBlock(self.sc, self.X), y_mb) > File "/usr/lib/python2.7/site-packages/systemml/converters.py", line 106, in convertToMatrixBlock > [ _copyRowBlock(i, sc, ret, src, numRowsPerBlock, rlen, clen) for i in range(0, src.shape[0], numRowsPerBlock) ] > File "/usr/lib/python2.7/site-packages/systemml/converters.py", line 83, in _copyRowBlock > mb = _convertSPMatrixToMB(sc, src[i:i+numRowsPerBlock,]) if isinstance(src, spmatrix) else _convertDenseMatrixToMB(sc, src[i:i+numRowsPerBlock,]) > File "/usr/lib64/python2.7/site-packages/scipy/sparse/csr.py", line 304, in __getitem__ > return self._get_submatrix(row, col) > File "/usr/lib64/python2.7/site-packages/scipy/sparse/csr.py", line 447, in _get_submatrix > check_bounds(i0, i1, M) > File "/usr/lib64/python2.7/site-packages/scipy/sparse/csr.py", line 443, in check_bounds > " %d <= %d" % (i0, num, i1, num, i0, i1)) > IndexError: index out of bounds: 0 <= 2030 <= 2034, 0 <= 2059 <= 2034, 2030 <= 2059 > {code} > The IndexError was first observed when running the test under a Notebook cloud environment with Spark 2.0.2, then reproduced at command line on local system with Spark 2.1. -- This message was sent by Atlassian JIRA (v6.3.15#6346)