MATLAB Answers

0

bug about trainNetwork for Trainning Convolutional Neural Network for Regression

Asked by Jack Xiao on 14 Jul 2018 at 3:15
Latest activity Answered by Wentao Du on 17 Jul 2018 at 3:30

as in demo of Trainning Convolutional Neural Network for Regression,

"[XTrain,~,YTrain] = digitTrain4DArrayData; [XValidation,~,YValidation] = digitTest4DArrayData; .... "

the final train code is "net = trainNetwork(XTrain,YTrain,layers,options);" we can see that XTrain and YTrain are read-ahead. because the data size in the demo is small. but if we are on large scale data, so how to deal with "XTrain" and "YTrain" .

does trainNetwork support "XTrain" and "YTrain" read online for regression?

  2 Comments

So why the use of the term

   BUG

?

Greg

sorry for the term. but how to solve the problem? does trainNetwork support "XTrain" and "YTrain" read online for regression?

Sign in to comment.

1 Answer

Answer by Wentao Du on 17 Jul 2018 at 3:30

Not sure about "read online".

For large datasets, you can create a datastore (see this example using imageDatastore): https://www.mathworks.com/help/nnet/examples/create-simple-deep-learning-network-for-classification.html

More on datastore:

https://www.mathworks.com/help/matlab/import_export/what-is-a-datastore.html

  0 Comments

Sign in to comment.