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?
there's a lot of context missing here. how do you get to
x = 40*50
? you seem to have only 40 images in your trainset. how does your train data look exactly ?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...
Figured it out. Created a separate array for comparing the results at the end of the code.
can you explain a bit more ? (so we can make it an answer?)