-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CLOWDER and tests #25
Open
Emily-ejag
wants to merge
47
commits into
main
Choose a base branch
from
add/clowder-class
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 35 commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
6a4a6f6
adding clowder class and tests
Emily-ejag 21b2f97
changing Clowder for clowder
Emily-ejag 759dae5
Adding updateCatAndGetNextItem function
Emily-ejag 3a0cdcb
eslint for unused -- used variables
Emily-ejag 2b570a1
clowder import
Emily-ejag a1f608a
Add zetas for multiple cats to the corpus
richford 423954f
Add TODO comments
richford 22b85fe
Add util tests
richford 242f02f
Add documentation
richford 9fb9436
Document and test utils
richford fc72b04
Start adding clowder tests
richford 92a4d74
Add more clowder tests
richford 5082d5b
Add documentation and randomlySelectUnvalidated parameter
richford f7cf2f7
Add more tests and a random seed
richford 3d1a614
Reorganize files
richford 8ac9f44
Don't export abilityPrior
richford 668d68b
Update readme
richford 3550d96
adding missing tests to clowder
Emily-ejag a1d2bf9
Import Cat, Clowder, and ClowderInput from index
richford 8ebae67
Add src/stopping.ts
richford 7d4a1a9
Add tests for stopping.ts
richford fb30ac5
Add earlyStopping input to Clowder
richford 03d0824
prepareClowderCorpus
Emily-ejag 7a527ca
WIP: Add logicalOperation and tests
richford 0334ba0
Use _isEmpty instead of null test in prepareClowderCorpus
richford fd254a4
Increase test coverage
richford 95da412
Add comments on using early stopping in the Clowder class
richford 58ccf4a
solving TODOS and adding stopping tests
Emily-ejag 3b1c56b
we don't need default
Emily-ejag 2f232de
resolve some comments
Emily-ejag 5300ce6
correcting some tests
Emily-ejag 5c684a8
adding the unvalidated cat -- and test
Emily-ejag 5d0ff50
Fix tests. Don't update ability estimate for the unvalidated Cat. Han…
richford 77a3bfc
adding returnUndefinedOnExhaustion parameter and test
Emily-ejag 06d1709
implementing suggestions
Emily-ejag d641960
Separate the stopping classes so that they don't share the same input
richford 07e1f58
updating cats for clowder
Emily-ejag a0ac266
clowder changes based on letter implementation
Emily-ejag 3674a1f
addressing all lines of code for testing
Emily-ejag 74bf577
adding documentation about early stopping
Emily-ejag 508bc51
since we added only, we need to add catToSelect
Emily-ejag efbd55b
solving adams comments
Emily-ejag c26f57c
deleting for loop
Emily-ejag 7abca47
adding stopping reason
Emily-ejag fb5886c
adding more stoppingReasons to the tests
Emily-ejag 2f4285b
Update README.md
AnyaWMa e5a352e
filterin NA from overall corpus
Emily-ejag File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,22 +42,26 @@ const stimuli = [{difficulty: -3, item: 'item1'}, {difficulty: -2, item: 'item2 | |
const nextItem = cat.findNextItem(stimuli, 'MFI'); | ||
``` | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. more broadly, can we document and show sample code: how to set up a jsClowder, and some basic functions to run a clowder. |
||
## Validations | ||
## Validation | ||
|
||
### Validation of theta estimate and theta standard error | ||
|
||
Reference software: mirt (Chalmers, 2012) | ||
![img.png](validation/plots/jsCAT_validation_1.png) | ||
|
||
### Validation of MFI algorithm | ||
|
||
Reference software: catR (Magis et al., 2017) | ||
![img_1.png](validation/plots/jsCAT_validation_2.png) | ||
|
||
|
||
## References | ||
Chalmers, R. P. (2012). mirt: A multidimensional item response theory package for the R environment. Journal of Statistical Software. | ||
|
||
Magis, D., & Barrada, J. R. (2017). Computerized adaptive testing with R: Recent updates of the package catR. Journal of Statistical Software, 76, 1-19. | ||
- Chalmers, R. P. (2012). mirt: A multidimensional item response theory package for the R environment. Journal of Statistical Software. | ||
|
||
- Magis, D., & Barrada, J. R. (2017). Computerized adaptive testing with R: Recent updates of the package catR. Journal of Statistical Software, 76, 1-19. | ||
|
||
Lucas Duailibe, irt-js, (2019), GitHub repository, https://github.com/geekie/irt-js | ||
- Lucas Duailibe, irt-js, (2019), GitHub repository, https://github.com/geekie/irt-js | ||
|
||
## License | ||
|
||
jsCAT is distributed under the [ISC license](LICENSE). |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add documentation about the accepted stimuli types?