optimize parameters for some classifiers