第十篇:线性代数-矩阵转置
矩阵转置 假设我们有一个矩阵 $$ w= \begin{matrix} 1&2&3 \ 4&5&6 \ 7&8&9 \ \end{matrix} $$ 则矩阵的转置 $$ w^T= \begin{matrix} 1&4&7 \ 2&…
第十一篇:线性代数-距离公式汇总
距离公式汇总 假设$n$维空间中有两个点$x_i$和$x_j$,其中$x_i = (x_i^{(1)},x_i^{(2)},\cdots,x_i^{(n)})^T$,$x_j = (x_j^{(1)},x_j^{(2)},\cdots,x_j^{(n)})^T$。 欧式距离 $$ d(x_i,xj) = \sqrt{\sum…
第一篇:手写数字识别
手写数字识别应用程序 导入模块 import os import pylab import numpy as np from PIL import Image import matplotlib.pyplot as plt from sklearn.svm import SVC %matplotlib inline 图像转向量 def img2ve…