[math]

2013-02-27 Thread Glautier S.P.
Dear list, I'd be grateful for any help on the following:

I am using the CMAESOptimizer in the java commons.math3 library to generate a 
best fit for a model of learning to some experimental data. When I take the 
best parameters generated by the optimisation and plug them into the model, the 
fit between the model and the data doesn't match that which I expect on the 
basis of the optimisation output. In the cases I have checked the optimiser 
output best fit (the value part of the PointValuePair that comes at the end of 
the optimisation) is slightly larger than the value I get when I run the model 
using the parameters from the optimiser output (the point part of the 
PointValuePair that comes at the end of the optimisation).

I have spent quite a long time checking my code and I can't find what the 
problem is but it occurred to me that there might be something about the 
optimisation output that I haven't understood properly. Am I correct to 
assuming that the parameters produced at the end of the optimisation are those 
that produced the associated best fit value?


Thanks, Steve.


__
Dr. Steven Glautier,
School of Psychology,
Southampton University,
Southampton, SO17 1BJ, UK.
(+44) 023-8059-2589
Home page: http://www.southampton.ac.uk/psychology/about/staff/spg.page
Research participation online: http://www.virtualpsyclab.net/



Re: [math]

2013-02-27 Thread Gilles

Hello.

On Wed, 27 Feb 2013 12:23:44 +, Glautier S.P. wrote:

Dear list, I'd be grateful for any help on the following:

I am using the CMAESOptimizer in the java commons.math3 library to
generate a best fit for a model of learning to some experimental 
data.
When I take the best parameters generated by the optimisation and 
plug

them into the model, the fit between the model and the data doesn't
match that which I expect on the basis of the optimisation output. In
the cases I have checked the optimiser output best fit (the value 
part

of the PointValuePair that comes at the end of the optimisation) is
slightly larger than the value I get when I run the model using the
parameters from the optimiser output (the point part of the
PointValuePair that comes at the end of the optimisation).

I have spent quite a long time checking my code and I can't find what
the problem is but it occurred to me that there might be something
about the optimisation output that I haven't understood properly. Am 
I

correct to assuming that the parameters produced at the end of the
optimisation are those that produced the associated best fit value?


Yes, that should be so.

Which version of Commons Math are you using?

[To figure out what could have happened, it would be easier to have the
actual numbers for the parameters and associated cost and the function
to be optimized (minimized or maximized?).]


Best regards,
Gilles


-
To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org



Class org.apache.commons.logging.impl.SimpleLog does not implement Log

2013-02-27 Thread Schuetz, Paul (EXTERN: DOS)
Hello,

I am trying to get up and running a simple application under an IBM WAS 8.0. My 
application consist of an simple jsf file and a bean used as an actionlistener 
for a button inside the jsf.
On pushing the button the bean should just log using commons-logging. I am 
using WAS 8.0 own adaptation of myfaces and commons-logging. The complete stack 
trace as it is:

[2/27/13 14:46:12:644 CET] 0008 AbstractFaces E   An error occured while 
initializing MyFaces: org.apache.commons.logging.LogConfigurationException: 
org.apache.commons.logging.LogConfigurationException: Class 
org.apache.commons.logging.impl.SimpleLog does not implement Log
 
