cli/streamingphish/streamingphish/configuration.py
def active_classifier(self, new_classifier):
        """
        Sets classifier name to config object and saves to the yaml file on disk.

        Args:
            new_classifier (string): Name of classifier to active.

        Raises:
            ValueError: If classifier is active in config but missing from database.
        """
        if not self._phish_db.verify_classifier_existence(new_classifier):
            raise ValueError('Classifier not found in database.')

        self.config['classifier']['active'] = new_classifier
        self._save_config()
        tqdm.tqdm.write("[+] Activated new classifier, {}, in "
                        "configuration.".format(new_classifier))

        Sets classifier name to config object and saves to the yaml file on disk.

        Args:
            new_classifier (string): Name of classifier to active.

        Raises:
            ValueError: If classifier is active in config but missing from database.
        
Sets classifier name to config object and saves to the yaml file on disk.
Sets classifier name to config object and saves to the yaml file on disk .
def active_classifier(self, new_classifier):
        if not self._phish_db.verify_classifier_existence(new_classifier):
            raise ValueError('Classifier not found in database.')
        self.config['classifier']['active'] = new_classifier
        self._save_config()
        tqdm.tqdm.write("[+] Activated new classifier, {}, in "
                        "configuration.".format(new_classifier))
def active_classifier ( self , new_classifier ) : if not self . _phish_db . verify_classifier_existence ( new_classifier ) : raise ValueError ( 'Classifier not found in database.' ) self . config [ 'classifier' ] [ 'active' ] = new_classifier self . _save_config ( ) tqdm . tqdm . write ( "[+] Activated new classifier, {}, in " "configuration." . format ( new_classifier ) )
Sets classifier name to config object and saves to the yaml file on disk.
Sets classifier name to config object and saves to the yaml file on disk .
"""
        Sets classifier name to config object and saves to the yaml file on disk.

        Args:
            new_classifier (string): Name of classifier to active.

        Raises:
            ValueError: If classifier is active in config but missing from database.
        """
If classifier is active in config but missing from database.
If classifier is active in config but missing from database .
ValueError
self
new_classifier
Name of classifier to active.
Name of classifier to active .