Refactor train_vector_classifier and train_vector_regression
As stated in #453 we aim at reducing the cyclomatic complexity of functions.
This issue addresses the 2 functions in iota2 with the highest complexity:
They are in otb_app_bank.py
Edited by Arthur Vincent