MCPcopy Index your code
hub / github.com/kernc/backtesting.py / memoized_run

Method memoized_run

backtesting/backtesting.py:1581–1584  ·  view source on GitHub ↗
(tup)

Source from the content-addressed store, hash-verified

1579 # Avoid recomputing re-evaluations
1580 @lru_cache()
1581 def memoized_run(tup):
1582 nonlocal maximize, self
1583 stats = self.run(**dict(tup))
1584 return -maximize(stats)
1585
1586 progress = iter(_tqdm(repeat(None), total=max_tries, leave=False,
1587 desc=self.optimize.__qualname__, mininterval=2))

Callers

nothing calls this directly

Calls 1

runMethod · 0.95

Tested by

no test coverage detected