摘要:
函数能正常工作,但函数返回时运行到}抛出异常,可能原因有: 使用了没有分配的内存空间 指针越界 多重释放(如使用了浅拷贝,对同一区域释放了两次) 阅读全文
摘要:
从 http://oldlinux.org/Linux.old/bochs/ 下载 Linux0.00 源码 linux-0.00-050613.zip, 并解压: 解压 linux-0.00-rh9.tar.gz: 得到这三个文件: 修改 head.s,在最开始添加 .code32,否则会出现“E 阅读全文
摘要:
安装 bochs sudo apt-get install bochs sudo apt-get install bochs-x sudo apt-get install bochsbios sudo apt-get install bochs-sdl sudo apt-get install bx 阅读全文
摘要:
[toc] 1. 对数几率回归 考虑二分类任务,其输出标记 $y \in \{0, 1\}$,记线性回归模型产生的预测值 $z=\boldsymbol{w}^T\boldsymbol{x} + b$ 是实值,于是我们需要一个将实值 $z$ 转换为 $0/1$ 的 $g^{ }(\cdot)$。 最理 阅读全文
摘要:
查找中文字体 设置Matplotlib字体 阅读全文
摘要:
取消自动换行 把textwidth调大: 取消自动折行 阅读全文
摘要:
[toc] 1 多元线性回归 更一般的情况,数据集 $D$ 的样本由 $d$ 个属性描述,此时我们试图学得 $$ f(\boldsymbol{x}_i) = \boldsymbol{w}^T\boldsymbol{x}_i+b \text{,使得} f(\boldsymbol{x}_i) \sime 阅读全文
摘要:
[toc] 1. 线性模型 给定 $d$ 个属性描述的示例 $\boldsymbol{x} = (x_1; x_2; ...; x_d)$,其中 $x_i$ 为 $\boldsymbol{x}$ 在第 $i$ 个属性上的取值, 线性模型 ( linear model )试图学得一个通过属性的线性组合 阅读全文
摘要:
[toc] 1. 经验误差与过拟合 错误率 ( error rate ):分类错误的样本数 a 占样本总数 m 的比例,即 $E = a / m$ 。 精度 ( accuracy ):精度 = 1 错误率 = $1 a / m = (1 \frac{a}{m}) \times 100\%$ (常用百 阅读全文
摘要:
[toc] 1. 机器学习的定义 A computer program is said to learn from experience E with respect to some task T and some performance measure P, if its performance 阅读全文