Machine Learning Aided Reliability Analysis for Spatially Varying Slopes in 2D and 3D