Finite approximation inequality
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.
Approximation and depth · Study approximation error and network size under stated conditions.
The project supplies finite observations and fitted parameters. A held-out sample does not establish population bounds or prove a theorem.
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: 6.5 Removing connections
Compare an approximation error with C divided by the square root of the number of terms.
This is the form of the generic approximation result used in pruning.
Source formula example
illustration · This one exact fit checks the inequality for its invented values; it does not establish the source existence theorem.
Symbols
- Target element in the normed space.
- Selected approximating elements.
- Real coefficients.
- Nonnegative constant in the bound.
- Positive number of terms.
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.C= 2
Initial values in code
g=1functions=[1, 1, 1, 1]coefficients=[0.25, 0.25, 0.25, 0.25]
Calculated here
Result expression: { approximation, error, upperBound, holds: error <= upperBound }
approximation=functions.reduce((sum, v, i) => sum + v * coefficients[i], 0)Uses:functions,coefficientserror=Math.abs(g - approximation)Uses:g,approximationupperBound=input.C / Math.sqrt(functions.length)Uses:input.C,functions
Returns
approximation- 1
error- 0
upperBound- 1
holds- true
Read numbers from input and return the result. JavaScript basics.
Result
Technical statement
The source lemma takes a Hilbert space, a set F with sup over f in F of ‖f‖ ≤ C, and g in its convex hull. For each positive integer n it asserts there exist n elements of F and nonnegative coefficients summing to 1 with the displayed error bound. The toy uses F = {1}, g = 1, four equal coefficients, and a chosen C at least 1.
Source: Source expression