Skip to content

Update core.py#155

Open
UdiBhaskar wants to merge 1 commit intostatlab:mainfrom
UdiBhaskar:patch-1
Open

Update core.py#155
UdiBhaskar wants to merge 1 commit intostatlab:mainfrom
UdiBhaskar:patch-1

Conversation

@UdiBhaskar
Copy link


TypeError Traceback (most recent call last)
in
1 one_sample_test = one_sample(x=diff_score, reps=100000,
----> 2 stat='mean', alternative='two-sided', keep_dist=True, seed=10)

D:\Softwares\Anaconda3\envs\tf2\lib\site-packages\permute\core.py in one_sample(x, y, reps, stat, alternative, keep_dist, seed, plus1)
603 for i in range(reps):
604 dist.append(tst_fun(z * (1 - 2 * prng.randint(0, 2, n))))
--> 605 hits = np.sum(dist >= tst)
606 return thePvalue[alternative](hits / (reps+plus1)), tst, dist
607 else:

TypeError: '>=' not supported between instances of 'list' and 'float'

To remove these errors. we have to change the code.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.06%) to 96.415% when pulling 07645a2 on UdiBhaskar:patch-1 into 2ff8f48 on statlab:master.

Base automatically changed from master to main February 24, 2021 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments