2021
02-21
02-21
python绘制高斯曲线
本文实例为大家分享了python绘制高斯曲线的具体代码,供大家参考,具体内容如下源码:importnumpyasnpimportmatplotlib.pyplotaspltimportmathimportmpl_toolkits.mplot3dimporttensorflow.compat.v1astftf.disable_v2_behavior()#importtensorflowastffromsklearnimportdatasetssess=tf.InteractiveSession()gamma=tf.constant(-1.0)x,y=np.mgrid[-2:2:0.01,-2:2:0.01]x_data=tf.placeholder(shape=[4...
继续阅读 >