Taking on the curse of dimensionality in joint distributions using neural networks