Affine transformations
eli.thegreenplace.net
eli.thegreenplace.net
Affine transforms are linear intermediate transforms in one dimension higher than the source & target spaces. They're intuitively (rather than algebraically) non-linear because we move from 2d to 3d then back, or from 3d to 4d then back.
It can be helpful to think of the translation as a (linear) skew in the added extra dimension.
Note that he shows the trick of making affine functions linear by tacking on one more dimension.
It does hold, always, in the higher dimension. And I feel like that's the most important thing to clearly understand about affine transforms. The entire beauty of the augmented matrix is that you get a class of non-linear transforms in 3d by using linear transforms in 4d. The article was nice, I'm nit picking something that was nearly there. It'd just be nice to be one teensy bit more explicit about what's going on here.
The categorization in the article seems correct.
All that said, the typical regularized version of linear regression with the 'append 1' trick is no longer equivalent to the affine version one may have in mind. The difference is the weight that corresponds to the appended dimension would be regularized by a typical implementation of a regularized linear regression. Unless, of course, special care is taken to remove regularization on the appended dimension.
edit: of course, I agree that we should not say "linear function" when we mean "affine function" in general.
In geometry an "affine vector" (c,v) is said to be the vector v tangent to c -- no longer a vector, a "tangent vector". In your neural network this would be the weights tangent to each bias. If you keep c fixed
Tc[V] = {(c,v) | c fixed, forall v in V}
is clearly a vector space.Here's the fun part: if you tried to consider
T[V] = {(c,v) | forall c in R, v in V}
this is no longer a vector space. But it's a fun structure: at each c, Tc[V] is sorta like (homeomorphic) to the Cartesian product {c} x V
this is a fiber bundle. For example: a torus is near each c the cartesian product of a point and a circle; a "circle squared" is a donut.Now, we don't need to restrict ourselves to c+vx -- we can consider sigmoid(c+vx), which will have tangents (derivatives) to b at each w. For fixed c we still have a vector space with the derivatives dsigmoid/dv, and varying c you have a sigmoid fiber bundle.
https://en.wikipedia.org/wiki/Transformation_matrix
I vaguely remember that the Minkowski space can also be written as an affine, but not particularly how or why, since it should be translation independent? It seemed that the raising/lowering tensor notation is always used.
A subset U ⊂ V of a vector space V is an affine space if there exists a u ∈ U such that U - u = {x - u | x ∈ U} is a vector subspace of V.
I'm unpacking this to read
A subset U of a vector space of V is an affine space if there exists an element u such that U - u, which is exactly equal to x - u for all x in U, is a vector subspace of V.
If I'm reading that right, the right side of the equation is a paranthetic expression, so is it necessary?
D[a*f(x)] = a*Df[x]
D[f(x)+g(x)] = Df(x) + Dg(x)
and the indefinite (without limits) integral is an "antiderivative", right? I.e. y(x) = I(f(x)) is the solution to D[y(x)] = f(x)
Here's the problem: there are multiple solutions to the case where f(x) = 0. Indeed, for any constant y(x) you have D[y(x)] = 0
This is why you're drilled in engineering classes to always add a + C to your indefinite integral. The solution to an indefinite integral is always a class of functions -- the part without +C continues to be linear, but you have to tag that along.This is also why Initial Value Problems like
D[f(x)] = g(x)
always need an initial condition.