Studies of stability and robustness for artificial neural networks and boosted decision trees