Skip to content

Commit 8aab64f

Browse files
author
Frankie Robertson
committed
Fix multidim expected_item_information
1 parent e48dd80 commit 8aab64f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/next_item_rules/criteria/pointwise/information_support.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ function expected_item_information(ir::ItemResponse, θ::Vector)
9191
exp_resp = resp_vec(ir, θ)
9292
n = domdims(ir.item_bank)
9393
hess = vector_hessian-> log_resp_vec(ir, θ), θ, n)
94-
-dropdims(sum((exp_resp .* (@view hess[2, :, :])), dims = 1), dims = 1)
94+
return -sum(eachslice(hess, dims=1) .* exp_resp)
9595
end
9696

9797
function known_item_information(ir::ItemResponse, resp_value, θ)

0 commit comments

Comments
 (0)