Advancing Inference In Supervised Learning Procedures Via Permutation Tests And Importance Sampling, With Applications To Environmental Science