摘要: # 多元线性回归模型 from sklearn.datasets import load_boston from sklearn.model_selection import train_test_split from sklearn.linear_model import LinearRegression from sklearn.preprocessing import Polynomi... 阅读全文
posted @ 2018-12-22 02:06 梁柏钧 阅读(156) 评论(0) 推荐(0) 编辑
摘要: dict_keys(['data', 'target', 'feature_names', 'DESCR']) 506 rows × 13 columns [-0.12316272] 30.97867776261804 Out[51]: array([[1.00000e+00, 6.52000e+0 阅读全文
posted @ 2018-12-10 11:40 梁柏钧 阅读(133) 评论(0) 推荐(0) 编辑
摘要: (1671,) ['ham' 'ham' 'ham' ... 'ham' 'spam' 'ham'] nb_confusion_matrix: [[1447 0] [ 48 176]] nb_classification_repert: precision recall f1-score suppo 阅读全文
posted @ 2018-12-05 22:27 梁柏钧 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 1.简述分类与聚类的联系与区别。 简述什么是监督学习与无监督学习 聚类:不知道答案的前提下,按照一定的相似性聚集元素。 分类:在有一定标准下,知道答案地进行元素分组。 监督学习:按照已知的条件,训练某种学习机器(即得到某种目标函数),使它能够对未知类别的样本进行分类。 无监督学习:实现的目标只是把相 阅读全文
posted @ 2018-11-22 00:03 梁柏钧 阅读(123) 评论(0) 推荐(0) 编辑
摘要: (427, 640, 3) array([[[174, 201, 231], [174, 201, 231], [174, 201, 231], ..., [250, 251, 255], [250, 251, 255], [250, 251, 255]], [[172, 199, 229], [1 阅读全文
posted @ 2018-11-12 23:45 梁柏钧 阅读(307) 评论(0) 推荐(0) 编辑
摘要: array([ 5, 1, 7, 2, 3, 10, 9, 9, 5, 8, 9, 0, 8, 9, 2, 6, 6, 5, 8, 9]) array([0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0 阅读全文
posted @ 2018-11-10 16:11 梁柏钧 阅读(125) 评论(0) 推荐(0) 编辑
摘要: dict_keys(['data', 'target', 'target_names', 'DESCR', 'feature_names']) sklearn.utils.Bunch Out[5]: array([[5.1, 3.5, 1.4, 0.2], [4.9, 3. , 1.4, 0.2], 阅读全文
posted @ 2018-11-05 20:41 梁柏钧 阅读(153) 评论(0) 推荐(0) 编辑
摘要: from datetime import datetime print(datetime.now()) now=datetime.now() date= datetime.strftime(now,"%Y-%m-%d %H:%M:%S") date1 = '{0:%Y}年{0:%m}月{0:%d}日{0:%H}时{0:%M}分{0:%S}秒'.format(now) print(date1) n... 阅读全文
posted @ 2018-10-25 21:58 梁柏钧 阅读(83) 评论(0) 推荐(0) 编辑
摘要: 英文歌 中文小说 阅读全文
posted @ 2018-10-17 22:45 梁柏钧 阅读(75) 评论(0) 推荐(0) 编辑
摘要: 列表:可以修改,[],有序的 元组:不可修改,(),其中的元素类型不可以不相同,有序的 字典:不可修改,{},键:值,无序,字典是一种映射类型,它的元素是键值对,字典键的类型不 可 变。 集合:可以修改,{}/set(),创建一个空集合必须用 set(),并且是无序的。里面没有重复值。 阅读全文
posted @ 2018-10-11 11:26 梁柏钧 阅读(152) 评论(0) 推荐(0) 编辑