首页 > 编程知识 正文

高斯核函数的sigma,高斯核函数公式

时间:2023-05-05 15:11:05 阅读:181942 作者:2670

importnumpyasnpimportmatplotlib.pyplotaspltfromsklearnimportdatasetsfromsklearn.preprocessingimportstandardscalerfromskleatsklearomskleatskleatststsklearetststststskleatststs alerfromsklearn cfromsklearn.pipelineimporthsjdbl (gamma=1.0 ) :returnpipeline () )、STD )、StandardScaler ) y=datasets.make _ moons (noise=0.15,random_state=666(#L1,L2=-1,1 # x _ new=NP.empty ) ) Len ) l1 ) x_new(I,1 )=Gaussian(data,l2 ) #print ) x_new ) PLT.Scatter ) x (y==0,0 ),x ) y===0,1 ) color='yellow'(PLT.show () #PLT.Scatter ) x _ new [ y==0,0 ]、x _ new [ y==0,1 ]、color='red ' )

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