上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 20 下一页
摘要: import csv from sklearn.feature_extraction import DictVectorizer from sklearn import preprocessing from sklearn import tree film_data = open('fime.csv 阅读全文
posted @ 2021-10-22 14:20 帅超007 阅读(32) 评论(0) 推荐(0) 编辑
摘要: Knn是需要监督的学习,也需要规定有几个特征 meanShift是不需要监督,也不需要规定类别的,他是通过算法自动位移归类的 # 加载数据 import pandas as pd import numpy as np from matplotlib import pyplot as plt from 阅读全文
posted @ 2021-10-22 14:18 帅超007 阅读(49) 评论(0) 推荐(0) 编辑
摘要: Kmeans是需要指定类别的不需要监督的学习 # 加载数据 import pandas as pd import numpy as np from matplotlib import pyplot as plt from sklearn.cluster import KMeans from skle 阅读全文
posted @ 2021-10-22 14:16 帅超007 阅读(245) 评论(0) 推荐(0) 编辑
摘要: import pandas as pd import numpy as np from matplotlib import pyplot as plt from sklearn.linear_model import LogisticRegression from sklearn.metrics i 阅读全文
posted @ 2021-10-22 14:15 帅超007 阅读(77) 评论(0) 推荐(0) 编辑
摘要: import pandas as pd import numpy as np from matplotlib import pyplot as plt if __name__ == '__main__': ''' 逻辑回归 ''' # load the data data = pd.read_csv 阅读全文
posted @ 2021-10-22 14:14 帅超007 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 在用idea连接虚拟机操作的时候包下载好了但是还是标红 非常的难受,最简单直接亲测可用的方法是找到你的 maven依赖下面的maven-assembly-plugin 把他删掉然后重新下载依赖就可以了 阅读全文
posted @ 2021-10-22 14:09 帅超007 阅读(796) 评论(0) 推荐(0) 编辑
摘要: 在使用pycharm的时候直接在setting里面下载需要的包的时候总是下载失败, 我个人认为是因为网速问题,所以这时候想要下在需要的包只需要在控制台通过国内镜像就可以下载了 python.exe -m pip install name -i http://pypi.douban.com/simpl 阅读全文
posted @ 2021-10-22 14:07 帅超007 阅读(440) 评论(0) 推荐(0) 编辑
摘要: 在用pycharm爬取个别网页信息的时候,里面的中文都是乱码, 解决方法很简单,只需要设置一下字符集就好, 也就是在代码最前面添加如下代码 #-*- coding : utf-8-*- # coding:unicode_escape 阅读全文
posted @ 2021-10-22 14:04 帅超007 阅读(254) 评论(1) 推荐(0) 编辑
摘要: 打开settings 如图,点击加号然后打开manage repositories 添加https://mirrors.aliyun.com/pypi/simple/这样一个镜像链接就可以了 下载速度还很快 阅读全文
posted @ 2021-10-22 14:02 帅超007 阅读(1086) 评论(0) 推荐(0) 编辑
摘要: 用户表:ID userName userPwd userState userId 稿件表:ID FileName FileCon FilePro FileOpi FileNum IfRep IfOk userState: 1:普通用户==》浏览稿件 2:投稿人==》我要投稿、修改稿件、退审意见、查看 阅读全文
posted @ 2021-09-24 23:23 帅超007 阅读(156) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 20 下一页