org.apache.commons.logging.LogConfigurationException: 
org.apache.commons.logging.LogConfigurationException: 
org.apache.commons.logging.LogConfigurationException: Class 
org.apache.commons.logging.impl.SimpleLog does not implement Log
at 
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:532)
at 
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:272)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:414)
at org.apache.commons.digester.Digester.init(Digester.java:308)
at 
org.apache.myfaces.config.impl.digester.DigesterFacesConfigUnmarshallerImpl.init(DigesterFacesConfigUnmarshallerImpl.java:42)
at 
org.apache.myfaces.config.DefaultFacesConfigurationProvider.getUnmarshaller(DefaultFacesConfigurationProvider.java:93)
at 
org.apache.myfaces.config.DefaultFacesConfigurationProvider.getStandardFacesConfig(DefaultFacesConfigurationProvider.java:131)
at 
org.apache.myfaces.config.DefaultFacesConfigurationMerger.getFacesConfigData(DefaultFacesConfigurationMerger.java:69)
at 
org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:456)
at 
org.apache.myfaces.webapp.AbstractFacesInitializer.buildConfiguration(AbstractFacesInitializer.java:313)
at 
org.apache.myfaces.webapp.Jsp21FacesInitializer.initContainerIntegration(Jsp21FacesInitializer.java:73)
at 
org.apache.myfaces.webapp.AbstractFacesInitializer.initFaces(AbstractFacesInitializer.java:136)
at 
org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:111)
at 
com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:1680)
at 
com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:410)
at 
com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:88)
at 
com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:169)
at 
com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:749)
at 
com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:634)
at 
com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:422)
at 
com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:714)
at 
com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1160)
at 
com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1369)
at 
com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:639)
at 
com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:967)
at 
com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:766)
at 
com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2153)
at 
com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:445)
at 
com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)
at 
com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:388)
at 
com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$500(CompositionUnitMgrImpl.java:116)
at 
com.ibm.ws.runtime.component.CompositionUnitMgrImpl$CUInitializer.run(CompositionUnitMgrImpl.java:994)
at 
com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:349)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1690)
Caused by: org.apache.commons.logging.LogConfigurationException: 
org.apache.commons.logging.LogConfigurationException: Class 
org.apache.commons.logging.impl.SimpleLog does not implement Log
at 
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:416)
at 
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:525)
... 33 more
Caused by: org.apache.commons.logging.LogConfigurationException: Class 
org.apache.commons.logging.impl.SimpleLog does not implement Log
at 

Re: Class org.apache.commons.logging.impl.SimpleLog does not implement Log

2013-02-27 Thread Thomas Neidhart
On Wed, Feb 27, 2013 at 3:08 PM, Schuetz, Paul (EXTERN: DOS) 
extern.paul.schu...@volkswagen.de wrote:

 Hello,

 I am trying to get up and running a simple application under an IBM WAS
 8.0. My application consist of an simple jsf file and a bean used as an
 actionlistener for a button inside the jsf.
 On pushing the button the bean should just log using commons-logging. I am
 using WAS 8.0 own adaptation of myfaces and commons-logging. The complete
 stack trace as it is:

 [2/27/13 14:46:12:644 CET] 0008 AbstractFaces E   An error occured
 while initializing MyFaces:
 org.apache.commons.logging.LogConfigurationException:
 org.apache.commons.logging.LogConfigurationException: Class
 org.apache.commons.logging.impl.SimpleLog does not implement Log

  org.apache.commons.logging.LogConfigurationException:
 org.apache.commons.logging.LogConfigurationException:
 org.apache.commons.logging.LogConfigurationException: Class
 org.apache.commons.logging.impl.SimpleLog does not implement Log
 at
 org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:532)
 at
 org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:272)
 at
 org.apache.commons.logging.LogFactory.getLog(LogFactory.java:414)
 at org.apache.commons.digester.Digester.init(Digester.java:308)
 at
 org.apache.myfaces.config.impl.digester.DigesterFacesConfigUnmarshallerImpl.init(DigesterFacesConfigUnmarshallerImpl.java:42)
 at
 org.apache.myfaces.config.DefaultFacesConfigurationProvider.getUnmarshaller(DefaultFacesConfigurationProvider.java:93)
 at
 org.apache.myfaces.config.DefaultFacesConfigurationProvider.getStandardFacesConfig(DefaultFacesConfigurationProvider.java:131)
 at
 org.apache.myfaces.config.DefaultFacesConfigurationMerger.getFacesConfigData(DefaultFacesConfigurationMerger.java:69)
 at
 org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:456)
 at
 org.apache.myfaces.webapp.AbstractFacesInitializer.buildConfiguration(AbstractFacesInitializer.java:313)
 at
 org.apache.myfaces.webapp.Jsp21FacesInitializer.initContainerIntegration(Jsp21FacesInitializer.java:73)
 at
 org.apache.myfaces.webapp.AbstractFacesInitializer.initFaces(AbstractFacesInitializer.java:136)
 at
 org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:111)
 at
 com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:1680)
 at
 com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:410)
 at
 com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:88)
 at
 com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:169)
 at
 com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:749)
 at
 com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:634)
 at
 com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:422)
 at
 com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:714)
 at
 com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1160)
 at
 com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1369)
 at
 com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:639)
 at
 com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:967)
 at
 com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:766)
 at
 com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2153)
 at
 com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:445)
 at
 com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)
 at
 com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:388)
 at
 com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$500(CompositionUnitMgrImpl.java:116)
 at
 com.ibm.ws.runtime.component.CompositionUnitMgrImpl$CUInitializer.run(CompositionUnitMgrImpl.java:994)
 at
 com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:349)
 at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1690)
 Caused by: org.apache.commons.logging.LogConfigurationException:
 org.apache.commons.logging.LogConfigurationException: Class
 org.apache.commons.logging.impl.SimpleLog does not implement Log
 at
 org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:416)
 at
 org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:525)
 ... 33 more
 Caused by: 

