adapted parameters to minimize classification error