plt.title(title)
if show==True:
plt.show()
return f,f.axes
def plot_model_weights(model,layer_idx=-2,show=True):
if show==False:
After Change
//remove any redundant axes
motif_scores=motif_scores.squeeze()
if axes is None:
f,axes=plt.subplots(1,dpi=80,figsize=figsize)
show=True
else:
show=False
axes.plot(motif_scores, "-o")