-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactoring irt, remove data, add doc
- Loading branch information
1 parent
aec73a9
commit df916fb
Showing
63 changed files
with
2,031 additions
and
8,648 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
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
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
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
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 |
---|---|---|
@@ -1,9 +1,8 @@ | ||
# coding=utf-8 | ||
# 项目反应理论中的等级反应模型 | ||
from __future__ import division, print_function, unicode_literals | ||
from psy import Grm | ||
import numpy as np | ||
from psy import Grm, data | ||
|
||
scores = np.loadtxt('data/lsat.csv', delimiter=',') | ||
scores = data['lsat.dat'] | ||
grm = Grm(scores=scores) | ||
print(grm.em()) |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# coding=utf-8 | ||
# 单维IRT参数估计 | ||
from __future__ import print_function, division, unicode_literals | ||
from psy import Irt, data | ||
|
||
score = data['lsat.dat'] | ||
model = Irt(scores=score, link='probit') | ||
res = model.fit() | ||
print(res) | ||
|
||
model = Irt(scores=score, link='logit') | ||
res = model.fit() | ||
print(res) |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,10 +1,9 @@ | ||
# coding=utf-8 | ||
# 多维项目反应理论的参数估计 | ||
from __future__ import print_function, division, unicode_literals | ||
import numpy as np | ||
from psy import Mirt2PL | ||
from psy import Mirt, data | ||
|
||
score = np.loadtxt('data/lsat.csv', delimiter=",") | ||
res = Mirt2PL(scores=score, dim_size=2).em() | ||
score = data['lsat.dat'] | ||
res = Mirt(scores=score, dim_size=2).em() | ||
print(res[2]) | ||
print(res[0]) |
This file was deleted.
Oops, something went wrong.
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
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
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
API | ||
=== | ||
|
||
.. toctree:: | ||
:maxdepth: 4 | ||
|
||
psy |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
psy.cat package | ||
=============== | ||
|
||
Submodules | ||
---------- | ||
|
||
psy.cat.tirt module | ||
------------------- | ||
|
||
.. automodule:: psy.cat.tirt | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
|
||
Module contents | ||
--------------- | ||
|
||
.. automodule:: psy.cat | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
psy.cdm package | ||
=============== | ||
|
||
Submodules | ||
---------- | ||
|
||
psy.cdm.irm module | ||
------------------ | ||
|
||
.. automodule:: psy.cdm.irm | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
|
||
Module contents | ||
--------------- | ||
|
||
.. automodule:: psy.cdm | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
psy.ctt package | ||
=============== | ||
|
||
Submodules | ||
---------- | ||
|
||
psy.ctt.ctt module | ||
------------------ | ||
|
||
.. automodule:: psy.ctt.ctt | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
|
||
Module contents | ||
--------------- | ||
|
||
.. automodule:: psy.ctt | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
psy.data package | ||
================ | ||
|
||
Submodules | ||
---------- | ||
|
||
psy.data.data module | ||
-------------------- | ||
|
||
.. automodule:: psy.data.data | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
|
||
Module contents | ||
--------------- | ||
|
||
.. automodule:: psy.data | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
psy.exceptions package | ||
====================== | ||
|
||
Submodules | ||
---------- | ||
|
||
psy.exceptions.cat module | ||
------------------------- | ||
|
||
.. automodule:: psy.exceptions.cat | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
|
||
Module contents | ||
--------------- | ||
|
||
.. automodule:: psy.exceptions | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
psy.fa package | ||
============== | ||
|
||
Submodules | ||
---------- | ||
|
||
psy.fa.factors module | ||
--------------------- | ||
|
||
.. automodule:: psy.fa.factors | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
psy.fa.rotations module | ||
----------------------- | ||
|
||
.. automodule:: psy.fa.rotations | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
|
||
Module contents | ||
--------------- | ||
|
||
.. automodule:: psy.fa | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
psy.irt package | ||
=============== | ||
|
||
Submodules | ||
---------- | ||
|
||
psy.irt.base module | ||
------------------- | ||
|
||
.. automodule:: psy.irt.base | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
psy.irt.grm module | ||
------------------ | ||
|
||
.. automodule:: psy.irt.grm | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
psy.irt.irm module | ||
------------------ | ||
|
||
.. automodule:: psy.irt.irm | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
|
||
Module contents | ||
--------------- | ||
|
||
.. automodule:: psy.irt | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
Oops, something went wrong.