摘要: 一、使用scikit-learn中的kNN 注意:predict传入的参数需为矩阵 二、自建py文件实现 import numpy as np from math import sqrt from collections import Counter class KNNClassifier: def 阅读全文
posted @ 2022-02-21 20:20 Kyle0418 阅读(181) 评论(1) 推荐(0) 编辑