how can i look my predicted outputs from the trained neural network?

30 views (last 30 days)
i have trained a network with 432 data sets with 5 types of input with one output now i have generated weight and bias and generated a equation i was validating the equation with predicted output. i want to look for the predicted output generated by the ANN. where can i find these?

Accepted Answer

Atharva
Atharva on 12 Sep 2023
Hey Chetana,
I understand that you want to look for the predicted output generated by the ANN.
In MATLAB, you can find the predicted output generated by an Artificial Neural Network (ANN) by accessing the network's output after you've trained it or applied it to new data. Here are the general steps to find the predicted output:
  1. Load or Create Your ANN: You can create an ANN using MATLAB's Neural Network Toolbox or load a pre-trained network if you have one.
  2. Prepare Input Data: Make sure you have your input data ready in a suitable format. It should match the input layer of your ANN.
  3. Apply the ANN: Use the sim function to apply the ANN to your input data. For example, if your ANN is called net and your input data is stored in a variable inputData, you can use:
>> outputData = sim(net, inputData);
This will produce outputData, which contains the predicted output generated by your ANN.
4. Access the Predicted Output: You can then access the predicted output in the outputData variable. The format and structure of this variable depend on your specific network and problem, but it should contain the predictions for your input data.
I hope this helps!
  1 Comment
Chetana
Chetana on 13 Sep 2023
Edited: Chetana on 13 Sep 2023
Thank you for the reply. can you please tell me how can i make an equation of a trained neural network. i made the equation but it is not validating with the output generated by the neural network. i hvae 5 input data and 10 neurons in hidden layer and a out put layer with tansig as an activation function

Sign in to comment.

More Answers (0)

Categories

Find more on Deep Learning Toolbox 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!