On Sun, December 3, 2006 5:30 pm, belinda thom said: > Hi, > > Am wondering if an older version of pyro (4.9.2) used to support: > > # create a network, suppose its named 'n' > n = ... > (err, correct, total) = n.sweep() > > The reason I ask is that I've inherited some working code that makes > this call and thus doesn't run because the "unpack" fails. The fix is > to add an extra argument, e.g. > > (err, correct, total, ignore) = n.sweep() > > I'm new to pyro, Python, and the inherited code, so want to make sure > this kind of update is in fact the way to proceed.
Yes, that should work. Looking at pyrobot/brain/conx.py, searching for "def sweep" and noting the return values, I see that these values are: return (tssError, totalCorrect, totalCount, totalPCorrect) The totalPCorrect is the "total percentage correct" and was added more recently. -Doug > Thanks, > --b -- Douglas S. Blank Associate Professor, Bryn Mawr College http://cs.brynmawr.edu/~dblank/ Office: 610 526 601 _______________________________________________ Pyro-users mailing list [email protected] http://emergent.brynmawr.edu/mailman/listinfo/pyro-users
