print("归一化后X_data数据:\n",X_data) print("独热编码后独热编码数据:\n",Y) X=X_data.reshape(-1,8,8,1) #张量结构,转换为图片的格式(batch,height,width,channels) x_train,x_test,y_train,y_test=train_test_split(X,Y,test_size=0.2, random_state=0,stratify=Y) #训练集测试集划分 ...
importxgboost as xgbimportnumpy as npimportpandas as pdfromsklearn.model_selectionimporttrain_test_splitif__name__=='__main__': iris_feature_E="sepal lenght","sepal width","petal length","petal width"iris_feature="the length of sepal","the width of sepal","the length of petal","the...