用knn算法实现鸢尾花数据分类任务
解题库:
knn(from sklearn.neighbors import KNeighborsClassifier)
工具库:
加载数据(import pandas as pd)、划分样本_训练集vs测试集(from sklearn.model_selection import train_test_split)、图示(import matplotlib.pyplot as plt)
knn(from sklearn.neighbors import KNeighborsClassifier)
加载数据(import pandas as pd)、划分样本_训练集vs测试集(from sklearn.model_selection import train_test_split)、图示(import matplotlib.pyplot as plt)