section_logo

KFold cross validation implementation in C++

17-05-2009 at 11:45:50 | no comments

While working with neuronal or bayesian network for diagnosis one of the most important thing you need to do is to choose correctly the trainning and the testing sets.

I've just made a little implementation of the K-fold cross validation technique in C++ because after looking for it I couldn't found anything on that language.

I hope it will be useful for you, you can find it here

17-05-2009 at 11:45:50 | no comments

Compiler options for small executables

22-03-2009 at 20:22:09 | no comments

Yesterday I installed VS 2008 to try to get my things working on it. It gaves me a lot of errors while trying to compile my introsystem but after a while I got it working

The problem on that point was that after generate the final .exe file, it didn't work with kkrunchy (from ryg) compressor giving me the following error:

- ERROR: files with exports or tls data are not supported

I started to go throw all the options of the compiler/link again and luckily I got it working.

Here you can see the options I've used. I just included the ones I've changed from the original template that VS generate for a simple Win32 project

You can grab the base project source from here

  • C/C++
    • General:
      • Debug information format: Disabled
    • Optimization:
      • Optimization: Maximize Speed (/O2)
      • Inline Functions Expansion: Only _inline (/Ob1)
      • Enable Intrinsics Functions: Yes (/Oi)
      • Favor size or speed: Favor Fast Code (/Ot)
      • Omit Frame Pointers: Yes (/Oy)
    • Code generation:
      • Runtime Library: Multi-threaded DLL (/MD)
      • Struct member alignment: 1 Byte (/Zp1)
      • Buffer security Check: No (/GS-)
      • Floating point model: Fast (/fp:fast)
    • Language:
      • Enable Run-Time Type Info: NO (/GR-)
    • Advanced:
      • Calling convention: __fastcall (/Gr)
    • Command line:
      • Additional options: /QIfist

  • Linker
    • Input:
      • Ignore all default libraries: Yes (/NODEFAULTLIB)
    • Manifest file:
      • Generate Manifest: No
    • Debugging:
      • Generate Debug Info: No
      • Generate map file: Yes (/MAP)
    • Optimization:
      • Optimize for Windows98: No (/OPT:NOWIN98)
    • Advanced:
      • Base Address: 0x6000000
      • Randomize Base Address: Disable Image Randomization (/DYNAMICBASE:NO)
22-03-2009 at 20:22:09 | no comments

My graphics card died

22-03-2009 at 18:33:33 | 1 comment

It's looks like my graphics card didn't like my proposal about go back to coding so she just decided to crash :)

It started to happens while loading some GPU Gems demos, and at first I thought it was just some drivers issue, but I downgraded them and it didn't go out

So looking throw the web I just found a nice tool called ATI Tool, and yes, in despite of the name of the tool it works with Nvidia cards too.

After running the artifacts test on my 9800GTX+ for around 2 mins. I got the following results

Lucky me, because I didn't throw my old 6600, so I can still use my computer until I'll get it back from the RMA

22-03-2009 at 18:33:33 | 1 comment