In-Sample and Out-of-Sample Model Selection and Error Estimation for Support Vector Machines