Skip to content
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

fixed 32-bit arch test_cubic.py #229

Merged
merged 1 commit into from
Jun 24, 2019
Merged

Conversation

dizcza
Copy link
Member

@dizcza dizcza commented Jun 17, 2019

Fixes #227.

@dizcza dizcza requested a review from mdenker June 17, 2019 13:36
@coveralls
Copy link
Collaborator

Coverage Status

Coverage decreased (-0.006%) to 87.335% when pulling 8bd5a0a on INM-6:i386_arch_fix into 1cf5723 on NeuralEnsemble:master.

S = [(data ** r).sum() for r in range(1, 4)]
kappa = []
kappa.append(S[0] / float(L))
kappa.append((L * S[1] - S[0] ** 2) / (L * (L - 1)))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: Double-checked using analytical formulas given in scipy help.

kappa = []
kappa.append(S[0] / float(L))
kappa.append((L * S[1] - S[0] ** 2) / (L * (L - 1)))
kappa.append(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: Verified numerically that both old and new implementation of moments yield [0.03, 0.2991029910299103, 2.9731431937011825] with the unit test data.

@mdenker mdenker merged commit f9c2c5c into NeuralEnsemble:master Jun 24, 2019
@dizcza dizcza deleted the i386_arch_fix branch June 25, 2019 19:19
@dizcza dizcza added the bug Indicates an unexpected problem or unintended behavior label Jul 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ERROR: test_cubic (elephant.test.test_cubic.CubicTestCase) on 32 bit arches
3 participants