Full validation procedures for features selection in classification and regression problems