CS229 Note Lecture 02
CS229 Note Lecture 01
Machine Learning Definition Arthur Samuel (1959). Machine Learning: Field of study that gives computers the ability to learn without being explicitly programmed. Tom Mitchell (1998) Well-posed Learning Problem: A computer program is said to learn from experience E with respect to some task T and some performance measure P, if its performance on T, as measured by P, improves with experience E. Supervised Learning Regression The variable that you try to predict is continuous. EXP predicting house price Classification The…
Deploying Kcptun to Make Shadowsocks Great Again!
Kcptun is a simple UDP Tunnel based on KCP which can speed up Shadowsocks significantly. Server (Ubuntu 16.04) Download Kcptun Server from Github Edit configuration file ~/kcptun/config.json listen is your kcp server listen address. For sndwnd and rcvwnd, the author recommend a value of 2048 with 100M broadband. Run Kcptun service Client (macOS) Download Kcptun Client Edit configuration file ~/kcptun/config.json If you are using other broadband bandwidth, set sndwnd and rcvwnd equal to 2048*your_boardband/100Mbps. Run client service Create a new…
Deploy Shadowsocks-go on VPS
Install the latest version of Go Setup GOPATH Edit the configuration file ~/shadowsocks-go/config.json Delete key “server” to enable IPv6 Use the suffix -auth after chacha to enable OTA Run shadowsocks-go service with UDP relay background
About me
朴素贝叶斯
创建词汇表 将文档中的新词集合添加到词汇表 词集模型(set-of-words model) 通过词汇表将文档转换为文档向量, 向量的每个元素表示词汇表中的单词在输入文档中是否出现 词袋模型(bag-of-words model) 文档向量的每个函数表示词汇表中的单词在文档中出现的次数 使用正则表达式切分文本 捕获所有单词, 去掉少于两个字母的字符串, 并将所有字符串转换为小写 p.s. 书中使用的正则表达式为 r’\W*’, 运行时出现警告 split() requires a non-empty pattern match. 官方文档如下: Note: split() doesn’t currently split a string on an empty pattern match. For example: Even though ‘x*’ also matches 0 ‘x’ before ‘a’, between ‘b’ and ‘c’, and after ‘c’, currently these matches are ignored. The correct behavior (i.e. splitting on empty matches too and returning [”, ‘a’, ‘b’, ‘c’, ”]) will be implemented in future…
使用k-临近算法识别手写数字
k-临近算法
Protected: 给Mac命令行工具设置代理
There is no excerpt because this is a protected post.
k-临近算法
分类器 归一化