kot 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/kot/hill_climbing_estimator.rb +6 -4
- data/lib/kot/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 951fd12285aed7961a5993e9d4e14f57d7abb9e5b6a79257128ea458a9be8fc3
|
4
|
+
data.tar.gz: 76fe8b39d2fb79cc94a07d6fc561707d768a141bb0eb70cd5400611e0aec3020
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b1efce1b75225ac7cca076052fd4248c2077bee6740d563870a5b772ceeabe24ba9ac6aef5cbff1b8719e6c29e0d83f2f465fa11600580a538444adbeeb12a4
|
7
|
+
data.tar.gz: a78739948a7082245907042c310c7bf4fcf9eaa51b340d2cbd2c5b3b8191f0928d26764d8f7b6e05d5830ddebf3651cd139054c91d40be89a57cbcc84c94a81e
|
@@ -33,7 +33,7 @@ module Kot
|
|
33
33
|
#TODO: precision-based early exit
|
34
34
|
best_theta = ii
|
35
35
|
else
|
36
|
-
lower_bound = best_theta - step_size
|
36
|
+
lower_bound = best_theta - step_size
|
37
37
|
upper_bound = ii
|
38
38
|
break
|
39
39
|
end
|
@@ -50,15 +50,17 @@ module Kot
|
|
50
50
|
return dodd(est_theta: est_theta, items: all_items, last_response: responses.last)
|
51
51
|
end
|
52
52
|
|
53
|
-
|
54
|
-
|
53
|
+
# TODO: More intelligently decide limits to theta
|
54
|
+
lower_bound = (items.map(&:b) << -3.0).min
|
55
|
+
upper_bound = (items.map(&:b) << +3.0).max
|
55
56
|
|
56
57
|
return lower_bound if upper_bound == lower_bound
|
57
58
|
|
58
59
|
best_theta = - Float::INFINITY
|
59
|
-
max_ll = - Float::INFINITY
|
60
60
|
|
61
61
|
10.times do
|
62
|
+
max_ll = - Float::INFINITY
|
63
|
+
|
62
64
|
best_theta, max_ll, lower_bound, upper_bound =
|
63
65
|
estimate_iteration(best_theta, max_ll, lower_bound, upper_bound, responses, items)
|
64
66
|
|
data/lib/kot/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Watkins
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-10-
|
11
|
+
date: 2018-10-04 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: " Kot is a basic toolkit for getting started with computerised adaptive
|
14
14
|
testing (CAT). It includes a module to calculate item response theory (IRT) statistics
|