- Now compatible with C++11.
- When sampling an empty set, it raises a
KeyError
instead or returning a
None
. This also affects the behavior of sampling without replacement when
n_samples
is larger than the set size. - Other forbidden operations raises an error as well instead of returning a
None
.