There are three main approaches. In supervised learning, the model learns from labelled examples, such as emails marked as spam or not. In unsupervised learning, it finds structure in unlabelled data, such as groups of similar customers. In reinforcement learning, it learns by trial and error, rewarded for good outcomes.
Machine learning runs much of digital marketing out of sight. Social feeds, ad delivery, search rankings, product recommendations and fraud detection all depend on it. Deep learning is a subset of machine learning, and generative AI is in turn built on deep learning. Whatever the method, a model is only as good as the data it learns from.