JeffMv / Lofea

Lottery analysis + features for use in Machine Learning algorithms
Other
33 stars 15 forks source link

Bug in indexes - using unavailable draws #2

Open JeffMv opened 3 years ago

JeffMv commented 3 years ago

Some computations use a bad index for indexing current and past draws. It uses the informations of the current draw (the one to coming at the current day id) to compute measurements for that day id.

What this issue does is that it shifts the correspondance. Instead of having on day N (when draw results of day N are not out): the computation using data up to N-1.

It does instead the following (wrong way to do): on day N: the computation using data up to N