fScoreMetric
Description
Use an FScoreMetric
object to track the F-score value when you
train a deep neural network.
To specify which metrics to use during training, specify the Metrics
option of the trainingOptions
function. You can
use this option only when you train a network using the trainnet
function.
To plot the metrics during training, in the training options, specify Plots
as "training-progress"
. If you specify the
ValidationData
training option, then the software also plots and records the
metric values for the validation data. To output the metric values to the Command Window
during training, in the training options, set Verbose
to true
.
You can also access the metrics after training using the
TrainingHistory
and ValidationHistory
fields from
the second output of the trainnet
function.
Note
The F-score metric F1 is equivalent to an Fβ metric with β set to 1. To use a different β value, you can create a custom metric. For an example, see Define Custom F-Beta Score Metric Object.
Creation
Description
creates an
metric
= fScoreMetricFScoreMetric
object. You can then specify metric
as
the Metrics
name-value argument in the trainingOptions
function. This metric is valid only for classification tasks.
With no additional options specified, this syntax is equivalent to setting
Metrics="fscore"
in the training options.
sets the metric
= fScoreMetric(Name=Value
)Name
, NetworkOutput
,
AverageType
, and ClassificationMode
properties using name-value arguments.
Properties
Object Functions
trainingOptions | Options for training deep learning neural network |
trainnet | Train deep learning neural network |
Examples
More About
Version History
Introduced in R2023b