if I train my network with newnet=trainNetwork(imageDatastore_traindata,net,options) imageDatastore_traindata.Labels need to be categorical, i.e. not regression but classification labels. So for regression, it seems I need to use newnet=trainNetwork(X,Y,net,options)
and give my regression labels as Y, but then I can't use the imageDatastore as X, so I'll run into memory problems. Is there no way to do regression with an imageDatastore?