Return-Path: X-Original-To: apmail-hama-user-archive@www.apache.org Delivered-To: apmail-hama-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 49BE895BD for ; Thu, 25 Oct 2012 07:23:47 +0000 (UTC) Received: (qmail 19773 invoked by uid 500); 25 Oct 2012 07:23:47 -0000 Delivered-To: apmail-hama-user-archive@hama.apache.org Received: (qmail 19497 invoked by uid 500); 25 Oct 2012 07:23:42 -0000 Mailing-List: contact user-help@hama.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hama.apache.org Delivered-To: mailing list user@hama.apache.org Received: (qmail 19467 invoked by uid 99); 25 Oct 2012 07:23:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Oct 2012 07:23:40 +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 sandy.dingxin@gmail.com designates 209.85.216.175 as permitted sender) Received: from [209.85.216.175] (HELO mail-qc0-f175.google.com) (209.85.216.175) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Oct 2012 07:23:32 +0000 Received: by mail-qc0-f175.google.com with SMTP id j3so599047qcs.34 for ; Thu, 25 Oct 2012 00:23:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=m0Sim4r0dluxkiR5Is04DHLpHWwrHBSnUTPQALzkS7M=; b=whlXFqiHO6updEJbR9ALetWBm9NnQvDhbiJU0kFvOpnOrP3/tHFcHSg4Ehv+RXMWbE OaHMiCID09wA8lqXNvCZxoBEPV4iX7s1IVQ0iRWgn8awezqxzJ7NEDoEndw8bgYadXGY 3Hjovgl7Z2VmjannhpqXWeL03rNvik1JYVnJIFSObNu56CvW/v/D5ssJwSI/SQOGUXgI 6Rw8MaopXf1CH3qgDQ0iI0oFR/VH1P3ED6pGUzauth3hpWyq0jy6OJn/boL9glM3SRdd j852v+7EPPcaCkE3y6ZYVYfkPrL8TzlpuGeUX8ZvrFAeK+VU2zUNzVKDLqetNoSSiTzk UBng== MIME-Version: 1.0 Received: by 10.224.53.18 with SMTP id k18mr8746732qag.1.1351149791873; Thu, 25 Oct 2012 00:23:11 -0700 (PDT) Received: by 10.49.35.235 with HTTP; Thu, 25 Oct 2012 00:23:11 -0700 (PDT) Date: Thu, 25 Oct 2012 15:23:11 +0800 Message-ID: Subject: How is the globalError computed in pagerank? From: Sandy Ding To: user@hama.apache.org Content-Type: multipart/alternative; boundary=20cf3074b3e0620ad104ccdd1324 X-Virus-Checked: Checked by ClamAV on apache.org --20cf3074b3e0620ad104ccdd1324 Content-Type: text/plain; charset=UTF-8 Hi, all When I checked the source code, I am confused about how the globa error of pagerank is calculated. It seems to me that in bsp() (GraphJobRunner.java), after each vertex is computed, first aggregate(vertex, vertex.getValue()) is called, then aggregate(vertex, lastValue, vertex.getValue()) is also called. if (aggregators != null) { 283 if (this.aggregators != null) { 284 for (int i = 0; i < this.aggregators.length; i++) { 285 Aggregator> aggregator = this.aggregators[i]; 286 aggregator.aggregate(vertex, vertex.getValue()); 287 if (isAbstractAggregator[i]) { 288 AbstractAggregator> intern = ((AbstractAggregator>) aggregator); 289 intern.aggregate(vertex, lastValue, vertex.getValue()); 290 intern.aggregateInternal(); 291 } 292 } 293 } 294 } This means that both the vertex value and the difference will be added to compute the global error. But I think intuitively only the difference should be accumulated. So what's the consideration? Or do I have some misunderstandings? Best Sandy --20cf3074b3e0620ad104ccdd1324--