Is it possible with Neural Network

1 view (last 30 days)
John Doe
John Doe on 1 Apr 2020
Edited: John Doe on 6 Apr 2020
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 Comments
Ameer Hamza
Ameer Hamza on 1 Apr 2020
@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.
John Doe
John Doe on 1 Apr 2020
@ Ameer, sadly it isn't explicit

Sign in to comment.

Answers (1)

Ameer Hamza
Ameer Hamza on 1 Apr 2020
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 Comments
John Doe
John Doe on 1 Apr 2020
@Ameer, thank for trying to help! It's really appreciated.
I found this link:
Do you think it'll help?
Ameer Hamza
Ameer Hamza on 1 Apr 2020
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.

Sign in to comment.

Categories

Find more on Sequence and Numeric Feature Data Workflows 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!