def check_detector(detector):
    """Checks if fit and decision_function methods exist for given detector

    Parameters
    ----------
    detector : combo.models
        Detector instance for which the check is performed.

    """
    if not hasattr(detector, 'fit') or not hasattr(detector,
        'decision_function'):
        raise AttributeError('%s is not a detector instance.' % detector)
