OptimiserSearchResult#
API documentation for tradeexecutor.backtest.optimiser.OptimiserSearchResult Python class in Trading Strategy framework.
- class OptimiserSearchResult[source]#
- Bases: - object- Single optimiser search result value. - This is used in different contextes - Return value from - SearchFunction
- Passing data from child worker to the parent process 
- Passing data from - perform_optimisation()to the notebook
 - __init__(value, negative, combination=None, result=None, filtered=False, iteration_duration=None, iteration=None)#
- Parameters:
- value (float) – 
- negative (bool) – 
- combination (tradeexecutor.backtest.grid_search.GridCombination | None) – 
- result (tradeexecutor.backtest.grid_search.GridSearchResult | None) – 
- filtered (bool) – 
- iteration_duration (datetime.timedelta | None) – 
- iteration (int) – 
 
- Return type:
- None 
 
 - Methods - __init__(value, negative[, combination, ...])- Get the size of stored metrics. - Get the original best search value. - Get the size of stored state. - hydrate()- Load the grid search result data for this result from the disk. - is_valid()- Could not calculate a value. - Attributes - The raw value of the search function we are optimising - Did we flip this value to negative because we are looking for a minimised result - For which grid combination this result was - Call - hydrate()to make this data available.- Did we filter out this result - How long it took to run this iteration - Iteration id - combination: tradeexecutor.backtest.grid_search.GridCombination | None#
- For which grid combination this result was - This is the key to load the child worker produced data from the disk in the parent process 
 - result: tradeexecutor.backtest.grid_search.GridSearchResult | None#
- Call - hydrate()to make this data available.
 - filtered: bool#
- Did we filter out this result - See result_filter in - perform_optimisation()
 - iteration_duration: datetime.timedelta | None#
- How long it took to run this iteration - Filled by main thread 
 - get_original_value()[source]#
- Get the original best search value. - Flip off the extra minus sign if we had to add it 
 - Return type:
 
 - __init__(value, negative, combination=None, result=None, filtered=False, iteration_duration=None, iteration=None)#
- Parameters:
- value (float) – 
- negative (bool) – 
- combination (tradeexecutor.backtest.grid_search.GridCombination | None) – 
- result (tradeexecutor.backtest.grid_search.GridSearchResult | None) – 
- filtered (bool) – 
- iteration_duration (datetime.timedelta | None) – 
- iteration (int) – 
 
- Return type:
- None