How to backtest an ML-driven strategy