https://jp.mathworks.com/help/vision/ref/trainpatchcoreanomalydetector.html
trainPatchCoreAnomalyDetector - Train PatchCore anomaly detection network - MATLAB
This MATLAB function trains the input PatchCore anomaly detection network detectorIn.
anomaly detectiontrainnetworkmatlab