In this paper, we study the problem of non parametric estimationof the stationary marginal density f of an α or aβ-mixing process, observed either in continuous time or indiscrete time. We present an unified framework allowing to dealwith many different cases. We consider a collection of finitedimensional linear regular spaces. We estimate f using aprojection estimator built on a data driven selected linear spaceamong the collection. This data driven choice is performed via theminimization of a penalized contrast. We state non asymptotic riskbounds, regarding to the integrated quadratic risk, for ourestimators, in both cases of mixing. We show that they areadaptive in the minimax sense over a large class of Besov balls.In discrete time, we also provide a result for model selectionamong an exponentially large collection of models (non regularcase).