cli/streamingphish/streamingphish/database.py
def save_classifier(self, artifacts):
        """
        Saves classifier, feature extractor, feature vector, and metrics to the database.

        Args:
            artifacts (dictionary): 3 binary objects and a dict storing metrics info.
        """

        # Grab classifier name to use as private key, then delete it from the dictionary.
        name = artifacts['classifier_name']
        del artifacts['classifier_name']

        # Write to the database.
        result = {name: artifacts}
        self._classifiers.insert_one(result)
        tqdm.tqdm.write("[+] Saved new classifier {}.".format(name))

        Saves classifier, feature extractor, feature vector, and metrics to the database.

        Args:
            artifacts (dictionary): 3 binary objects and a dict storing metrics info.
        
Saves classifier, feature extractor, feature vector, and metrics to the database.
Saves classifier feature extractor feature vector and metrics to the database .
def save_classifier(self, artifacts):
        name = artifacts['classifier_name']
        del artifacts['classifier_name']
        result = {name: artifacts}
        self._classifiers.insert_one(result)
        tqdm.tqdm.write("[+] Saved new classifier {}.".format(name))
def save_classifier ( self , artifacts ) : name = artifacts [ 'classifier_name' ] del artifacts [ 'classifier_name' ] result = { name : artifacts } self . _classifiers . insert_one ( result ) tqdm . tqdm . write ( "[+] Saved new classifier {}." . format ( name ) )
Saves classifier, feature extractor, feature vector, and metrics to the database.
Saves classifier feature extractor feature vector and metrics to the database .
"""
        Saves classifier, feature extractor, feature vector, and metrics to the database.

        Args:
            artifacts (dictionary): 3 binary objects and a dict storing metrics info.
        """ # Grab classifier name to use as private key, then delete it from the dictionary. # Write to the database.
self
artifacts
3 binary objects and a dict storing metrics info.
3 binary objects and a dict storing metrics info .