摘要:
#导包 import nltk from nltk.corpus import stopwords from nltk.stem import WordNetLemmatizer import csv import numpy as np from sklearn.model_selection import train_test_split from sklearn.feature... 阅读全文
摘要:
#加载numpy包 import numpy #加载sklearn包 from sklearn.datasets import load_iris data=load_iris() #鸢尾花花瓣长度的数据 petal_length=numpy.array(list(len[2] for len in data['data'])) print(petal_length) #计算鸢尾花花瓣... 阅读全文