This shows you the differences between two versions of the page.
Next revision Both sides next revision | |||
code:perceptron [2013/08/15 10:42] asa created |
code:perceptron [2013/09/06 09:55] asa |
||
---|---|---|---|
Line 47: | Line 47: | ||
self.converged = converged | self.converged = converged | ||
if converged : | if converged : | ||
- | print 'converged in %d iterations ', iterations | + | print 'converged in %d iterations '% iterations |
# this should be the last command in the train function | # this should be the last command in the train function | ||
self.log.trainingTime = self.getTrainingTime() | self.log.trainingTime = self.getTrainingTime() |