order_grid_search_results_by_metric#

API documentation for tradeexecutor.analysis.grid_search.order_grid_search_results_by_metric Python function.

order_grid_search_results_by_metric(results, metric='Cumulative Return')[source]#

Order grid search results by a metric. Default is Cumulative Return.

Parameters:
  • results (List[GridSearchResult]) – List of GridSearchResult

  • metric (str) – Metric to order by. Default is ‘Cumulative Return’

Returns:

List of GridSearchResult ordered by the metric

Return type:

List[GridSearchResult]