Double machine learning for partial correlations and partial copulas