updateDetector
Update settings of a trained anomaly detector and recompute detection threshold
Since R2025a
Description
recomputes the threshold of the trained detector detector
= updateDetector(detector
,data
)detector
using the
data in data
, as long as detector.Threshold
is not
set to "manual"
.
Use this syntax when you want to recompute the detection threshold while maintaining the
current training and other threshold-related settings. The data data
that you use must consist only of only normal data, that is, that contains no known
anomalies or anomalous data.
For an example of using train
as part of the detector development
workflow, see Train and Test TCN Anomaly Detector.
sets additional options using one or more detector
= updateDetector(detector
,data
,Name=Value
)Name=Value
arguments. These
options set the corresponding properties of detector
, include
thresholding and execution-related properties. The options you can set depend on the
detector model you are updating.
The relationship among settings for threshold-related properties are the same as when
you first create a detector object. So, for example, if the original detector threshold has
been computed statistically and you want to set it manually instead to the value
TH
, you must specify both ThresholdMethod
and
Threshold
using a command such as detector =
updateDetector(detector,data,ThresholdMethod="manual",Threshold=TH)
.
Input Arguments
Name-Value Arguments
Version History
Introduced in R2025a