This talk presents recent work on learning stochastic dynamics from data using neural networks and generative diffusion models. It begins with an overview of model-based and model-free (generative) approaches to learning stochastic processes and discusses their strengths and limitations. Then, the first part focuses on drift estimation and classification for diffusion processes within a model-based framework. It shows how neural networks can be used to estimate drift functions from N i.i.d. trajectories observed at discrete time points, and how these estimators can be used to construct plug-in classifiers. The second part explores a generative approach based on conditional diffusion models for learning transition kernels of jump-diffusion processes directly from data and generating sample trajectories. This talk is based on joint work with Yuzhen Zhao, Marc Hoffmann, Jiarong Fan, and Quentin Guibert.