Return-Path: X-Original-To: apmail-mahout-user-archive@www.apache.org Delivered-To: apmail-mahout-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6E89E6442 for ; Sun, 5 Jun 2011 05:39:43 +0000 (UTC) Received: (qmail 7933 invoked by uid 500); 5 Jun 2011 05:39:42 -0000 Delivered-To: apmail-mahout-user-archive@mahout.apache.org Received: (qmail 7753 invoked by uid 500); 5 Jun 2011 05:39:41 -0000 Mailing-List: contact user-help@mahout.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@mahout.apache.org Delivered-To: mailing list user@mahout.apache.org Received: (qmail 7281 invoked by uid 99); 5 Jun 2011 05:39:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Jun 2011 05:39:40 +0000 X-ASF-Spam-Status: No, hits=3.5 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of guxiaobo1982@gmail.com designates 209.85.160.42 as permitted sender) Received: from [209.85.160.42] (HELO mail-pw0-f42.google.com) (209.85.160.42) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Jun 2011 05:39:32 +0000 Received: by pwj3 with SMTP id 3so3181950pwj.1 for ; Sat, 04 Jun 2011 22:39:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:references:in-reply-to:subject:date :message-id:mime-version:content-type:content-transfer-encoding :x-mailer:thread-index:content-language; bh=g3RJFney4PwBqOUMj8PhC+qWw646WAJ+hWzo/ZlUFGI=; b=XQKOoYNL6ZP597kHYzoDjbuPR4RqqOvgsyad3c5fmHhbVDg7l3i3MJB6N8/7Z37jp5 vleXRDimGaHkLtTrOF+HhB3+Dh9zpFn/65bxvTkA3sSeEy2AXQxwO+aZjASmHg0a00yQ auxXcv+seV1sse4ios3s1fKdwiswZTbtvxoFs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:references:in-reply-to:subject:date:message-id :mime-version:content-type:content-transfer-encoding:x-mailer :thread-index:content-language; b=TWwFBwUb8fey/jHDV7sPZfxszsS9SsXx7Pej/Q9hRoKfPCIhWYuUjJsqdVD8mGjWyG z4Rn5tTTkCveI1HlbtdVB3WS6Qa6v4/TDLSOR6doClZeHv0jNzpefamCTxd/17XFT5aE 2fdTBIhi1pbgsAsQ+XKRs3UDPWWbKuu49J6HY= Received: by 10.142.165.13 with SMTP id n13mr565708wfe.123.1307252352019; Sat, 04 Jun 2011 22:39:12 -0700 (PDT) Received: from dellPC ([222.125.134.68]) by mx.google.com with ESMTPS id l10sm2195423wfk.9.2011.06.04.22.39.09 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 04 Jun 2011 22:39:11 -0700 (PDT) From: "XiaoboGu" To: Cc: References: <002001cc22cc$8815bae0$984130a0$@com> <5A840238-C258-47E7-AA4C-4FF13D3C01F8@gmail.com> In-Reply-To: <5A840238-C258-47E7-AA4C-4FF13D3C01F8@gmail.com> Subject: RE: How to get the predicted target lable using CrossFolderLearner? Date: Sun, 5 Jun 2011 13:39:01 +0800 Message-ID: <002801cc2342$e2b295b0$a817c110$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Acwi1JSxUXsuRgRRTb2ioX/hcTi5iQAbiEmg Content-Language: zh-cn classifyFull then vector maxIndex do the same thing, actually my = question is : How can I find the map between original target labels and the encoded = target codes? > -----Original Message----- > From: Hector Yee [mailto:hector.yee@gmail.com] > Sent: Sunday, June 05, 2011 12:40 AM > To: dev@mahout.apache.org > Cc: ; > Subject: Re: How to get the predicted target lable using = CrossFolderLearner? >=20 > You can use classifyFull and then vector maxIndex >=20 > Sent from my iPad >=20 > On Jun 4, 2011, at 8:31 AM, "XiaoboGu" wrote: >=20 > > Hi, > > When dealing with multinomial logistic regression with = CrossFolderLearner, the > Vector classfy(Vector) method returns a vector of scores for all the = target values, > Max( scores.max, 1 - scores.zSum) will return the max socre, according = to which we can > determine the predicted target value, which is encoded by the learner = internally, but where is > the map between original target labels and the encoded codes? > > > > Regards, > > > > Xiaobo Gu > >