AI基础(1):Gradient,-Jacobian-matrix-and-Hessian-matrix

文章来自微信公众号“科文路”,欢迎关注、互动。转载须注明出处。

Gradient, Jacobian matrix and Hessian matrix

这两周,扮演了几场面试官。最大的感触是,应届生在基础数学知识的储备上存在很大的问题。所以我决定把我认为重要的 AI 基础知识拿出来过一下。

用英文写的(水平一般),帮助各位了解下术语。

1 Gradient

The gradient of f is defined as the unique vector field whose dot product with any unit vector vat each point x is the directional derivative of ff along v. That is,

(f(x))v=Dvf(x)

e.g. in coordinate system,

沿着 i 方向的导数,就是 i 轴方向的分量

f=fx1e1++fxnen

Attention: the relationship to derivation

2 Jacobian matrix

雅可比矩阵的重要性在于它体现了一个可微方程与给出点的最优线性逼近。 因此,雅可比矩阵类似于多元函数的导数。

The Jacobian of a vector-valued function in several variables generalizes the gradient of a scalar-valued function in several variables, which in turn generalizes the derivative of a scalar-valued function of a single variable. If f is differentiable at a point p in Rn, then its differential is represented by Jf(p). In this case, the linear transformation represented by Jf(p) is the best linear approximation of f near the point p, in the sense that

f(x)f(p)=Jf(p)(xp)+o(|xp|)( as xp)

This approximation specializes to the approximation of a scalar function of a single variable by its Taylor polynomial of degree one, namely

f(x)f(p)=f(p)(xp)+o(xp)(as xp)

The Jacobian matrix represents the differential of f at every point where f is differentiable.

J=[fx1fxn]=[f1x1f1xnvdots fmx1fmxn]

3 Hessian

H(f(x))=J(f(x))T

H=[2fx122fx1,x22fx1,xn 2fx2,x12fx222fx2,xn  2fxn,x12fxn,x22fxn2]

即在每一个变化方向()上做线性逼近(Jacobian),这可能可以体现变化程度?

~~

都看到这儿了,不如关注每日推送的“科文路”、互动起来~

赞赏请前往公众号菜单栏~~

至少点个赞再走吧~

AI基础(1):Gradient,-Jacobian-matrix-and-Hessian-matrix

https://xlindo.com/kewenlu2023/posts/1a64cb5/

Author

xlindo

Posted on

2023-05-25

Updated on

2024-01-16

Licensed under