autofunc.get_top_results

Takes the results of the frequency-finding and sorting algorithm and cuts off the sum of frequencies at a threshold

Module Contents

Functions

get_top_results(conf_results, threshold=0.7)

Use top XX% of results as a threshold for the functions and flows that are associated with each component.

autofunc.get_top_results.get_top_results(conf_results, threshold=0.7)

Use top XX% of results as a threshold for the functions and flows that are associated with each component.

Parameters
  • conf_results (dict) – The return dictionary from the “find_associations” function

  • threshold (float) – The threshold used for finding the top percentage of confidences

Returns

Returns a dictionary of function and flow combinations sorted by confidence that sum up to the threshold. The key is the component and the value is a list of type: [function-flow, confidence]

Return type

return_dict