I often miss a function that computes the acceptance rate of a chain.
I'm happy to put PR together if you feel that would be a useful addition.
Some points we should think about:
- How to deal with multiple chains? I'd say that we should compute the acceptance rate for every chain separately.
- How to do this fast? Usually I use something like
size(unique(X, dims=1)) but that's probably slow. Maybe StatsBase:countmap is better?
I often miss a function that computes the acceptance rate of a chain.
I'm happy to put PR together if you feel that would be a useful addition.
Some points we should think about:
size(unique(X, dims=1))but that's probably slow. MaybeStatsBase:countmapis better?