环境准备
## 基础工具
import numpy as np
import pandas as pd
import warnings
import matplotlib
import matplotlib.pyplot as plt
import seaborn as sns
from scipy.special import jn
from IPython.display import display, clear_output
import time
from os import path
warnings.filterwarnings('ignore')
%matplotlib inline
## 数据处理
from sklearn import preprocessing
## 数据降维处理的
from sklearn.decomposition import PCA,FastICA,FactorAnalysis,SparsePCA
## 模型预测的
import lightgbm as lgb
import xgboost as xgb
## 参数搜索和评价的
from sklearn.model_selection import GridSearchCV,cross_val_score,StratifiedKFold,train_test_split
from sklearn.metrics import mean_squared_error, mean_absolute_error
#其它
from scipy.stats import boxcox
from wordcloud import WordCloud
import jieba
from pylab import mpl
from scipy.stats import mode