Return-Path: Delivered-To: apmail-hadoop-common-user-archive@www.apache.org Received: (qmail 48191 invoked from network); 4 Feb 2010 10:56:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Feb 2010 10:56:42 -0000 Received: (qmail 64627 invoked by uid 500); 4 Feb 2010 10:56:40 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 64561 invoked by uid 500); 4 Feb 2010 10:56:39 -0000 Mailing-List: contact common-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-user@hadoop.apache.org Delivered-To: mailing list common-user@hadoop.apache.org Received: (qmail 64551 invoked by uid 99); 4 Feb 2010 10:56:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Feb 2010 10:56:39 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [68.142.207.95] (HELO web31915.mail.mud.yahoo.com) (68.142.207.95) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 04 Feb 2010 10:56:30 +0000 Received: (qmail 93286 invoked by uid 60001); 4 Feb 2010 10:56:08 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1265280968; bh=Qi4COH1j6CptwjfiecOZJkq28zZXTKpXmQxAtm0Eq1A=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=chbwY075Sn+v2iknD5k4kxsieKrZ/NgovU3EPiQk1DAgYyV/36lefmHhknMaqfwqoIpNkEwVqXn2rcEN3vBDlC+ntjbCYNBLxdC5NgE4C3h9sG/SkhXa5sv3pb9NIMkalxolz42pIEKgHoWVzSbJVYulPiKJ6DG/204KVfHVAzo= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=VUnIUEaWI5H94m1OungfQ8c570Sq6jCcGq9eI9xgaqA2mN8xQ3ahvTNd/tFQE77yfre+K5HDtsDxS+NCVPbPmHTH624jII4j5EeWoHJ9SvoOrPOYGM+sc6OnLmxLUveLeSslwVqEJFA3cey+icX072EF3jnV8cvmAOqbOJ7Eazg=; Message-ID: <594058.92299.qm@web31915.mail.mud.yahoo.com> X-YMail-OSG: osnfABkVM1lC0P8pUkzJSUfWqHOezb21oERwPvSShBqPB4W 0RPt6ZqSJPWu.Yf0UiLj6yVhDT8zpxz2clnB9fREtkbWCth7F40B45OqqVWI KhfVn84msstg7T1cxcTed1nMfJ_2mRWTOyR1bwrAwkIIt.V3s9vGWO5MhCIQ FxtKscGPqZ0WwfVwGkCRJnsD2Kltd5ZKMq7ujB5BRkLxQ3wKcUcVJ77AV0KB RsRXQx692MaNGn8novA.YXsptoH1nDtstRSIuX.p9HSJYXTgaq45vdNeYwDw _Mm6pq2HOnZAWb9uUUHV_f_T_gxcGyZ71p6Ca6yqcpPl04GvUmNuRn0eStFB elI.BijKJwvUvuaMSpUKkhNHiDNCPFmQ76K43ki4p_6w8NFGIiYPNlRf_MhY UfehFSc35IoD18dIpF9sdgZkw9iAS8fU3KTrYfZ4NGrilL.ab29TQzi5DBVJ pu4tnvkpggAsLXBn_CiMjPFG5I085l5Qt9_xjhwvEKh8UUs4XBb.ln56X.sj OEx7ZHTbKCYq7KA1J2tEG2ldRPGCwzMaGrym_fhU0D90aYjkNL_ge.C2ZP9k DQXHiuj4XgneqVez4_XRKM_6pTXaGXioZ.BGkVciDLKQecUHz4i8KFg5vSYm z5ukL_1pAS8bk4BvAWU92ZlZDPr1IL1BRZLgqbClADGeHfzM58MUS6OvkgCV bzyZW7K9JcPuTiPoFqfk4DbUlY9H.o1Y7BlrFhhnyh51B4ACWw_5Z2qfu0Bv BmuONcfP6U8K4l8X00X81o85f2DzX Received: from [134.225.187.46] by web31915.mail.mud.yahoo.com via HTTP; Thu, 04 Feb 2010 02:56:08 PST X-Mailer: YahooMailRC/300.3 YahooMailWebService/0.8.101.265892 References: <13685.1265255859@buffalo.edu> Date: Thu, 4 Feb 2010 02:56:08 -0800 (PST) From: Tran Son Subject: Re: Re: Inverse of a matrix using Map - Reduce To: common-user@hadoop.apache.org, aa225@buffalo.edu, Ganesh Swami In-Reply-To: <13685.1265255859@buffalo.edu> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-788796987-1265280968=:92299" --0-788796987-1265280968=:92299 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi,=0AAs far as i know, inversion of matrix need a lot of loops which are n= ot supported well in Hadoop MapRed. Hadoop MapRed is working well with bloc= k algorithms, especially for simple operations such are addition, transposi= tion and possibly multiplication. However, with inversion, there is no (as = I search up to now) algorithms support blocking, i mean working in each sma= ll parts of matrix and combine to final result. There are several algorithm= s such as Gaussian (as you said) or Csanky, but i think you will need more = conplex implementation with ChainMapper/ChainReducer and/or using multiple = contrained job.=0AHowever, I think it does not effective much and convenien= t. So I am developing another version of Map Reduce which support staging o= f Reducer: 1 job =3D Mapper Reducer*. I test it with Csanky algorithm and i= t work quite well but I'm still on the way to improve the scheduling mechan= ism.=0A=0A=0A=0A=0A=0A________________________________=0AFrom: "aa225@buffa= lo.edu" =0ATo: common-user@hadoop.apache.org; aa225@buff= alo.edu; Ganesh Swami =0ASent: Thursday, February 4, = 2010 3:57:39=0ASubject: Re: Re: Inverse of a matrix using Map - Reduce=0A= =0AHi,=0A Any idea how this method will scale for dense matrices ?The kin= d of matrices I=0Aam going to be working with are 500,000*500,000. Will thi= s be a problem. Also=0Ahave you used this patch ?=0A=0ABest Regards from Bu= ffalo=0A=0AAbhishek Agrawal=0A=0ASUNY- Buffalo=0A(716-435-7122)=0A=0AOn Wed= 02/03/10 1:41 AM , Ganesh Swami ganesh@iamganesh.com sent:=0A> What about= the Moore-Penrose inverse?=0A> =0A> http://en.wikipedia.org/wiki/Moore-Pen= rose_pseudoinverse=0A> =0A> The pseudo-inverse coincides with the regular i= nverse when the matrix=0A> is non-singular. Moreover, it can be computed us= ing the SVD.=0A> =0A> Here's a patch for a MapReduce version of the SVD:=0A= > https://issues.apache.org/jira/browse/MAHOUT-180=0A> Ganesh=0A> =0A> On T= ue, Feb 2, 2010 at 10:11 PM, lo.edu> wrote:> Hello People= ,=0A> > =C2 =C2 =C2 =0A> =C2 =C2 =C2 My name is Abhishek Agrawal. For= =0A> the last few days I have been trying> to figure out how to calculate t= he=0Ainverse of a=0A> matrix using Map Reduce. Matrix> inversion has 2 comm= on approaches. Gaussian-=0A> Jordan and the cofactor of transpose> method. = But both of them dont seem to be=0Asuited=0A> too well for Map- Reduce.> Ga= ussian Jordan involves blocking co factoring a=0A> matrix requires repeated= > calculation of determinant.=0A> >=0A> > Can some one give me any pointers= so as to how=0A> to solve this problem ?>=0A> > Best Regards from Buffalo= =0A> >=0A> > Abhishek Agrawal=0A> >=0A> > SUNY- Buffalo=0A> > (716-435-7122= )=0A> >=0A> >=0A> >=0A> >=0A> =0A> =0A> =0A> =0A> =0A=0A=0A New Email = names for you! =0AGet the Email name you've always wanted on the new @y= mail and @rocketmail. =0AHurry before someone else does!=0Ahttp://mail.prom= otions.yahoo.com/newdomains/aa/ --0-788796987-1265280968=:92299--