cli/streamingphish/streamingphish/trainer.py
def _generate_artifacts(self):
        """
        Package classifier, feature vector, feature extractor, and metrics into a dict, and return
        to caller.

        Args:
            None, as all artifacts required are already assigned as class attributes.

        Returns:
            artifacts (dictionary): Metrics and binary objects representing classifier.
        """
        artifacts = {}

        # Add metrics.
        artifacts['metrics'] = self._metrics

        # PhishFeatures (extractor), feature vector, and classifier need to be converted
        # to binary form before they can be written to the database.
        artifacts['classifier'] = Binary(pickle.dumps(self._classifier))
        artifacts['feature_extractor'] = Binary(pickle.dumps(self._features))

        return artifacts

        Package classifier, feature vector, feature extractor, and metrics into a dict, and return
        to caller.

        Args:
            None, as all artifacts required are already assigned as class attributes.

        Returns:
            artifacts (dictionary): Metrics and binary objects representing classifier.
        
Package classifier, feature vector, feature extractor, and metrics into a dict, and return
to caller.

None, as all artifacts required are already assigned as class attributes.

artifacts (dictionary): Metrics and binary objects representing classifier.
Package classifier feature vector feature extractor and metrics into a dict and return to caller . None as all artifacts required are already assigned as class attributes . artifacts ( dictionary ) : Metrics and binary objects representing classifier .
def _generate_artifacts(self):
        artifacts = {}
        artifacts['metrics'] = self._metrics
        artifacts['classifier'] = Binary(pickle.dumps(self._classifier))
        artifacts['feature_extractor'] = Binary(pickle.dumps(self._features))
        return artifacts
def _generate_artifacts ( self ) : artifacts = { } artifacts [ 'metrics' ] = self . _metrics artifacts [ 'classifier' ] = Binary ( pickle . dumps ( self . _classifier ) ) artifacts [ 'feature_extractor' ] = Binary ( pickle . dumps ( self . _features ) ) return artifacts
Package classifier, feature vector, feature extractor, and metrics into a dict, and return
to caller.
Package classifier feature vector feature extractor and metrics into a dict and return to caller .
"""
        Package classifier, feature vector, feature extractor, and metrics into a dict, and return
        to caller.

        Args:
            None, as all artifacts required are already assigned as class attributes.

        Returns:
            artifacts (dictionary): Metrics and binary objects representing classifier.
        """ # Add metrics. # PhishFeatures (extractor), feature vector, and classifier need to be converted # to binary form before they can be written to the database.
self