Closed msh855 closed 8 months ago
45892.0
is not an integer. Make sure size is an integer, e.g., size=int(size)
.
As you can see the bs_opt.bootstrap(n_samples) seems to be calling an IID boostrapping. is this supposed to be correct?
Yes. The bootstrap
method calls private internal methods that differ across classes, so that the bootstrap
never needs to be overwritten.
Going to close as answered, but please fell free to continue to post if you this isn't clean.
Thanks. There is an issue with this solution (i.e. size=int(size)
). Very often I use the optimal block size provided by the library and the result is a float, like 0.40
. This solution will make the optimal size block zero and the bootstrap will fail again.
Block size has to be at least 1. int(max(size, 1))
would work.
Hi,
I am trying to replicate some of your examples.
I using the Stationary Bootstrapping method, but I have noticed the following
As you can see the
bs_opt.bootstrap(n_samples)
seems to be calling anIID boostrapping
. is this supposed to be correct?I also have issues using the optimal block for the circular bootstrapping:
The error that I get is this: