hyperparameter tuning for inspection models