from setuptools import setup
from Cython.Build import cythonize
import numpy as npsetup(name='_mask',ext_modules=[Extension('_mask',['_mask.pyx']include_dirs=[np.get_include()])])
一、交叉验证 cross_val_score 的使用
1、不用交叉验证的情况:
from __future__ import print_function
from sklearn.datasets import load_iris
from sklearn.model_selection import train_test_split
from sklearn.neighbors import KNeighborsClassifieriris…