how to create data set for recognize five digit sequential?
Show older comments
Hi. i want to create a model with neural network that recognize five digit sequential but i have not any data set.please help me.
1 Comment
Image Analyst
on 24 May 2013
If you do not have any data then what do you need a model for? You don't have any data to run through it, so what's the point? So you have no training data, and no testing data? Yet you want to create a model?
Answers (1)
Image Analyst
on 24 May 2013
Would you consider image analysis instead? This would be pretty trivial:
% Make data
data = randi(9, 1,100000);
% Look for where the number increments by 1 each element.
differences = diff([0 data]);
theOnes = differences == 1;
% Measure length of stretches of 1's
measurements = regionprops(theOnes, 'Area');
allAreas = [measurements.Area];
% Find index of where the stretch of exactly 5 numbers starts.
the5 = find(allAreas == 5)
Categories
Find more on Deep Learning Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!