Deep Neural Networks are Adaptive to Function Regularity and Data Distribution in Approximation and Estimation (Journal of Machine Learning Research, 2026)