这是我的文档字符串:
def getHeatMap(self, time=np.linspace(0, 60*24, 100),
traffic=np.linspace(0, 1000000, 100)):
""" Caculate a training map (a grid contains score on all its nodes)
:return: (xx,yy,z) where (xx,yy) are the result of meshgrid and\
z are the corresponding scores
you can plot the obtained map this way:
:Example:
>>> (xx,yy,z) = ckde.getTraindedMap()
>>> plt.contourf(xx,yy,z)
>>> plt.contour(xx,yy,z, levels=[0]) // plot anomaly margine
"""
我希望参数的默认值显示为原始代码。 time=np.linspace(0, 60*24, 100)