coder.loadNetworkDistributionDiscriminator
R2026bDescription
Add-On Required: This feature requires the AI Verification Library for Deep Learning Toolbox add-on.
loads a network distribution discriminator saved in the discriminator = coder.loadNetworkDistributionDiscriminator(filename)filename MAT
file. filename must be a valid MAT file on the MATLAB® path, contain a single distribution discriminator object, and be a
compile-time constant.
The coder.loadNetworkDistributionDiscriminator function requires
the AI Verification
Library for Deep Learning Toolbox support package. If this support package is not installed, use the
Add-On Explorer.
Examples
Input Arguments
Output Arguments
Tips
For the HBOS and KDE out-of-distribution discrimination method, running the MATLAB discriminator and the generated code on a test set might produce different results. For example, during the execution of generated code, the accumulation of small precision errors might cause crossing of histogram bins and yield larger changes to the distribution scores. The KDE method produces smoother estimates, which can reduce the chance of seeing different results. To understand this discrepancy, further analysis might be required. The characteristics of the deployed discriminators have to be verified to comply with the project-specific requirements.
Extended Capabilities
Version History
Introduced in R2023aSee Also
networkDistributionDiscriminator | coder.loadDeepLearningNetwork (MATLAB Coder) | coder.DeepLearningConfig (MATLAB Coder)