From dev-return-2889-archive-asf-public=cust-asf.ponee.io@singa.incubator.apache.org Wed Jun 5 11:16:09 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id EA98E18065D for ; Wed, 5 Jun 2019 13:16:08 +0200 (CEST) Received: (qmail 54715 invoked by uid 500); 5 Jun 2019 11:16:08 -0000 Mailing-List: contact dev-help@singa.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@singa.incubator.apache.org Delivered-To: mailing list dev@singa.incubator.apache.org Received: (qmail 54705 invoked by uid 99); 5 Jun 2019 11:16:08 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Jun 2019 11:16:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id B1CD91A45DC for ; Wed, 5 Jun 2019 11:16:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -113 X-Spam-Level: X-Spam-Status: No, score=-113 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_HI=-5, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id o4Q7PQC2Z0uT for ; Wed, 5 Jun 2019 11:16:06 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id B52255F415 for ; Wed, 5 Jun 2019 11:16:05 +0000 (UTC) Received: (qmail 54480 invoked by uid 99); 5 Jun 2019 11:16:02 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Jun 2019 11:16:02 +0000 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 CAC5DE2D1E for ; Wed, 5 Jun 2019 11:16:00 +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 5D7C52459F for ; Wed, 5 Jun 2019 11:16:00 +0000 (UTC) Date: Wed, 5 Jun 2019 11:16:00 +0000 (UTC) From: "Moaz Reyad (JIRA)" To: dev@singa.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Issue Comment Deleted] (SINGA-445) can not run Singa module example MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SINGA-445?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:all-tabpanel ] Moaz Reyad updated SINGA-445: ----------------------------- Comment: was deleted (was: I think the [Three most important unfinished issues to address before= graduating |https://cwiki.apache.org/confluence/display/INCUBATOR/June2019= #three-most-important-unfinished-issues-to-address-before-graduating-18] se= ction should contain issues related to graduating from the incubator and no= t general issues like website update and rafiki integration. These general = issues do not block the graduation and they are independent from the gradua= tion tasks. The most important issues to address before graduation (in my opinion) are: 1. [Choosing the project PMC chair|https://lists.apache.org/thread.html/ce= 3c626d22ecf520d73cd5add269cf1993f1d253dd6f6ce13446d44b@%3Cprivate.singa.apa= che.org%3E]. 2. Finalize the [Graduation Resolution|https://cwiki.apache.org/confluence= /display/SINGA/Graduation+Resolution]. Missing parts are marked in red. 3. [Discuss|https://lists.apache.org/thread.html/dc37e2c7614f0f7f0f91d0451= ddeff1d253b1d05bfeb3c4797fefa0e@%3Cdev.singa.apache.org%3E] and Vote with m= entors and team members on the mail list if there is any other missing issu= e before graduation.) > can not run Singa module example > -------------------------------- > > Key: SINGA-445 > URL: https://issues.apache.org/jira/browse/SINGA-445 > Project: Singa > Issue Type: Bug > Components: Documentation > Environment: - Ubuntu 18.10 > - python 3.6 > Reporter: thao p nguyen > Priority: Critical > > Following the latest Singa documentation's examples on running modules, b= elow error was found=C2=A0 for running module Metric: > >>> from singa import tensor > >>> from singa import metric > >>> x =3D tensor.Tensor((3, 5)) > >>> x.uniform(0, 1) # randomly generate the prediction activation > >>> x =3D tensor.SoftMax # normalize the prediction into probabilities > Traceback (most recent call last): > File "", line 1, in > AttributeError: module 'singa.tensor' has no attribute 'SoftMax' > >>> y =3D tensor.from_numpy(np.array([0, 1, 3], dtype=3Dnp.int)) # set th= e truth > Traceback (most recent call last): > File "", line 1, in > NameError: name 'np' is not defined > >>> > >>> f =3D metric.Accuracy() > >>> acc =3D f.evaluate(x, y) # averaged accuracy over all 3 samples in x > =C2=A0 -- This message was sent by Atlassian JIRA (v7.6.3#76005)