2021
05-02
05-02
吴恩达机器学习练习:SVM支持向量机
1SupportVectorMachines1.1ExampleDataset1%matplotlibinlineimportnumpyasnpimportpandasaspdimportmatplotlib.pyplotaspltimportseabornassbfromscipy.ioimportloadmatfromsklearnimportsvm大多数SVM的库会自动帮你添加额外的特征X₀已经θ₀,所以无需手动添加mat=loadmat('./data/ex6data1.mat')print(mat.keys())#dict_keys(['__header__','__version__','__globals__','X','y'])X...
继续阅读 >