## models.time_ordered()


Time-ordered splits: for each of the last `n_test` periods, train on


Usage


``` python
models.time_ordered(
    periods,
    n_test,
)
```


earlier periods and test on that one (for a triangle, the calendar diagonal backtest).


## Parameters


`periods: list of int`  

`n_test: int`  


## Returns


`list of (list of int, list of int)`
