From user-return-13288-apmail-mahout-user-archive=mahout.apache.org@mahout.apache.org Sat May 5 18:28:44 2012 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 E6582C183 for ; Sat, 5 May 2012 18:28:43 +0000 (UTC) Received: (qmail 47533 invoked by uid 500); 5 May 2012 18:28:42 -0000 Delivered-To: apmail-mahout-user-archive@mahout.apache.org Received: (qmail 47482 invoked by uid 500); 5 May 2012 18:28:42 -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 47474 invoked by uid 99); 5 May 2012 18:28:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 May 2012 18:28:42 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ted.dunning@gmail.com designates 209.85.214.170 as permitted sender) Received: from [209.85.214.170] (HELO mail-ob0-f170.google.com) (209.85.214.170) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 May 2012 18:28:36 +0000 Received: by obbuo13 with SMTP id uo13so12011831obb.1 for ; Sat, 05 May 2012 11:28:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=MA3ooi59O5RLfLsO5mlmhRqLVdJVjMlaNVLijEaWyTE=; b=Kyt1Z33WHulF4A98CLc7XHxCsPWIDDKSqix/u9/0178nanzbTLGGaom9HUprWEfxAq MaC0s9MAjpzuwuILdcpeMR8I2qTRPlnjdG4Meam/orQ3Y2MIqN8dVX3tetDR47hA5gf6 RJQ0WodNOzyi13uAcoH1N/uAtsKv7p2JL7nzH7gwqcfvWvRMji8X3nh12j+FCtDxV7+R MtOYPyw69vZzFO4hUsOz2lg3sUsQRveG6oSP+XNIBpWCjoK9hNcC2p0T3uAdFCliyS5r 3kB2Pt5OK8Q9PX5oAipc10kYbw1TtqN4ZaKxjCRallakiK2Rbgr6hgqsrAcoumle5TmH Jhzw== Received: by 10.60.13.196 with SMTP id j4mr801985oec.14.1336242495042; Sat, 05 May 2012 11:28:15 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.166.100 with HTTP; Sat, 5 May 2012 11:27:44 -0700 (PDT) In-Reply-To: References: From: Ted Dunning Date: Sat, 5 May 2012 11:27:44 -0700 Message-ID: Subject: Re: SGD cold start and model persistence questions To: user@mahout.apache.org Content-Type: multipart/alternative; boundary=e89a8ff253d44034d704bf4e33e3 --e89a8ff253d44034d704bf4e33e3 Content-Type: text/plain; charset=UTF-8 On Sat, May 5, 2012 at 12:06 AM, hao wang wrote: > > 1) is there anyway we can dump the weights of the features from a > trained-model? > Yes. Use the model dissector or just grab the weights out of the model. You can also access the weights matrix directly using getBeta() > 2) in terms of the cold start, is there anyway we can apply the prior > probability to the classifier? > A bi-exponential prior is built-in. You can set the weights by using getBeta().assign(newValues). Unless you set the learning weight decay to be slower than usual, however, this may not have much effect. This initialization is very different from a prior distribution, though. If you could say more about your goals, we could comment better. --e89a8ff253d44034d704bf4e33e3--