Problem loading pretrained fuzzy model
2 次查看(过去 30 天)
显示 更早的评论
I have next problem runing the "
Explain Black-Box Model Using Fuzzy
" example:
>> data = load('dataExplainDNN.mat');
dnnLKA = data.trainedDNN;
Warning: Unable to load instances of class rl.layer.ScalingLayer into a heterogeneous array. The definition of
rl.layer.ScalingLayer could be missing or contain an error. Default objects will be substituted.
Warning: While loading an object of class 'SeriesNetwork':
Error using the predict function in layer nnet.cnn.layer.MissingLayer. The function threw an error and could not be executed.
>> steeringAngle = predict(dnnLKA,zeros(1,6))
Dot indexing is not supported for variables of this type.
Error in SeriesNetwork/predict (line 320)
Y = this.UnderlyingDAGNetwork.predict(X, varargin{:});
The class "rl" is not load correctly, load a structure but is not the original data (SacalingLayer object maybe?), then fail when try to use as a predict model.
I need to add some function of the original model like a add-on?
0 个评论
回答(1 个)
Aman
2023-7-31
Hi,
I understand that you are trying to execute the "Explain Black-Box Model Using Fuzzy Support System" example and are facing an issue with the "dnnLKA" model.
This issue occurs when the class definition for that network is not on the MATLAB path when the network is being used.
Please refer to the following documentation to learn about how to solve this issue by including the class definition.
I hope it helps!
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Clustering 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!