Ridge Regression with automatic selection of the penalty