Image regression: How to visualize the feature importance of an image in convolutional neural networks
4 次查看(过去 30 天)
显示 更早的评论
To investigate trained networks, we can use visualization techniques such as Grad-CAM, occlusion sensitivity, LIME, and deep dream.
But the input of these functions require to be string, char, categorical, cell.
For example, map = occlusionSensitivity(net,img,Y), where Y was the predicted value for img, however, this function shows error: Expected input number 3 to be one of these types: string, char, categorical, cell.
Could anyone tell me how to use these functions for regression analysis?
0 个评论
回答(1 个)
Aditya Patil
2021-3-31
the third parameter for occlusionSensitivity is label which was predicted for the model. For example,
label = classify(net,X);
scoreMap = occlusionSensitivity(net,X,label);
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Data Workflows 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!