Skip to content

Commit 3bed638

Browse files
author
Frankie Robertson
committed
Fixes to randomesque
1 parent 55525c8 commit 3bed638

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/next_item_rules/strategies/randomesque.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function randomesque(
1010
k::Int
1111
)
1212
objective_state = init_thread(objective, responses)
13-
heap = BinaryHeap{Node{Int, Float64}}(o = FastMax)
13+
heap = BinaryHeap{Node{Int, Float64}}(FastMax)
1414
sizehint!(heap, k)
1515
for item_idx in eachindex(items)
1616
if (findfirst(idx -> idx == item_idx, responses.responses.indices) !== nothing)
@@ -36,6 +36,7 @@ end
3636
$(TYPEDEF)
3737
$(TYPEDFIELDS)
3838
39+
http://dx.doi.org/10.1207/s15324818ame0204_6
3940
"""
4041
struct RandomesqueStrategy <: NextItemStrategy
4142
rng::AbstractRNG
@@ -49,5 +50,5 @@ function best_item(
4950
responses::TrackedResponses,
5051
items
5152
) where {ItemCriterionT <: ItemCriterion}
52-
randomesque(rule.rng, rule.criterion, responses, items, rule.k)[1]
53+
randomesque(rule.strategy.rng, rule.criterion, responses, items, rule.strategy.k)[1]
5354
end

0 commit comments

Comments
 (0)