Reconstructing a family of sinusoidal functions from an incomplete or fragmented dataset using Pytorch