The aim of this program is to analyse images and be able to class them depending of their nature. The support vector machine algorithm is used to classify the pictures. The training data is composed of 760 images, separated in 3 different classes (C
本文代码来之《数据分析与挖掘实战》,在此基础上补充完善了一下~
代码是基于SVM的分类器Python实现,原文章节题目和code关系不大,或者说给出已处理好数据的方法缺失、源是图像数据更是不见踪影,一句话就是练习分类器(▼㉨▼メ)
源代码直接给好了K=30,就试了试怎么选的,挑选规则设定比较单一,有好主意请不吝赐教哟
# -*- coding: utf-8 -*-
Created on Sun Aug 12 12:19:34 2018
author: Luove
from sklearn