import numpy as np import pandas as pd import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D from sklearn.preprocessing import LabelEncoder from sklearn.neighbors import KNeighborsClassifier from sklearn.decomposition import PCA from sklearn.model_selection import train_test_split from sklearn.linear_model import LogisticRegression #加载数据返回dataframe def load_data(): data = pd.read_csv('D:\data\lgdata.csv',index_col=False, header=None,names=['target','x1','x2','x3','x4','x5', 'x6','x7','x8','x9','x10','x11','x12', 'x13','x14','x15','x16','x17','x18','x19',
机器学习之逻辑回归mushroom数据集
最新推荐文章于 2024-02-07 11:51:36 发布