thesffs/show.py

24 lines
309 B
Python
Raw Permalink Normal View History

2021-12-30 09:23:31 +01:00
import matplotlib.pyplot as plt
2022-01-03 15:29:55 +01:00
from data import data
2021-12-30 09:23:31 +01:00
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)
2022-01-03 15:29:55 +01:00
plt.title("desired")
2021-12-30 09:23:31 +01:00
plotone(x,y-z)