- 博客(16)
- 资源 (2)
- 收藏
- 关注
原创 《机器学习实战》读后备忘
最近在看《机器学习实战》第9章,CART算法用于回归,在python2.7版本下跑,发现代码报错,所以勘误了下。下面只是回归树的部分勘误代码:,class treeNode(): def __init__(self, feat, val, right, left): featureToSplitOn = feat#切分的特征 valueOfSplit =
2016-10-28 17:40:08 962
原创 python备忘
1.元组不能修改,列表可以修改,因为字典的键不能修改,所以只能用元组2.将一个数扩展成列表>>> [1]*5[1, 1, 1, 1, 1]3.对列表排序,sort原地排序,sorted在副本排序>>> x=[3,4,6,1,9,8,0]>>> x.sort()>>> x[0, 1, 3, 4, 6, 8, 9]>>> sorted(x)[0, 1, 3,
2016-08-19 14:36:17 545
原创 R语言使用备忘
1.下载包时突然发现:> install.packages("Rserve")警告: 无法在貯藏處https://cran.cnr.berkeley.edu/bin/windows/contrib/3.1中读写索引警告信息:package ‘Rserve’ is not available (as a binary package for R version 3.1.3)
2016-08-17 14:44:09 2538
原创 查找源码jar包出现指定文字的小程序
package finder;import java.io.IOException;import java.io.InputStream;import java.util.Enumeration;import java.util.List;import java.util.jar.JarEntry;import java.util.jar.JarFile;import java.u
2016-02-25 15:06:47 409
原创 nginx配置备忘
server{ listen 80; #server_name 192.168.50.98; server_name test.xxx.com.cn; location = / {#根目录跳转 #proxy_set_header Host "192.168.50.98";
2016-02-16 16:22:20 322
原创 《MongoDB in action》2012版 翻译 1.1
A database for the modern webIf you’ve built web applications in recent years, you’ve probably used a relational database as the primary data store, and it probably performed acceptably. Most develo
2016-01-18 15:10:29 391
原创 尝试《Java Network Programming 4ed》Chapter 8 Using Sockets翻译
Data is transmitted across the Internet in packets of finite size called datagrams. Each datagram contains a header and a payload. The header contains the address and port to which the packet is going
2016-01-18 09:35:10 1394
原创 尝试《Java Network Programming 4ed》Chapter 11 Readiness Selection翻译
Readiness SelectionFor network programming, the second part of the new I/O APIs is readiness selection, the ability to choose a socket that will not block when read or written. This is primarily of
2016-01-15 14:37:25 520
原创 尝试《Java Network Programming 4ed》Chapter 11 Channels翻译
ChannelsChannels move blocks of data into and out of buffers to and from various I/O sources such as files, sockets, datagrams, and so forth. The channel class hierarchy is rather convoluted, with m
2016-01-13 10:52:56 874
原创 尝试《Java Network Programming 4ed》的部分翻译
position The next location in the buffer that will be read from or written to. This starts counting at 0 and has a maximum value equal to the size of the buffer. It can be set or gotten with
2016-01-08 11:51:09 744
原创 solr备忘
删除索引的Collection API(更多参见https://cwiki.apache.org/confluence/display/solr/Collections+API)http://IP:PORT/solr/admin/collections?action=DELETEREPLICA&collection=IndexName&shard=shardX&replica=core_nod
2016-01-04 15:17:53 760 1
原创 工作遇到的问题备忘
搜索系统出现过的一些问题1. 未解决http://192.168.239.128:8985/solr/pconline_cms/select?q.op=AND&useSynonym=true&fq=%2Bfilter%3A1+%2Bis_wap%3A0+AND+NOT+a_type%3Ay+AND+NOT+pathIds%3A000095064&facet=true&facet.fie
2015-12-18 17:08:00 481
原创 linux命令备忘
一个scp不能使用的解决方法(关键文件 /home/username/.ssh/known_hosts):http://blog.sina.com.cn/s/blog_81cfb9860101ccix.html
2015-11-27 17:43:03 295
原创 Maven配置备忘
项目结构如下图:需要添加项目本地ansj_seg-3.0.jar包,找到pom文件,在节点下添加子节点 fqueue fqueue 1.0 system ${project.basedir}/WebContent/WEB-INF/lib/fqueue-0.
2015-10-29 17:31:30 448
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人