victory的博客

长安一片月,万户捣衣声

0%

可视化 | Logistic回归可视化主要代码

Logistic回归可视化主要代码

import matplotlib.pyplot as plt

fig = plt.figure()
ax = fig.add_subplot(111)
ax.scatter(xcord1,ycord1,s=20,c='red',marker='s',alpha=0.5)
ax.plot(x,y)
plt.title()
plt.xlabel()
plt.ylabel()
plt.show()