In my understanding, ML works by mapping a huge input space to a tiny output space, and most of the input space remains unexplored.
In this case the input space is small and you want a quite dense mapping from input to output. I do not think ML applies.