Shift and Fourier phase
Penguin learning project
The project uses 342 complete Palmer penguin records: 240 training-pool and 102 held-out rows. The selected training rows determine feature scaling and model parameters. Source CSV
This project trains weights with softmax, unlike the homepage lab, which uses nearest species averages. Same penguin measurements; different classification methods. Predictions can differ.
Signal transformations · Study signal transforms, scattering and their properties.
The project scales bill and flipper measurements using training-row means and scales; its feature vector has two entries.
Consider this concept alongside the project; its source assumptions may differ. These observations do not prove a theorem.
Input: 12 × 2; Held-out evaluation: 102 · #58 · 40.6 mm, 193 mm. Known answer: Adélie; Prediction: Adélie · [≈0.7383, ≈0.2444, ≈0.01737].
Used in these source sections: 7.1 Features that stay steady
A shift multiplies the Fourier coefficient by a complex phase. The magnitude stays unchanged.
The phase identity explains translation invariance of Fourier magnitudes.
Source formula example
illustration · A discrete four-position case illustrates but does not prove the continuous identity.
Symbols
- Input signal.
- Translation.
- Frequency.
- Fourier transform.
- Imaginary unit.
Source formula example
This source example uses its own inputs and assumptions. Editing it does not change the project.
Edit a value or the code, then run the example. This is a finite demonstration, not a proof of the paper’s theorem.
This example’s data flow
Code changed. Reset to restore this example’s data flow.
You choose
input.shift= 1
Initial values in code
x=[1, 2, 0, 0]
Calculated here
Result expression: { original, moved, predicted }
shift=input.shiftUses:input.shiftshifted=x.map((_, i) => x[(i - shift + 4) % 4])Uses:x,shiftoriginal=coefficient(x)Uses:coefficient,xmoved=coefficient(shifted)Uses:coefficient,shiftedphase=(-2 * Math.PI * shift) / 4Uses:shiftpredicted=[ original[0] * Math.cos(phase) - original[1] * Math.sin(phase), original[0] * Math.sin(phase) + original[1] * Math.cos(phase), ]Uses:original,phase
Returns
original- array (2 items): [1, -2]
moved- array (2 items): [-2, -1]
predicted- array (2 items): [-2, -1]
Read numbers from input and return the result. JavaScript basics.
Result
Technical statement
The finite circular example evaluates frequency 1 out of 4. Complex numbers are represented as [real, imaginary]. The source states the continuous Fourier transform identity.
Source: Source expression