Installing

2013-02-27 Thread Adam Tong
Hi,

I am trying to install jsvc. I downloaded the bin of commons
(commons-daemon-1.0.13-bin.tar.gz) from
http://commons.apache.org/proper/commons-daemon//download_daemon.cgi.

After extraction I can't find the configure script that is mentioned
in this page http://commons.apache.org/proper/commons-daemon//jsvc.html
section Building from a release tarball.

Am I missing some step?

By the way can you tell me if jsvc will allow me at the end to run a
java a program as a Daemon whose commands I can simply configure in
/etc/init.d under ubuntu?

Thank you

-
To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org



Re: Class org.apache.commons.logging.impl.SimpleLog does not implement Log

2013-02-27 Thread Jörg Schaible
Hi Paul,

Schuetz, Paul (EXTERN: DOS) wrote:

 Hello,
 
 I am trying to get up and running a simple application under an IBM WAS
 8.0. My application consist of an simple jsf file and a bean used as an
 actionlistener for a button inside the jsf. On pushing the button the bean
 should just log using commons-logging. I am using WAS 8.0 own adaptation
 of myfaces and commons-logging. The complete stack trace as it is:
 
 [2/27/13 14:46:12:644 CET] 0008 AbstractFaces E   An error occured
 [while initializing MyFaces:
 [org.apache.commons.logging.LogConfigurationException:
 [org.apache.commons.logging.LogConfigurationException: Class
 [org.apache.commons.logging.impl.SimpleLog does not implement Log

[snip]

This is unfortunately a typical sign, that the app server itself has 
commons-logging in its system classpath and another one is somewhere in your 
EAR/WAR. WHat happens if you do *not* provide commons-logging?

- Jörg


-
To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org



Re: Installing

2013-02-27 Thread Ian Emmons
The command

   tar -tf commons-daemon-1.0.13-src.tar.gz | grep configure

yields the following result:

   commons-daemon-1.0.13-src/src/native/unix/configure


On Feb 27, 2013, at 12:07 PM, Adam Tong adam.to...@gmail.com wrote:
 Hi,
 
 I am trying to install jsvc. I downloaded the bin of commons
 (commons-daemon-1.0.13-bin.tar.gz) from
 http://commons.apache.org/proper/commons-daemon//download_daemon.cgi.
 
 After extraction I can't find the configure script that is mentioned
 in this page http://commons.apache.org/proper/commons-daemon//jsvc.html
 section Building from a release tarball.
 
 Am I missing some step?
 
 By the way can you tell me if jsvc will allow me at the end to run a
 java a program as a Daemon whose commands I can simply configure in
 /etc/init.d under ubuntu?
 
 Thank you
 
 -
 To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
 For additional commands, e-mail: user-h...@commons.apache.org

-
To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org



Re: [daemon] Problems with Java 7 on MacOS

2013-02-27 Thread Mladen Turk

On 02/26/2013 08:47 PM, Ian Emmons wrote:

I am having trouble running commons daemon 1.0.13 on MacOS 10.8.2 with Java 7:


However, with Java 1.7 this folder does not exist.  Instead, jsvc should be 
trying to load this shared library:

$JAVA_HOME/jre/lib/server/libjvm.dylib

If I change JAVA_HOME to point to Apple's Java 1.6, then jsvc successfully 
finds the JVM shared library.  (See the attached console-1.6.txt.)



Yes, Apple made a real mess with 1.7 layout. There are actually few valid 
layouts
for 1.7 I have seen (not counting OpenJDK), so seems this is another one.
Please open Commons Daemon JIRA issue and I'll add that to the search path.

Regards
--
^TM

-
To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org