Machine learning algorithm (ANN) - simplified. See the use cases with R to understand the application