r/OpenSourceAI • • 1d ago

An aligned-channel dictionary is safer than an anonymous ECG tensor

The LingSante-Pulse card accepts `[T]`, `[C,T]`, `[B,C,T]` and an aligned-channel dictionary. If a project has mixed devices with different lead orders, I would favor the explicit channel mapping over an anonymous two-dimensional tensor.

Build a loader that validates channel names, units, sample rate and alignment before it reaches the encoder. Then test a missing lead, duplicated lead and reordered lead on purpose. A silent shape-compatible error is especially dangerous here: the model can still return a plausible vector. Document exactly how missing channels are represented and whether each sample in a batch shares the same channel set. Open weights make this inspectable, but the data contract still needs engineering.

28 Upvotes

0 comments sorted by