Skip to content

Commit 60b7d35

Browse files
delete duplicate function
1 parent 93cc73c commit 60b7d35

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/samplers.jl

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -209,15 +209,6 @@ function StatsBase.sample(s::NStepBatchSampler, ts, ::Val{SS′L′ART}, inds)
209209
NamedTuple{SSLART}(map(collect, (s, s′, l, a, r, t)))
210210
end
211211

212-
function StatsBase.sample(s::NStepBatchSampler{names}, e::EpisodesBuffer{<:Any, <:Any, <:CircularPrioritizedTraces})
213-
t = e.traces
214-
st = deepcopy(t.priorities)
215-
st .*= e.sampleable_inds[1:end-1] #temporary sumtree that puts 0 priority to non sampleable indices.
216-
inds, priorities = rand(s.rng, st, s.batch_size)
217-
218-
NamedTuple{(:key, :priority, names...)}((t.keys[inds], priorities, map(x -> collect(t.traces[x][inds]), names)...))
219-
end
220-
221212
function StatsBase.sample(s::NStepBatchSampler{names}, e::EpisodesBuffer{<:Any, <:Any, <:CircularPrioritizedTraces}) where {names}
222213
t = e.traces
223214
st = deepcopy(t.priorities)

0 commit comments

Comments
 (0)