Monday, May 7, 2012

PelegLib

Hi,
I decided to implement some Computational Geometry I learn. This topic interests me.

This is the rep:

enjoy

Thursday, April 12, 2012

Python wrapper for WEBM library

Hi all,
Here a wrapper to the WEBM format codec. I found the source code for WEBM encoding and decoding  in the internet (dont really remember where), I took the compiled lib and the headers and compiled it into a dll (created vpxmt.dll from vpxmt.lib).
Then, I used gccxml (compiled in my cygwin env) and some changed python files from ctypes.wrap to import the library to python.
It requires python only (I tested it on python 2.7). The rest of the things are in the source control.

Ofir.

Saturday, January 14, 2012

Optimization for Decision Tree

Hi,
I noticed that when using Decision Trees to learn about some training examples, and there are 2 examples with same attributes but different classification, we can improve the performance of the tree creation.
Actually, when we are using the regular algorithm (with gain calculations) we get gain equals to zero. The regular algorithm doesn't check if the gain is zero, so the tree is fully opened until there are no attributes left, and we have our 2 examples with different classification.  
My suggestion is to stop developing the tree if we reach gain = 0, and return a node with the default value (most common classification in the given examples of the current level).

Ofir.