From Java to Python

Today I engaged Emmanuel in a Skype call to review my first Python translation of his Java code. I then sketched a workflow diagram (in gedit), which I delivered to Emmanuel for his review. Feels good to have made progress, even if just a few lines of code.

Given that I don’t know Java, this is going to be an arduous process.

By |2017-11-25T00:02:33-04:00February 28th, 2015|Ramblings of a Researcher|Comments Off on From Java to Python

Genetic Programming 101

Getting Started with GP by Emmanuel Dufourq

Epilogue
“Well, this is where it all started. A few lines of Java loosely translated to Python, the first three chapters of the “Field Guide to Genetic Programming“, and guidance from fellow researcher Emmanuel and officemate Arun, when I took wrong turns.

Had I known the effort would be not just six weeks, but six months, resulting in more than 2300 lines of Object Oriented code producing an extensible, multi-core platform for both symbolic regression and classification, with a user interface, well, I would have either been pleasantly surprised or run away screaming mad.

Either way, I look back and recognise how far I have come as a programmer, how much I have gained in training as a researcher, and how good it feels to have dedicated myself to a substantial task and followed through.” –kai, 26 September 2015

public Node createTree(int maxDepth, String type){

int random = gen.nextInt(4);
Node root;

if(random == 0){
root = new And();
}
else if(random == 1){
root = new Or();
}
else if(random == 2){
root = new If();
}
else{
root = new Not();
}

treeSize = 1;

populateTree(root, root.getLabel(), type, 1, maxDepth);

return root;
}

To read only essays and entries about my work in genetic programming and machine learning, select the category Ramblings of a Researcher.

By |2017-11-25T00:02:25-04:00February 17th, 2015|Ramblings of a Researcher|Comments Off on Genetic Programming 101

Supernova SN2014J, a photo essay

Supernova SN2014J by Kai Staats

A photo of the supernovae in the galaxy M82, taken my last night at MDRS, Musk Observatory. Three hours setup, alignment, hunting, and experimentation with the camera. If the scope was tracking properly, I would have preferred a 5-10 minute exposure at a lower ISO. This is 1600 ISO and 1 minute. Not bad, for 3:30 am.

By |2021-02-09T00:47:05-04:00January 2nd, 2014|Ramblings of a Researcher|Comments Off on Supernova SN2014J, a photo essay
Go to Top