Saturday, January 21, 2012

Mobius Strip

The mobius strip is a wonderful geometric conundrum. It perplexes you since it is a closed 3-D object with only one edge (lo and behold!). It is really easy to make one of these, take a piece of paper and twist it clockwise on one edge, counter clockwise on the other edge join the two edges and you have this quizzical geometry.

This image describes it correctly:


Why am I putting this here? Well, I have this annoying habit of setting wires and straps on bags straight. I recently ran into this mobius strip on a bag, seeing that I could not make it straight made me wince. I could not come up with a name to attach and put my frustration on. Now I can. :)

Monday, September 26, 2011

matplotlib thou art not matlab

I am a little taken aback by the matplotlib apis, their examples don't seem that clear on data visualization. Being a former matlab user, I switched to matplotlib as it gives me access to both nltk, opencv, numpy/scipy. But in hindsight, I could just use the insane matlab toolboxes for these purposes and be done with it.

Saturday, June 25, 2011

Shogun toolkit

A fellow researcher (read arun) in semantic parsing and sentiment analysis directed me towards the shogun toolbox. Amazing features; it implements a range of weighted kernels, SVM and HMMs. It has interfaces to python, matlab and R (in my order of preference). It also supports ascii, Json and xml data formats. The best part is its got about 600 examples (albeit not in pydoc and for dna data!!!); a few I read took me about 5 mins to understand. (5 mins, now to get someone more brilliant to explain everything else I need, R2-D2, scooby-doo)

So now if I am rapid prototyping some algorithm I can do a instant analysis for many SVM methods and also HMM classification in very little time. Now maybe I can prove my algorithms are seriously inefficient and need lots of work or they can kick ass with the best of methods. (I am rooting for the latter)

I know PyML is slow and trying to catch up, but if only they just used everything form shogun and wrote new wrappers in PyML form and their fantastic doc. (I do wish a lot!!)

Time to fire the infinite improb drive and head to my bed.

Tuesday, June 14, 2011

Woes in data representation

I have been dabbling with numpy for a while, creating serialized objects and memory mapped files. The numpy package is great because it give s you the flexibility of using python, it is definitely not as fast as implementing the same in C, but you so have the alternative to use Cython (well if you do care).

I have written a converter for the date object, I was trying to look at time series analysis, but turns out if I am using a converter I need to return in float or string and cannot store in date object format. What a bummer!!

I don't have an idea how to use serialized objects or the parallel in matlab, the next quest learn the magical techniques in matlab.

Wednesday, December 1, 2010

Discovering order in chaos and learning to control it

A course I have taken this semester has lent my imagination a new kick-start. When you learn about Karl Sims' creatures, Hod Lipson's data extraction, Turing's reaction diffusion models and Neumann's self replicator, you are dumb founded, inspired, amazed.

To this day I believe in my skills as an observer and experimenter, but when I read about Neumann and his penchant to visualize processes, trace phenomena correctly without any knowledge I am left speechless. Turing's quirkiness was particularly well known, but his thought about finding patterns through morphogenesis and obviously the Turing machine. The present day researchers are not too far behind, Lipson's work seems interesting and very promising.

Now that I have all that out of my system, let me talk about these few guys from the max planck institute who have aroused my curiosity and beckoned my imagination to sit and ponder of the what-ifs and could-bes. This  bunch of people who have been featured in nature - http://www.nature.com/nphys/journal/v6/n3/full/nphys1508.html have observed unique neural behaviour in insects and captured it in a simple neuron model whose ground state is chaotic but is controlled by sensory inputs  to generate behaviours. These discoveries in the neural behaviour and contruction could shed light on the actual neural processes in humans leading to potentially simple and effective models of behaviour. In combination with techniques like subsumption architectures(doomed as a failure or atleast not so successful), we could look at simple and evolvable solutions to various problems in locomotion and path planning.

Going further,  if we could apply a chaotic organization mechanism to the reasoning process in AI, we would have made great advances. The reasoning scheme in AI has huge problems with representation and these problems will continue to haunt us, but some progress towards such self organizing behavior would definitely go a long way.

Thursday, November 4, 2010

Player - stage Installation

Installing the player/stage I ran into a few problems and did not find good solutions, I am posting what worked for me-


1. Download the player project
2. Extract the player folder
3. sudo apt-get install python-gdal netcdfg-dev libpq-dev libhdf4g-dev libgeos-dev libatk1.0-0 lib3ds-dev freeglut3-dev
4. Run cmake (if you want create a directory for build like the install guide specfies)
5. Run make
6. Run sudo make install
7. add the following to your .bashrc file 

export PATH=$PATH:"/usr/local/lib64"
export PLAYERPATH="/usr/local/lib":"/usr/local/lib64"
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"/usr/local/lib":"/usr/local/lib64"


This should get you to set up.

This link http://www.control.aau.dk/~tb/wiki/index.php/Installing_Player_and_Stage_in_Ubuntu has a lot of information for installing and configuring your player information

Sunday, October 3, 2010

The amazing fractals

Fractals are a intricate design pattern generally self repetitive and aesthetically pleasing. They are things you see in everyday life, snowflakes, coast lines, fruits. Nature likes to deal with fractals and why not considering there is such symmetry.

Being introduced to fractals in my course and learning about the pioneering fractals has been pleasurable. Learning that Turing was really interested in reaction diffusions for morphogenesis and made some pioneering contributions has only increased my admiration of the queer genius.

Some of the images do look like the Rorschach test replications, they seem nice, generally colourful in a hue of blue, yellow or red. Turing was trying to set up a mathematical or state model explanation for the generation of patterns in nature. How does a cheetah get its dots, how does a zebra get its stripes and the general things common people never ponder over.

It is amazing how a small set of rules and parameters generate the most intricate patterns. You can have a look at them here : http://cgjennings.ca/toybox/turingmorph/. There is a nice applet which animates the whole process.