kot 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4df58ff0365bfa26e18adba52d56d07b2ba6e1648a7672e30e36074086a59b86
4
- data.tar.gz: 277e71849654efe4c68d6e0994195c03bfcc4758d5e768fcca3a363e56c54c01
3
+ metadata.gz: 951fd12285aed7961a5993e9d4e14f57d7abb9e5b6a79257128ea458a9be8fc3
4
+ data.tar.gz: 76fe8b39d2fb79cc94a07d6fc561707d768a141bb0eb70cd5400611e0aec3020
5
5
  SHA512:
6
- metadata.gz: 782b27fe171ca5ed98fde2c0f83115bfc94e3272c25132779edff79f0955bff817238f53b4079bb122b563274054cd00d7399b967783abe2ad533ce8ea026642
7
- data.tar.gz: 24ab8c8ae3af9e2bbf3bf02de19e2fbcdcbdcf552f840bb835c1bbe91cd3f4bbe27adfba0d26a0542f12c6e56245dac8e40d9171a71815d014bc8882b3015bab
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.abs
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
- lower_bound = items.map(&:b).min
54
- upper_bound = items.map(&:b).max
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
 
@@ -1,3 +1,3 @@
1
1
  module Kot
2
- VERSION = '0.0.3'.freeze
2
+ VERSION = '0.0.4'.freeze
3
3
  end
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.3
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-03 00:00:00.000000000 Z
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