Determine how input data affects output activations by occluding input
computes a map of the change in classification score for the classes specified by
scoreMap
= occlusionSensitivity(net
,X
,label
)label
when parts of the input data X
are occluded
with a mask. The change in classification score is relative to the original data without
occlusion. The occluding mask is moved across the input data, giving a change in
classification score for each mask location. Use an occlusion map to identify the parts of
your input data that most impact the classification score. Areas in the map with higher
positive values correspond to regions of input data that contribute positively to the
specified classification label. The network must contain a softmaxLayer
followed by a classificationLayer
.
computes a map of the change in total activation for the specified layer and channel when
parts of the input data activationMap
= occlusionSensitivity(net
,X
,layer
,channel
)X
are occluded with a mask. The change in
activation score is relative to the original data without occlusion. Areas in the map with
higher positive values correspond to regions of input data that contribute positively to the
specified channel activation, obtained by summing over all spatial dimensions for that
channel.
___ = occlusionSensitivity(___,
specifies options using one or more name-value pair arguments in addition to the input
arguments in previous syntaxes. For example, Name,Value
)'Stride',50
sets the stride
of the occluding mask to 50 pixels.
activations
| classify
| imageLIME