thesffs/show.py

24 lines
309 B
Python

import matplotlib.pyplot as plt
from data import data
from loss import numpyloss2d
x,y,z=data()
def plotone(x,y,show=True):
#plt.title(str(numpyloss2d(x,y)))#buggy
plt.plot(x,y,"o",alpha=0.75)
if show:plt.show()
plotone(x,y)
plotone(x,z)
plotone(y,z)
plt.title("desired")
plotone(x,y-z)