- 博客(11)
- 资源 (1)
- 收藏
- 关注
转载 wechat分析
---------------------------------------------------------------------------------------------------0. itchat最近研究了一些微信的玩法,我们可以通过网页版的微信微信网页版,扫码登录后去抓包爬取信息,还可以post去发送信息。然后发现了itchat这个开源项目,作者是@LittleCoder,已...
2018-02-09 18:07:56
956
原创 眼尾花 找的
如果说对机器学习或统计学习里最常见的示例数据集进行排序,那么鸢尾花数据集一定排的上号,而且不同于事后诸葛的泰坦尼克生还者数据,这个数据集理论上是可以拿来做预测的。设想某个清晨,你漫步花园并驻足于一朵鸢尾花前,然后你掏出尺子,测量了花萼长度、花萼宽度、花瓣长度跟花瓣宽度后静默片刻,淡淡的说到:“果然又是个维吉尼亚鸢尾。”留下一堆路人甲风中凌乱。但其实你是做不到的,新西兰统计学家Thomas
2018-02-07 14:59:41
458
转载 nltk 机器学习。文本分类一整套
import nltkfrom nltk.corpus import stopwordsfrom nltk.stem import WordNetLemmatizerimport csvdef preprocessing(text): #text = text.decode("utf8") # tokenize into words tokens = [word f
2018-02-07 14:47:06
926
转载 6.2 文本分类 NLTK基础教程--用NLTK和Python库构建机器学习应用
import nltkfrom nltk.corpus import stopwordsfrom nltk.stem import WordNetLemmatizerimport csvdef preprocessing(text): #text = text.decode("utf8") # tokenize into words tokens = [word f
2018-02-07 14:20:07
430
转载 windows 定时运行R脚本
最近日报比较多,虽然写了一些R的脚本,但是每次都要挨个执行一下比较麻烦,所以就研究了一下在windows下做定时计划任务来执行R脚本。一、在命令行执行R脚本貌似在命令行有两种方式执行R脚本,其中一种个人觉得比较麻烦就略过了,这里用的第二种Rscript .R 参数1,参数2........使用这个参数之前,需要先将R/bin/64or32的路径加入到path环
2018-02-06 17:03:02
5515
原创 NLP NLTK stopwords
from nltk.corpus import stopwordsstoplist = stopwords.words('english')text = "this is just a test"cleanwordlist = [word for word in text.lower().split() if word not in stoplist]cleanwordlistLook
2018-02-05 11:55:46
9667
2
原创 NLP学习笔记
import urllibfrom bs4 import BeautifulSoupimport nltk# urllib is use to download the html content of the web linkresponse = urllib.request.urlopen('http://python.org/')#You can read the entire co
2018-02-05 11:10:57
322
转载 大部长python连接SQL
def eMysql(mysql_host,mysql_port,mysql_user,mysql_password,mysql_db,sql): try: db = pymysql.connect(host=mysql_host,port=mysql_port,user=mysql_user, password=mysql_password, db=mysql_db,ch
2018-01-15 17:52:44
180
原创 R爬虫新闻文章
library(rjson)library(rvest)library(tcltk)library(RMySQL)library(DBI)library(sqldf)#76,6504469694752227853 1, 6475547135747031309pb <- tkProgressBar("进度","已完成 %", 0, 100) #开启进度条以及表头start<-S
2018-01-15 17:27:43
652
转载 VBA转图片的出空白解决方法
Sub 导出为图片() Dim f$ f = "D\DRdlb.JPG" If Dir(f) <> "" Then Kill f Sheets("sheet1").Select Range("A1:Q87").Select Selection.Copy Selection.CopyPicture '选区复制为图片 With A
2018-01-15 17:25:27
5591
3
NLTK基础教程——用NLTK和Python库构建机器学习应用
2018-02-05
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