r/dailyprogrammer • u/Elite6809 1 1 • Apr 09 '15
[Weekly #22] Machine Learning
Asimov would be proud!
Machine learning is a diverse field spanning from optimization and data classification, to computer vision and pattern recognition. Modern algorithms for detecting spam email use machine learning to react to developing types of spam and spot them quicker than people could!
Techniques include evolutionary programming and genetic algorithms, and models such as artificial neural networks. Do you work in any of these fields, or study them in academics? Do you know something about them that's interesting, or have any cool resources or videos to share? Show them to the world!
Libraries like OpenCV (available here) use machine learning to some extent, in order to adapt to new situations. The United Kingdom makes extensive use of automatic number plate recognition on speed cameras, which is a subset of optical character recognition that needs to work in high speeds and poor visibility.
Of course, there's also /r/MachineLearning if you want to check out even more. They have a simple questions thread if you want some reading material!
This post was inspired by this challenge submission. Check out /r/DailyProgrammer_Ideas to submit your own challenges to the subreddit!
IRC
We have an IRC channel on Freenode, at #reddit-dailyprogrammer. Join the channel and lurk with us!
Previously...
The previous weekly thread was Recap and Updates.
View all comments
Show parent comment
2
u/dohaqatar7 1 1 Apr 12 '15
What I've written so far is a simple genetic algorithm.
The biggest issue I've run into is, as you described, local extreme. The specific issue is that once the genetic algorithm manages to comment out the code, there are no errors, so my heuristic ranks it above anything that has errors.
The heuristic is, unsurprisingly, where the hard part of the challenge is. The genetic algorithm can the the same as the one used for the challenge that was linked to by OP. It's quite hard to judge which error is best out of a long list of errors. My approach so far has been to use the length of the error as a heuristic, favoring short error messages over long error messages. Discussion on the IRC channel suggested that the point in the code at which the error occurred would be a better approach.