I would like to plot my input and output of the model I am trying to train:
input data shape:
processed_data.shape
(100, 64, 256, 2)
How it looks like:
processed_data
array([[[[ 1.93965047e+04, 8.49532852e-01],
[ 1.93965047e+04, 8.49463479e-01],
Output data shape:
output.shape
(100, 6)
Output is basically probablities of each label
output = model.predict(processed_data)
output
array([[0.53827614, 0.64929205, 0.48180097, 0.50065327, 0.43016508,
0.50453395]
I would like to plot somehow for each instance in processed data the predicted probabilities of classes (since this is the multi-label classification problem) but I am struggling to do so. So how I can plot the processed data but not sure how to plot the probabilities for each instance of input. I would like to be able to label all the 6 possible classes on each of the output. I am a bit lost... Any suggestions?
So far I only plot input: shape = output.shape[0]
for i in range(it):
fig,axs = plt.subplots(5,2,figsize=(10,10))
if isinstance(data,list):
inp = data[i]
outp = output[i]
else:
inp = data
outp = output
for j in range(5):
r = randint(0,shape)
axs[j,0].imshow(inp[r,...,0]);
axs[j,0].title.set_text('Input {}'.format(r))