cli/streamingphish/streamingphish/cli.py
def _single_classifier_metrics(self):
        """
        Solicits user for the name of a trained classifier and prints metrics.
        """
        while True:
            classifier_name = input("Please enter the name of the classifier you want"
                                    " accuracy metrics from: ")
            # Make sure it's in the database.
            if classifier_name not in self._phish_db.available_classifiers():
                tqdm.tqdm.write("[-] Sorry, classifier not found in the database."
                                " Please try again.")
                continue

            # Verified it's in the database - go fetch it.
            artifacts = self._phish_db.fetch_classifier(classifier_name)
            tqdm.tqdm.write("[+] Accuracy metrics for classifier {}:".format(classifier_name))
            tqdm.tqdm.write(json.dumps(artifacts[classifier_name]['metrics'], indent=4))
            break

        Solicits user for the name of a trained classifier and prints metrics.
        
Solicits user for the name of a trained classifier and prints metrics.
Solicits user for the name of a trained classifier and prints metrics .
def _single_classifier_metrics(self):
        while True:
            classifier_name = input("Please enter the name of the classifier you want"
                                    " accuracy metrics from: ")
            if classifier_name not in self._phish_db.available_classifiers():
                tqdm.tqdm.write("[-] Sorry, classifier not found in the database."
                                " Please try again.")
                continue
            artifacts = self._phish_db.fetch_classifier(classifier_name)
            tqdm.tqdm.write("[+] Accuracy metrics for classifier {}:".format(classifier_name))
            tqdm.tqdm.write(json.dumps(artifacts[classifier_name]['metrics'], indent=4))
            break
def _single_classifier_metrics ( self ) : while True : classifier_name = input ( "Please enter the name of the classifier you want" " accuracy metrics from: " ) if classifier_name not in self . _phish_db . available_classifiers ( ) : tqdm . tqdm . write ( "[-] Sorry, classifier not found in the database." " Please try again." ) continue artifacts = self . _phish_db . fetch_classifier ( classifier_name ) tqdm . tqdm . write ( "[+] Accuracy metrics for classifier {}:" . format ( classifier_name ) ) tqdm . tqdm . write ( json . dumps ( artifacts [ classifier_name ] [ 'metrics' ] , indent = 4 ) ) break
Solicits user for the name of a trained classifier and prints metrics.
Solicits user for the name of a trained classifier and prints metrics .
"""
        Solicits user for the name of a trained classifier and prints metrics.
        """ # Make sure it's in the database. # Verified it's in the database - go fetch it.
self