"Training is getting computers to recognise a pattern by giving positive and negative examples"
I think you are only talking about binary classification. Even multi class classification is at a significant state of the art level now. But yes, ultimately this is a pattern recognition process.