C++ Training and Testing code
I created a Google Code project for this example and it can be found here.
The code should be simple and self explanatory. It uses batch Logistic Regression by default to train but if you pass 1 as an argument, then it will use stochastic instead.
High level explanation of the difference between Stochastic and Batch mode: If we use Batch mode, then the gradient descent will make slower and smaller steps hence they are in the right direction. It will also merge very close to the minima. Stochastic, on the other hand, will make faster steps toward the mimima but it might not get as close as Batch to the goal.
Here is an example of the TesterMain ran on one image of an aircraft in the sky:
.
.
.
.
.
.
.
.
The testing part can be done in Actionscript and all it needs is the Thetas calculated from out training examples.
.
Browse Timeline
- Next: » Setting up my Ubuntu machine
- Previous: « Logistic Regression to classify flying aircrafts [1]
















