The paper discusses the basic concepts and theory of classical machine learning. For successful practical development of machine learning methods and algorithms, examples of their use are given, including the program code for the well-known PyTorch framework.