train
Description
trains the deep learning network within an anomaly detector detector
= train(detector
,trainData
)detector
with a training data set trainData
that contains only normal data, and
not any anomalous data. This syntax uses default options.
When the ThresholdMethod
property for detector
is set to any method but "manual"
, train
also
obtains the detection threshold that the detector uses to identify an anomaly.
You can use train
to train a newly created detector or continue the
training of a previously trained detector.
For an example of using train
as part of the detector development
workflow, see Train and Test TCN Anomaly Detector.
specifies the training options explicitly, rather than through
detector
= train(detector
,trainData
,Name=Value)trainingOptions
. The options you can set depend on the detector model
you are training.
TcnDetector
andDeepantDetector
accept only atrainingOptions
(Deep Learning Toolbox) option set that you configure separately.UsadDetector
accepts certain training options as individual name-value arguments.VaelstmDetector
accepts both aTrainingOptions
set and individual name-value arguments.
Input Arguments
Name-Value Arguments
Output Arguments
Extended Capabilities
Version History
Introduced in R2025a