You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ The data to be analyzed should be stored in two pandas Series of the same size,
28
28
rta.fit(rt, accuracy)
29
29
```
30
30
31
-
The resulting estimates are printed to the screen (assuming that the `verbose` flag is not set to false) and also stored to internal variables `rta.meanrt_` and `rta.meanacc_`.
31
+
The resulting estimates are printed to the screen (assuming that the `verbose` flag is not set to false) and also stored to internal variables `rta.mean_rt_` and `rta.mean_accuracy_`.
32
32
33
33
## Test 1: A simple smoke test
34
34
@@ -95,8 +95,8 @@ def test_rtanalysis_fit():
95
95
rta = RTAnalysis()
96
96
rta.fit(test_df.rt, test_df.accuracy)
97
97
98
-
assert np.allclose(meanRT, rta.meanrt_)
99
-
assert np.allclose(meanAcc, rta.meanacc_)
98
+
assert np.allclose(meanRT, rta.mean_rt_)
99
+
assert np.allclose(meanAcc, rta.mean_accuracy_)
100
100
```
101
101
102
102
We generate the data with known mean and accuracy values, fit the model using our function, and then confirm that our estimates are basically equal to the actual values. We use `np.allclose()` rather than a test for equality because sometimes the values will be off by a very small amount due to the numerical precision of the computer; an equality test would treat those as different, but `np.allclose` allows some tolerance in its test.
0 commit comments