Re: [Tutor] constructing semi-arbitrary functions

2014-02-19 Thread Oscar Benjamin
On 18 February 2014 17:59, Peter Otten <__pete...@web.de> wrote: > > I don't know if the OP may use it, but there seems to be a version of minuit > that allows to override the function signature: > > """ > forced_parameters: tell Minuit not to do function signature detection and > use this argument

Re: [Tutor] constructing semi-arbitrary functions

2014-02-19 Thread Dave Angel
On 02/19/2014 07:33 AM, Oscar Benjamin wrote: At the least I don't understand why it needs both the argument names and the number of arguments as independent quantities. Surely len(names) would be the number of arguments... Or am I missing something? In the standard library, the attributes a

Re: [Tutor] constructing semi-arbitrary functions

2014-02-19 Thread eryksun
On Wed, Feb 19, 2014 at 7:33 AM, Oscar Benjamin wrote: > I don't really understand why it works that way though. > Looking here > >http://iminuit.github.io/iminuit/api.html#function-sig-label This API is unusual, but co_argcount and co_varnames should be available and defined as per the spec:

[Tutor] How to write Sikuli scripts using Python in Eclipse (Pydev Environment.)

2014-02-19 Thread Nupur Goel
Hi, Could you please tell me how to write Sikuli scripts using Python in Eclipse (Pydev Environment.) For Example: I want to open Adobe Reader using Sikuli and wants to perform different action on it. I had already integrated Python in Eclipse and also provide path for Jython Interpreter. Plea

Re: [Tutor] How to write Sikuli scripts using Python in Eclipse (Pydev Environment.)

2014-02-19 Thread Alan Gauld
On 19/02/14 13:22, Nupur Goel wrote: Could you please tell me how to write *Sikuli* scripts using *Python in Eclipse (Pydev Environment.)* This list is for teaching the core Python language and its standard library. For support for third party libraries and tools you are usually better off a

Re: [Tutor] constructing semi-arbitrary functions

2014-02-19 Thread André Walker-Loud
Hi Oscar, >> Is there a benefit to this method vs a standard linear least squares? > > It's the same except that you're using an analytic solution rather > than a black box solver. OK. Interesting. I usually construct the analytic solution by just differentiating the chi^2, which sets up, I a

Re: [Tutor] constructing semi-arbitrary functions

2014-02-19 Thread André Walker-Loud
Hi eryksun, Indeed, I am using iminuit to interface with Minuit. That is where I am learning to make my own classes to set up my functions to pass into the minimizer. I also happened to get the string-hack to work (which requires using global variables). Instead of just copying (since it works)

Re: [Tutor] constructing semi-arbitrary functions

2014-02-19 Thread eryksun
On Wed, Feb 19, 2014 at 2:56 PM, "André Walker-Loud " wrote: > > I also happened to get the string-hack to work (which requires > using global variables). Functions load unassigned names from the global/builtins scopes, so there's no need to declare the g* variables global in chisq_mn. Also, impl

Re: [Tutor] constructing semi-arbitrary functions

2014-02-19 Thread André Walker-Loud
Hi eryksun, Thanks - this is great. Also, since you are chiming in, do you have an opinion in general about which approach you prefer? The string hacking vs class method (for lack of better way to describe them)? Cheers, Andre On Feb 19, 2014, at 4:56 PM, eryksun wrote: > On Wed, Feb 19

Re: [Tutor] How to write Sikuli scripts using Python in Eclipse (Pydev Environment.)

2014-02-19 Thread Alan Gauld
On 19/02/14 17:34, Alan Gauld wrote: Sikuli, Eclipse and Jython are all off topic for this list. Correcting myself. Jython is not off topic if it's about how to program with Jython. It's the details of using Jython in the context of Eclipse etc that is off topic for tutor. I don't want to sca

[Tutor] Looking for IAC solutions in Python

2014-02-19 Thread Aurélien DESBRIÈRES
Hi, I am looking for IAC - Intelligent Adaptive Curiosity solutions in Python. Have you got any idea of project / algorithm / source code based on that type of things ? Best regards -- Aurélien DESBRIÈRES Run Free - Run GNU.org ___ Tutor maillist

Re: [Tutor] Looking for IAC solutions in Python

2014-02-19 Thread Mark Lawrence
On 19/02/2014 19:53, Aurélien DESBRIÈRES wrote: Hi, I am looking for IAC - Intelligent Adaptive Curiosity solutions in Python. Have you got any idea of project / algorithm / source code based on that type of things ? Best regards Haven't a clue to be quite blunt, I suggest that you try th

Re: [Tutor] constructing semi-arbitrary functions

2014-02-19 Thread eryksun
On Wed, Feb 19, 2014 at 6:59 PM, "André Walker-Loud " wrote: > > Also, since you are chiming in, do you have an opinion in general about > which approach you prefer? The string hacking vs class method (for lack > of better way to describe them)? I've never used iminuit before. I'd ask on a suppo

Re: [Tutor] constructing semi-arbitrary functions

2014-02-19 Thread André Walker-Loud
OK - I have not seen an email from Peter. So I looked up the thread online, and see I did not receive half the emails on this thread :O My first inclination was to blame my mac mavericks mail gmail syncing problem. but logging into gmail, I see no record of the emails there either. I currently

Re: [Tutor] constructing semi-arbitrary functions

2014-02-19 Thread André Walker-Loud
On Feb 19, 2014, at 7:45 PM, André Walker-Loud wrote: > OK - I have not seen an email from Peter. > So I looked up the thread online, and see I did not receive half the emails > on this thread :O > > My first inclination was to blame my mac mavericks mail gmail syncing > problem. but logging

Re: [Tutor] constructing semi-arbitrary functions

2014-02-19 Thread Mark Lawrence
On 20/02/2014 00:56, "André Walker-Loud " wrote: On Feb 19, 2014, at 7:45 PM, André Walker-Loud wrote: OK - I have not seen an email from Peter. So I looked up the thread online, and see I did not receive half the emails on this thread :O My first inclination was to blame my mac mavericks ma

Re: [Tutor] constructing semi-arbitrary functions

2014-02-19 Thread Oscar Benjamin
On 20 February 2014 00:56, "André Walker-Loud " wrote: > On Feb 19, 2014, at 7:45 PM, André Walker-Loud wrote: > >> OK - I have not seen an email from Peter. >> So I looked up the thread online, and see I did not receive half the emails >> on this thread :O >> >> My first inclination was to blam

[Tutor] Programmatic access to email archives (was: constructing semi-arbitrary functions)

2014-02-19 Thread Ben Finney
"André Walker-Loud " writes: > and as a follow up - is there a way to download a thread from the > tutor archive? You've indicated you know this, but for other readers: The mailing list archives are available https://mail.python.org/pipermail/tutor/> in compressed “mbox” format, by month. > 2)