def delete_fit_attrs(est):
    """
    Removes any fit attribute from an estimator.
    """
    fit_keys = [k for k in est.__dict__.keys() if k.endswith('_')]
    for k in fit_keys:
        del est.__dict__[k]
    return est