首页 > 编程知识 正文

核函数 多项式核函数 高斯核函数常用,稀疏高斯核函数

时间:2023-05-05 03:46:58 阅读:181991 作者:4147

importnumpyasnpimportmatplotlib.pyplotaspltdefgaussian (x,l ) : gama=1.0 return NP.exp (-gam a* ) x-L )2) x 1) dtype='int ' ) print ) y ) l1,l2=-1,1x _ new=NP.empty L1 ) x_new[i(I,1 )=Gaussian ] data,L2 ) print [0]*len ) x [ y===0] color=' yellow ' (PLT.show ) ) PLT.Scatter ) x _ new [ y==0,0 ]、x _ new [ y==0(plew ) )

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。