bugfinder.features.extraction.bag_of_words.hops_n_flows
Feature extractor module for HopNFlows algorithm
- class bugfinder.features.extraction.bag_of_words.hops_n_flows.FeatureExtractor(dataset, deprecation_warning=None)
Bases:
FlowGraphFeatureExtractor
HopNFlows feature extractor
- configure_container()
Setting up the container variables
- execute(command_args=None, flows=None, min_hops=1, max_hops=-1, feature_map_filepath=None, need_map_features=False)
Run the feature extraction algorithm
- finalize_features(features, labels)
Perform final touches on the features before saving them to CSV.
- Parameters
features –
labels –
Returns:
- flows = ['CONTROLS', 'FLOWS_TO', 'REACHES']
- get_flowgraph_count(flowgraph)
Retrieve the flowgraph count.
- get_flowgraph_list_for_entrypoint(entrypoint)
Extract flowgraphs for a given entrypoint
- get_label_from_flowgraph(flowgraph)
Create the label for the flowgraph.
- max_hops = -1
- min_hops = 1