Ask Your Question

sope's profile - activity

2016-02-28 06:00:32 -0600 commented question Handwriting recognition with SVM, changing training and testing values

Figured it out. Created a separate array for comparing the results at the end of the code.

2016-02-28 02:58:12 -0600 commented question Handwriting recognition with SVM, changing training and testing values

sorry, the x value should be 200. In the original code in the above link, the training set is 250 and testing set is 250. I'm trying to change those values to 200 and 300. The image is the digits.png provided with opencv: http://wormassay.googlecode.com/svn/t...

2016-02-28 02:41:25 -0600 received badge  Editor (source)
2016-02-27 23:47:48 -0600 asked a question Handwriting recognition with SVM, changing training and testing values

http://opencv-python-tutroals.readthe...

In this example OpenCV gives, the training set is of 250 and testing amount is also the same. However when the testing and training numbers are changed, the accuracy goes down to 0.

# First half is trainData, remaining is testData
train_cells = [ i[:40] for i in cells ] 
test_cells = [ i[40:] for i in cells]

x = 200
responses = np.float32(np.repeat(np.arange(10),x)[:,np.newaxis])

I have changed the values in above lines of code. What am I doing wrong? And what should x be?