fix bug when clf does not have a coef_ attribute