项目场景:
由于毕设是做基于STACKING集成学习的模式识别,所以对机器学习的PYTHON包用的比较多,现把这些库做一个总结
问题描述:
from sklearn.linear_model import LogisticRegression
from sklearn.neighbors import KNeighborsClassifier
from sklearn.naive_bayes import GaussianNB
from sklearn.ensemble import RandomForestClassifier
from mlxtend.classifier import StackingClassifier
from sklearn.metrics import accuracy_score
from sklearn.model_selection import train_test_split
import pandas as pd
#pandas的基础是Numpy(提供高性能的矩阵运算&#