Problem loading pretrained fuzzy model

3 views (last 30 days)
Rodrigo Salas
Rodrigo Salas on 21 Jul 2023
Commented: Rodrigo Salas on 4 Aug 2023
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?

Answers (1)

Aman
Aman on 31 Jul 2023
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!
  1 Comment
Rodrigo Salas
Rodrigo Salas on 4 Aug 2023
Hi, a temporal solution was try in another computer with more ToolBox and the example run without problem. I checked what LKA is and is a Lane Keeping Assist, this model require another ToolBox that I haven't buy in my current pc. Thanks for the answer.

Sign in to comment.

Categories

Find more on Fuzzy Logic Toolbox 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!