You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> could we not generate a random bit string once, to represent whether a block will go in the validation/holdout?
>
> This is just pseduo code but the idea would be e.g.
> - take a large enough date range to capture any reasonable dates we would consider: date_range = `Date(1900, 1, 1):block_size:Date(2100, 1, 1)`
> - Generate a bit string of `length(date_range)` once with equal number of 0s/1s
> - Mask the `date_range` using the bit string in global_validation/global_holdout
> - Intersect with the dates we provide to get the validation/holdout we care about
>
> * only uses one random number
> * no loops
> * exact fraction gets allocated (modulo block size)
If we could actually fit it into some thing like a UInt1024 (which would from https://github.com/rfourquet/BitIntegers.jl)
that would cover us for 1024 blocks. which if doing block size of 1 day is not really enough.
But it would be nice because one could generate the bitstring in seperately to constructing the DateSelector, and pass it into the DateSelector as instead of the seed.
And that would be safe against the random number selector changing.
Such a 1024 bit string would look like 0x328d_8a1e_86f8_5c55_3cfe_223a_5904_02fd
Complicated bit would be that to achieve invarience to start date we probably need to do 200 years of days.
So would need to be a Int65536 which would not work great with BitIntegers.
But we could make it work.
Probably would want to Base64 encode it.
The text was updated successfully, but these errors were encountered:
An idea @glennmoy and I were discussing
@glennmoy
@oxinabox replied
Complicated bit would be that to achieve invarience to start date we probably need to do 200 years of days.
So would need to be a
Int65536
which would not work great with BitIntegers.But we could make it work.
Probably would want to Base64 encode it.
The text was updated successfully, but these errors were encountered: