Cincopa video hosting solution for your website. Another great product from Cincopa Send Files.

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:

Input (click to enlarge)

Output (click to enlarge)

.

.

.

.

.

.

.

.

The testing part can be done in Actionscript and all it needs is the Thetas calculated from out training examples.

.


Browse Timeline


Add a Comment


XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>


© Copyright 2007 Is it Intelligent yet? . Theme by Zidalgo Thanks for visiting!