code: def plotOverlaps(vList, w, base="random", k=20):
    
    for i,v in enumerate(vList):
      if i==0:
        col = "m"
        label = "Random vector"
      else:
        col="c"
        label = ""
        if i==1: label="Test images"
      # Get a sorted list of overlap values, in decreasing order
      overlaps = v.matmul(w.t())
      sortedOverlaps = overlaps.sort()[0].tolist()[0][::-1]
      plt.plot(sortedOverlaps,col,label=label)
  
    plt.axvspan(0, k, facecolor="g", alpha=0.3, label="Active units")
    plt.legend(loc="upper right")
    plt.xlabel("Units")
    plt.ylabel("Overlap scores")
    plt.title("Sorted unit overlaps of a sparse net.")
    plt.savefig(base+"_2")
    plt.close()
docs: Given a list of vectors v, compute the overlap of each with the weight matrix
    w and plot the overlap curves.