Return-Path: X-Original-To: apmail-commons-dev-archive@www.apache.org Delivered-To: apmail-commons-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 625777C45 for ; Thu, 8 Sep 2011 15:22:41 +0000 (UTC) Received: (qmail 25021 invoked by uid 500); 8 Sep 2011 15:22:40 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 24932 invoked by uid 500); 8 Sep 2011 15:22:40 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 24924 invoked by uid 99); 8 Sep 2011 15:22:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Sep 2011 15:22:39 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [193.74.71.28] (HELO sif.is.scarlet.be) (193.74.71.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Sep 2011 15:22:33 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=scarlet.be; s=scarlet; t=1315495331; bh=Ggm1IjntIfmKsWN6m39BCo+1z5EgPHlYNIUZAa3Ba5Q=; h=Date:From:To:Subject:Message-ID:References:MIME-Version: Content-Type:In-Reply-To; b=ArAV1dDEfkvGvJc/Hgh7pOL0lcRY9wrMPEDWa6Rm+g0GmaKMlBC1PEK/YZOUri02X I8x2/K0/dX1tyObTgvp71RlkODqHk6Lp5cxRjMZIL8ATPzs0gj+PaVJG9fA4jnYJrD BabgbIUBMTrU54kVjD68J17iiovj9rclgNownq3s= Received: from mail.harfang.homelinux.org (ip-213-49-251-112.dsl.scarlet.be [213.49.251.112]) by sif.is.scarlet.be (8.14.5/8.14.5) with ESMTP id p88FMAF5009596 for ; Thu, 8 Sep 2011 17:22:11 +0200 X-Scarlet: d=1315495331 c=213.49.251.112 Received: from localhost (mail.harfang.homelinux.org [192.168.20.11]) by mail.harfang.homelinux.org (Postfix) with ESMTP id BCFDD61CEE for ; Thu, 8 Sep 2011 17:22:10 +0200 (CEST) Received: from mail.harfang.homelinux.org ([192.168.20.11]) by localhost (mail.harfang.homelinux.org [192.168.20.11]) (amavisd-new, port 10024) with ESMTP id XE+vW45vhmel for ; Thu, 8 Sep 2011 17:22:04 +0200 (CEST) Received: from dusk.harfang.homelinux.org (mail.harfang.homelinux.org [192.168.20.11]) by mail.harfang.homelinux.org (Postfix) with ESMTP id EF08961755 for ; Thu, 8 Sep 2011 17:22:04 +0200 (CEST) Received: from eran by dusk.harfang.homelinux.org with local (Exim 4.76) (envelope-from ) id 1R1gQW-0007Y8-Ns for dev@commons.apache.org; Thu, 08 Sep 2011 17:22:04 +0200 Date: Thu, 8 Sep 2011 17:22:04 +0200 From: Gilles Sadowski To: dev@commons.apache.org Subject: Re: [Math] "LUDecomposition" in "AbstractLeastSquaresOptimizer" Message-ID: <20110908152204.GC19625@dusk.harfang.homelinux.org> Mail-Followup-To: dev@commons.apache.org References: <20110907104543.GR2590@dusk.harfang.homelinux.org> <4E6767C3.1060103@free.fr> <20110907130559.GV2590@dusk.harfang.homelinux.org> <4E676DB3.7080905@free.fr> <20110907133412.GW2590@dusk.harfang.homelinux.org> <4E686B88.8090202@gmail.com> <20110908140918.GB19625@dusk.harfang.homelinux.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: Tiny Tux X-PGP-Key-Fingerprint: 53B9 972E C2E6 B93C BEAD 7092 09E6 AF46 51D0 5641 User-Agent: Mutt/1.5.21 (2010-09-15) X-DCC-scarlet.be-Metrics: sif 20002; Body=1 Fuz1=1 Fuz2=1 X-Virus-Scanned: clamav-milter 0.97.1-exp at sif X-Virus-Status: Clean On Thu, Sep 08, 2011 at 09:49:12AM -0500, Greg Sterijevski wrote: > Cholesky, in my opinion, is not robust as you have discovered. When it > encounters a non-psd matrix it gives up. Maybe that is the correct course of > action, but I still think that when you are using the getCovariance to > estimate the curvature in the neighborhood of a point it would be okay to > take the generalized inverse and not worry too much about why your matrix is > bordering on non-PSDness... If your optimization stops on that point, that > is another story and should be flagged. > In fact, in my current case (which is a unit test), the point is supposed to be the minimum, by construction. I'm trying to figure out where the problem comes from (namely, whether the Jacobian matrix is correct)... Gilles > > > A possibly more robust option here is to use Cholesky decomposition, > > > which is known to be stable for symmetric positive definite > > > matrices, which the covariance matrix being inverted here should > > > be. The exceptions thrown will be different; but they will give > > > more specific information about what is wrong with the covariance > > > matrix. > > > > I've tried it with my problem, and it also throws an exception. > > However, I would like to obtain the covariance matrix anyway, because I've > > no other clue as to what might be wrong. > > So I think that, at least, users should be able to set the positive > > definiteness threshold in order to avoid raising an exception. > > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org