ml
Weight Initialization
Xavier Uniform/Normal, He Uniform/Normal, LeCun Normal, Random, Zeros, Ones — histogram of 20 samples vs theoretical PDF, per-activation recommendations.
Configuration
Formula
N(0, σ²), σ = √(2 / fan_in)
Computed: σ = 0.125
Sample mean
-0.0080527
theory: 0
Sample variance
0.012855
theory: 0.015625
| w1 | w2 | w3 | w4 | w5 | w6 | w7 | w8 | w9 | w10 |
|---|---|---|---|---|---|---|---|---|---|
| 0.2601 | -0.0240 | 0.0983 | -0.1192 | -0.1258 | 0.0037 | -0.0027 | 0.0154 | -0.2477 | -0.1419 |
| 0.1507 | 0.1057 | 0.0140 | -0.0922 | 0.0214 | -0.0131 | 0.0228 | 0.0262 | -0.0057 | -0.1069 |
Weight Distribution
Sample histogramTheoretical distribution
Method Comparison
| Method | Parameter | Notes |
|---|---|---|
| Xavier Uniform | limit = 0.1768 | — |
| Xavier Normal | σ = 0.1021 | — |
| He Uniform | limit = 0.2165 | ✓ recommended |
| He Normal | σ = 0.125 | ✓ recommended |
| LeCun Normal | σ = 0.08839 | — |
| Random Normal | σ = 0.01 | — |
| Random Uniform | limit = 0.05 | — |
| Zeros | — | ⚠ symmetry |
| Ones | — | ⚠ symmetry |
Tip: Click any row to switch method. Recommended methods are highlighted for the selected activation. He Normal is generally preferred for ReLU networks; Xavier for saturating activations.