Why do custom MATLAB functions and Deep Learning Toolbox 'Predict' block in MATLAB R2025a give different predictions with identical inputs, weights, and layers?
Show older comments
When using identical inputs, weights, biases, and layer structure, I observe that predictions from my custom MATLAB function differ from those of the Deep Learning Toolbox 'Predict' block. I am using a FeatureInputLayer with 'rescale-zero-one' normalization, and I manually apply normalization in my MATLAB code using the min and max values from the network. Why are the results different, and is there a way to ensure consistency? Also, is there a Simulink block for 'rescale-zero-one' normalization that supports FeatureInputLayer, and how can I manually modify weights and biases in exported Simulink models?
Accepted Answer
More Answers (0)
Categories
Find more on Deep Learning with Simulink in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!