how to create data set for recognize five digit sequential?
显示 更早的评论
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 个评论
Image Analyst
2013-5-24
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?
回答(1 个)
Image Analyst
2013-5-24
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)
类别
在 帮助中心 和 File Exchange 中查找有关 Deep Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!