plotperform
Plot network performance
Syntax
Description
Examples
Plot Validation Performance of Network
This example shows how to use plotperform
to obtain a plot of training record error values against the number of training epochs.
[x,t] = bodyfat_dataset; net = feedforwardnet(10); [net,tr] = train(net,x,t);
plotperform(tr)
Generally, the error reduces after more epochs of training, but might start to increase on the validation data set as the network starts overfitting the training data. In the default setup, the training stops after six consecutive increases in validation error, and the best performance is taken from the epoch with the lowest validation error.
Input Arguments
TR
— Training record
structure
Training record (epoch
and perf
), returned as
a structure whose fields depend on the network training function
(net.NET.trainFcn
). It can include 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
)A list of training state names (
states
)Fields for each state name recording its value throughout training
Performances of the best network (
best_perf
,best_vperf
,best_tperf
)
Version History
Introduced in R2008a
See Also
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)