Thread: [Sharpneat-developers] Hi
Status: Beta
Brought to you by:
colgreen
|
From: Colin G. <cg...@ds...> - 2005-11-19 18:22:11
|
Hi Ricardo, I see you found the list ok. Apologies for the test emails, I hadn't realised that as well as being the list owner I also need to be subscribed as a normal user. If you posted a message before this one then I won't have seen it - and it won't be in the viewable archives for a month - so if you did post something could you repost it for me. Thanks, Colin. |
|
From: <men...@gm...> - 2005-11-20 03:08:27
|
No problem, hadn't posted yet. Two notes on the code. In SpeciesForm.cs, there's two lines around line 332 which read: =09=09=09int xIncrement =3D pnlMain.Width / colCount; =09=09=09int yIncrement =3D pnlMain.Height / rowCount; Ocassionaly, colCount or rowCount can be 0, so the program ends with an unhandled exception. The second one I'm not sure if it's a bug or not, but on XorNetworkEvaluator =09=09=09network.ClearSignals() is not called before the test case for (1,1), while it is called for the next two. I imagine this can lead to test problems with (1,1), given the inter-neuron signals are not being checked. Good luck, Ricardo J. M=E9ndez http://ricardo.strangevistas.net/ On 11/19/05, Colin Green <cg...@ds...> wrote: > Hi Ricardo, I see you found the list ok. Apologies for the test emails, > I hadn't realised that as well as being the list owner I also need to be > subscribed as a normal user. If you posted a message before this one > then I won't have seen it - and it won't be in the viewable archives for > a month - so if you did post something could you repost it for me. > > Thanks, > > Colin. > > > ------------------------------------------------------- > This SF.Net email is sponsored by the JBoss Inc. Get Certified Today > Register for a JBoss Training Course. Free Certification Exam > for All Training Attendees Through End of 2005. For more info visit: > http://ads.osdn.com/?ad_id=3D7628&alloc_id=3D16845&op=3Dclick > _______________________________________________ > Sharpneat-developers mailing list > Sha...@li... > https://lists.sourceforge.net/lists/listinfo/sharpneat-developers > -- |
|
From: Colin G. <cg...@ds...> - 2005-11-22 23:12:19
|
Ricardo J. M=E9ndez wrote: >No problem, hadn't posted yet. Two notes on the code. > >In SpeciesForm.cs, there's two lines around line 332 which read: > > int xIncrement =3D pnlMain.Width / colCount; > int yIncrement =3D pnlMain.Height / rowCount; > >Ocassionaly, colCount or rowCount can be 0, so the program ends with >an unhandled exception. > =20 > Actually I think I've experienced that, but never found where it was.=20 Thanks. >The second one I'm not sure if it's a bug or not, but on >XorNetworkEvaluator network.ClearSignals() is not called before >the test case for (1,1), while it is called for the next two. I >imagine this can lead to test problems with (1,1), given the >inter-neuron signals are not being checked. > =20 > Yeh this is just wrong. Have made the change here. You probably also=20 noticed I often don't call clear right at the start, which is normally=20 Ok because the network was normally just built, but in the general case=20 it's an assumption and that's bad. Maybe if networks set a flag when=20 they are created (which resets on the first activation) we can check=20 this to determine if a full clear is really required, then we can call=20 clear at the top of all experiments, safe in the knowledge we won't be=20 doing an unnecessary clear. Cheers, Colin. |
|
From: <men...@gm...> - 2005-11-24 00:31:29
|
On 11/22/05, Colin Green <cg...@ds...> wrote: > Yeh this is just wrong. Have made the change here. You probably also > noticed I often don't call clear right at the start, which is normally > Ok because the network was normally just built, but in the general case > it's an assumption and that's bad. I've noticed that in running an experiment, saving a population and then re-loading it to continue the experiment, networks that were previously optimal and had remained stable for a while tend to go out of whack, but I've never really chased the issue. I wonder if this lacking of an beginning initialization is what's throwing it off. Hmmm.... However, I'm always clearing the signals before even setting the first input signal, so that's probably not it. > Maybe if networks set a flag when > they are created (which resets on the first activation) we can check > this to determine if a full clear is really required, then we can call > clear at the top of all experiments, safe in the knowledge we won't be > doing an unnecessary clear. Certainly. Another option is having a network preference "InitialAutoClear" , which defauls to True, which checks said flag on call to "SetInputSignals" to see if an initial clearing is necessary. Ricardo J. M=E9ndez http://ricardo.strangevistas.net/ |
|
From: Colin G. <cg...@ds...> - 2005-11-24 21:13:42
|
Ricardo J. M=E9ndez wrote: >On 11/22/05, Colin Green <cg...@ds...> wrote: > =20 > >>Yeh this is just wrong. Have made the change here. You probably also >>noticed I often don't call clear right at the start, which is normally >>Ok because the network was normally just built, but in the general case >>it's an assumption and that's bad. >> =20 >> > >I've noticed that in running an experiment, saving a population and >then re-loading it to continue the experiment, networks that were >previously optimal and had remained stable for a while tend to go out >of whack, but I've never really chased the issue. I wonder if this >lacking of an beginning initialization is what's throwing it off. > >Hmmm.... However, I'm always clearing the signals before even setting >the first input signal, so that's probably not it. > =20 > I've chased up this issue in the past but it's one of those things that=20 you have to keep an eye on as it seems to creep back in occasionally. On=20 one occasion it was due to the casting between doubles and floats. The=20 default network class - FloatFastConcurrentNetwork - uses floats, but=20 the genome class uses doubles and the file formats [should] store the=20 full precision of a double. Thus if you are saving/loading genomes and=20 populations then there shouldn't be a problem, but if you saving a=20 network you might lose some precision. It's something to keep in mind=20 anyway, some problem domains are more sensitive to small changes in=20 connection weights than others. Also note sometimes if you have been=20 running a search for a long time with only small improvements in fitness=20 then these improvements can be represented by small weight changes. > =20 > >>Maybe if networks set a flag when >>they are created (which resets on the first activation) we can check >>this to determine if a full clear is really required, then we can call >>clear at the top of all experiments, safe in the knowledge we won't be >>doing an unnecessary clear. >> =20 >> > >Certainly. Another option is having a network preference >"InitialAutoClear" , which defauls to True, which checks said flag on >call to "SetInputSignals" to see if an initial clearing is necessary. > =20 > Could do, but I prefer to leave it to the user to call clear if they=20 want a clear, it's simple and immediately obvious from the point of view=20 of a new coder. Also some experiments want clearing on, say, alternate=20 calls to SetInputs, in cases like that it's easier to just keep it=20 simple and trust that the coder of the experiment knows what they're=20 doing :) C. |