Machine Learning Aided Reliability Analysis For Spatially Varying Slopes In 2D And 3D