赞
踩
pip install scikit-learn
适用算法一:k邻算法
from sklearn.neighbors import KNeighborsClassifier
model = KNeighborsClassifier(n_neighbors=5) # n_neighbors=5 为考虑最邻近的5个点,默认为 5
适用算法二:支持向量机(SVC)
from sklearn
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。