- Machine Learning with Spark(Second Edition)
- Rajdeep Dua Manpreet Singh Ghotra Nick Pentreath
- 263字
- 2021-07-09 21:07:52
Differential calculus
At the core of calculus lie derivatives, where the derivative is defined as the instantaneous rate of change of a given function with respect to one of its variables. The study of finding a derivative is known as differentiation. Geometrically, the derivative at a known point is given by the slope of a tangent line to the graph of the function, provided that the derivative exists, and is defined at that point.
Differentiation is the reverse of Integration. Differentiation has several applications; like in physics, the derivative of displacement is velocity, and the derivative of velocity is acceleration. Derivatives are mainly used to find maxima or minima of a function.
Within machine learning, we deal with the functions that operate on variables or features having hundreds or more dimensions. We calculate derivatives of the function in each dimension of the variable, and combine these partial derivatives into a vector, which gives us what is called a gradient. Similarly, taking the second-order derivative of a gradient gives us a matrix termed as Hessian.
The knowledge of gradients and hessians helps us define things like directions of descent and rate of descent, which tell us how we should travel in our function space in order to get to the bottom-most point, in order to minimize the function.
The following is an example of a simple objective function (linear regression with weights x, N data points, and D dimensions in a vectorized notation:

The method of Lagrange multipliers is a standard way in calculus to maximize or minimize functions when there are constraints involved.
- Mastering Proxmox(Third Edition)
- 高性能混合信號(hào)ARM:ADuC7xxx原理與應(yīng)用開(kāi)發(fā)
- 商戰(zhàn)數(shù)據(jù)挖掘:你需要了解的數(shù)據(jù)科學(xué)與分析思維
- 數(shù)據(jù)中心建設(shè)與管理指南
- PIC單片機(jī)C語(yǔ)言非常入門與視頻演練
- 工業(yè)機(jī)器人現(xiàn)場(chǎng)編程(FANUC)
- Associations and Correlations
- 數(shù)據(jù)挖掘方法及天體光譜挖掘技術(shù)
- 嵌入式操作系統(tǒng)
- 數(shù)據(jù)掘金
- MATLAB/Simulink權(quán)威指南:開(kāi)發(fā)環(huán)境、程序設(shè)計(jì)、系統(tǒng)仿真與案例實(shí)戰(zhàn)
- Grome Terrain Modeling with Ogre3D,UDK,and Unity3D
- 學(xué)會(huì)VBA,菜鳥(niǎo)也高飛!
- MCGS嵌入版組態(tài)軟件應(yīng)用教程
- 大數(shù)據(jù)技術(shù)基礎(chǔ):基于Hadoop與Spark