import sys
import numpy as np
import pandas as pd
pd.set_option('display.max_rows',999)
pd.set_option('display.width',500)
pd.set_option('display.notebook_repr_html',True)
import matplotlib
import matplotlib.pyplot as plt
from sklearn.model_selection import train_test_split
from sklearn import metrics,datasets
from collections import Counter
import statsmodels.api as sm# 线性回归
from sklearn.preprocessing import PolynomialFeatures
from sklearn.linear_model import LinearRegression
%matplotlib inline
import seaborn as sns
from sklearn.neighbors import KNeighborsClassifier
from statsmodels.api import OLS
导包import sysimport numpy as npimport pandas as pdpd.set_option('display.max_rows',999)pd.set_option('display.width',500)pd.set_option('display.notebook_repr_html',True)import matplotlibimport matplotlib.pyplot as pltfrom sklearn.model_selection im