Bobby Anguelov's Blog

A day in the life of a wannabe game developer

C++ Back Propagation Neural Network Code v2

There was a lot of feedback on my neural network implementation, mostly regarding architectural suggestion so i sat down and rewrote my neural network implementation, its pretty elegant now. I seperated the training of the network from the actual network itself and so i have a basic feed forward network, a data set reader and a neural network trainer. I also renamed several data structures to make things more understandable, also i wasnt lazy and used proper header files and includes :P

Below is an updated class diagram of the new version:

here’s the updated implementation (with a VS2k8 solution):

Neural Network C++ Source Code

23 June 2008 Posted by Bobby | Artificial Intelligence, Programming | , , , , , , , , , , , , | 8 Comments

A long period of nothingness…

I havent really updated this blog in a while, the main reason being i was busy with finals for the last few weeks. I’m now done with my first semester of my honors (1st year of masters for anyone that doesnt know what an honors program is). One more to go :P

What havent i been busy with? Well I finally moved my home machine over to Vista 64 and to be honest: i’m really loving it. Nvidia seems to have finally fixed their drivers. I also now have features in vista that were disabled in XP, one is hardware color controls in custom media players and the second is LCD scaling which has always been disabled in XP. Is vista slower? not that i’ve noticed, but then again i’m running a monstrous setup.

I’m now busy learning DirectX 10, i havent had too much experience with it yet but from what i’ve seen i’m really enjoying it. The API is quite elegant. I’ll report back and maybe put up a few tutorials in a few weeks. I’m also planning a more OO rewrite of my neural network due to some bad design decisions (from a OO standpoint) in my previous version, there will be no performance difference and only structural changes to the code.

I also have to prepare for my presentation at the prism workshop on image processing, I’ve written a paper detailing some basic uses for the DPT me and my father developed and am going to have to present them at the workshop. I’m planning on writing a nice GUI based application for the presentation to show off these examples in a nicer way.

So even though i’m technically on holiday, i’ve still got a full plate.

A bit of personal info: the season change has hit me pretty hard and i’ve found myself slipping back into my depression, luckily i caught it early on and have taken steps to counter this. I’ve spent all morning coding (for fun – wow i’m such a party animal) and to be honest i couldnt think of a better way to have spent the morning! Just need a new keyboard as i’ve worn this one out!

I’ll be making an effort to update my blog a bit more in the coming weeks.

 

21 June 2008 Posted by Bobby | General | | No Comments Yet