thesffs/show.py

24 lines
306 B
Python
Raw Normal View History

2021-12-30 09:23:31 +01:00
import matplotlib.pyplot as plt
from data2 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)
print("desired")
plotone(x,y-z)