Checkpoint
One last thing before we move on. Same surface as a write step — but the lesson doesn't complete until this passes.
Demonstrate BOTH properties that make CNNs work. (1) Translation: run the [-1, 1] kernel over two signals whose jump sits at different positions and print f"{name}: up-jump found at window {i}" for each — same kernel, both found. (2) Weight sharing: an 8-input dense layer mapping to 8 outputs needs 8*8 weights; the kernel needs len(kernel). Print f"dense layer params: {d} conv kernel params: {c}" and f"parameter ratio: {d // c}x".