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 ' )