Skip to content

Commit

Permalink
export expected_score and information (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
p-gw authored Jan 30, 2023
1 parent 9da389e commit b57cca3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "AbstractItemResponseModels"
uuid = "0ab3451c-659c-47cd-a7a9-a2d579e209dd"
authors = ["Philipp Gewessler", "Tobias Alfers"]
version = "0.1.0"
version = "0.1.1"

[deps]
StatsAPI = "82ae8749-77ed-4fe6-ae5f-f523153014b0"
Expand Down
5 changes: 3 additions & 2 deletions src/tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module Tests

import AbstractItemResponseModels:
response_type, item_dimensionality, person_dimensionality, estimation_type, fit,
irf, iif
irf, iif, expected_score, information

using AbstractItemResponseModels
using Test
Expand Down Expand Up @@ -66,6 +66,7 @@ end
function information(model::FakeIRM{RT,PD,ID,PointEstimate}, theta, is=nothing; scoring_function=identity) where {RT,PD,ID}
return scoring_function(0.0)
end

function information(model::FakeIRM{RT,PD,ID,SamplingEstimate}, theta, is=nothing; scoring_function=identity) where {RT,PD,ID}
return scoring_function.(fill(0.0, 10))
end
Expand Down Expand Up @@ -114,7 +115,7 @@ function test_traits(model)
end

function test_irf(model::ItemResponseModel)
@testset "irt" begin
@testset "irf" begin
rt = response_type(model)
pdim = person_dimensionality(model)
idim = item_dimensionality(model)
Expand Down

2 comments on commit b57cca3

@p-gw
Copy link
Member Author

@p-gw p-gw commented on b57cca3 Feb 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/76854

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.1.1 -m "<description of version>" b57cca30abd1a2274d1efb41a49ccdaac60ed9e0
git push origin v0.1.1

Please sign in to comment.