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 9AFEF9A54 for ; Sat, 2 Jun 2012 07:20:21 +0000 (UTC) Received: (qmail 63410 invoked by uid 500); 2 Jun 2012 07:20:19 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 62912 invoked by uid 500); 2 Jun 2012 07:20:15 -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 62828 invoked by uid 99); 2 Jun 2012 07:20:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Jun 2012 07:20:11 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [80.67.169.19] (HELO solo.fdn.fr) (80.67.169.19) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Jun 2012 07:20:03 +0000 Received: from lehrin.spaceroots.org (smtp.spaceroots.org [80.67.176.229]) by smtp.fdn.fr (Postfix) with ESMTP id 22D2C44155 for ; Sat, 2 Jun 2012 09:19:42 +0200 (CEST) Received: from [127.0.0.1] (lehrin.spaceroots.org [127.0.0.1]) by lehrin.spaceroots.org (Postfix) with ESMTP id A28EF5F414 for ; Sat, 2 Jun 2012 09:19:41 +0200 (CEST) Message-ID: <4FC9BE8D.9060002@free.fr> Date: Sat, 02 Jun 2012 09:19:41 +0200 From: Luc Maisonobe User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.4) Gecko/20120510 Icedove/10.0.4 MIME-Version: 1.0 To: Commons Developers List Subject: Re: [Math] About MATH-798 References: <20120601154334.GI32074@dusk.harfang.homelinux.org> <4FC8FA33.3020304@free.fr> <20120601235522.GH10938@dusk.harfang.homelinux.org> In-Reply-To: <20120601235522.GH10938@dusk.harfang.homelinux.org> X-Enigmail-Version: 1.4.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Le 02/06/2012 01:55, Gilles Sadowski a �crit : > Hello. Hi Gilles, > > Do you know the rationale behind the (very) small values for > DEFAULT_RELATIVE_THRESHOLD (set to 100 * Precision.EPSILON) > DEFAULT_ABSOLUTE_THRESHOLD (set to 100 * Precision.SAFE_MIN) > in "AbstractConvergenceChecker"? > [I created this class as part of a refactoring, but the values were carried > over from whatever class contained that functionality before.] > > With those values, the "GaussNewtonOptimizer" fails to find the solution but > if one changes the threshold to either > 1e3 * Precision.EPSILON (for the relative threshold) > or > 1e281 * Precision.SAFE_MIN (for the absolute threshold) > the solution is found in 4 evaluations! > > As I wrote on the user ML, the thresholds were too stringent. > Are the current values really suitable as defaults (in other part of the > library, similar defaults are much larger)? > [I even think that there shouldn't be any defaults, so that users are > actually aware that the thresholds are problem-dependent and sometimes even > optimizer-dependent. My preference would thus be to deprecate the default > constructor in all the checker classes.] I think I wrote the initial classes, and I picked the values from a domain-specific case. So from a general point of view, these values are probably worthless. OK for deprecating in 3.1 and suppressing the values in 4.0. Luc > > > Best regards, > Gilles > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org > For additional commands, e-mail: dev-help@commons.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org