MATLAB Answers

'perform' function in Deeplearning toolbox

1 view (last 30 days)
Abdulaziz Almershed
Abdulaziz Almershed on 4 Jan 2021
what is the difference between 'perform' and 'tr' in '[net,tr]=train(net,y,t);'

Answers (1)

Uday Pradhan
Uday Pradhan on 6 Jan 2021
Hi Abdulaziz,
The "perform" function returns the performance of the trained network calculated according to the net.performFcn and net.performParam property values.
The output argument "tr" is a structure which contains information in fields such as:
  • Training, data division, and performance functions and parameters
  • Data division indices for training, validation and test sets
  • Data division masks for training validation and test sets
  • Number of epochs (num_epochs) and the best epoch (best_epoch).
Please refer to their respective documentation for more information : train shallow neural networks, perform. I hope this helps!
  1 Comment
Abdulaziz Almershed
Abdulaziz Almershed on 17 Feb 2021
yeah but it also has performance as well. but is different than the performance i get from using the function perform

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!