Is it possible with Neural Network
1 次查看(过去 30 天)
显示 更早的评论
Hi everyone,
I hope you're safe and well.
I was wondering if it's possible to use Neural Network for the following:
I've calculated the volumes (my y) for every row in X, is it possible to use this data to train my network and to predict the volumes for every row in X1?
I'm trying to do this instead of having to do calculations for X1, or at least have a good representation?
I tried using this file here:
But kept getting an error.
Is what I'm thinking, even possible?
Any suggestions or insight would be helpful.
Thank you!
5 个评论
Ameer Hamza
2020-4-1
@John, do you have an explicit mathematical model that can relate the thickness values with the production? If yes, you can use curve fitting to model your system.
回答(1 个)
Ameer Hamza
2020-4-1
If you have Deep learning toolbox, then you can do it in just in few lines of code
net = feedforwardnet([10 10]); % create a feedforward neural network with 2 hidden
% layers 10 neurons in each layer
net = train(net, X', y'); % train the neural network
y_predicted = net(X'); % calculate the prediction on training dataset
mean_square_error = mse(y_predicted, y'); % accuracy on training dataset
% make prediction on unknown dataset
Y1 = net(X1');
4 个评论
Ameer Hamza
2020-4-1
I guess that can help, but it requires implementing the neural network from scratch. Even after that, I am sure the optimizer will fail for a medium-size neural network because, in that question, the OP used fminsearch, which does not have explicit information about gradient about the objective function. The neural network libraries usually calculate an analytical gradient of the whole network, which is why they can train the network so fast. Any other MATLAB optimizer will not have that information. Theoretically, you can provide that information yourself but calculating the gradient of your network, but that is a quite complex task.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Sequence and Numeric Feature Data Workflows 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!