safe_asarray is already called in _BaseRidge.fit, so the conversion either needs to go before this. I'd prefer to check this within ridge_regression, but this would call for placing the safe_asarray logic within ridge_regression as well.