
数据挖掘
Frozen2022
这个作者很懒,什么都没留下…
展开
-
BeautifulSoup只获取当前节点的text,而不包含子节点text
例如:<div> hello <a> world</a> </div>希望只返回hello.做法:查找时,text参数为True.print(soup.find("div",text=True).get_text());原创 2022-02-16 17:48:41 · 1968 阅读 · 0 评论 -
Weka大数据内存不足
1、旧版本中设置RunWeka.ini 中的 maxheap=1024M 2、新版本中去掉此变量(注意:不能加入此变量,或设置 maxstack=1024m )。而是使用javaOpts选项,比较简单的做法如下:javaOpts=-Xmx1024m Weka官方给出的解释: Yes, we removed the maxheap setting because Or...原创 2018-10-31 10:22:11 · 2523 阅读 · 2 评论 -
【解决】Weka导入csv或arrf,报错:nominal value not declared in header ,read token
原因有几种:(前1 种是老外给出的答案)1、you have some values occurring that are not exactly as declared in the headerIf you get this error message than you seem to have declared a nominal attribute in the ARFF...原创 2018-10-31 11:32:44 · 6146 阅读 · 0 评论