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

tox fails with py36. (succeeds with py27 though) #232

Open
aaron-mcdaid-zalando opened this issue Jul 24, 2018 · 1 comment
Open

tox fails with py36. (succeeds with py27 though) #232

aaron-mcdaid-zalando opened this issue Jul 24, 2018 · 1 comment
Assignees
Labels

Comments

@aaron-mcdaid-zalando
Copy link
Collaborator

6 failed, 110 passed in 72.82 seconds

Here is one of those six failed tests:

______________________________________________________________________________ BayesFactorTestCases.test_bayes_factor_with_nan_input _______________________________________________________________________________

self = <tests.tests_core.test_early_stopping.BayesFactorTestCases testMethod=test_bayes_factor_with_nan_input>

    def test_bayes_factor_with_nan_input(self):
        """ Check the Bayes factor function with input that contains nan values."""
>       res = es.bayes_factor(self.rand_s5, self.rand_s6, num_iters=2000)

tests/tests_core/test_early_stopping.py:132:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
expan/core/early_stopping.py:273: in bayes_factor
    inference=inference)
expan/core/early_stopping.py:223: in _bayes_sampling
    control={'stepsize': 0.01, 'adapt_delta': 0.99})
.tox/py36/lib/python3.6/site-packages/pystan/model.py:671: in sampling
    fit = self.fit_class(data)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   TypeError: __init__() takes exactly 2 positional arguments (1 given)

stanfit4anon_model_d87af3570eba8e4d47ba3c301c4f7a1d_6351398166046700535.pyx:463: TypeError
----------------------------------------------------------------------------------------------- Captured stderr call -----------------------------------------------------------------------------------------------
INFO:expan.core.early_stopping:Started running bayes factor with 1000 procedure, treatment group of size 1000, control group of size normal, sampling distribution.
INFO:expan.core.early_stopping:Started running bayesian inference with sampling procedure, treatment group of size 1000, control group of size 1000, normal distribution.
INFO:expan.core.early_stopping:Started loading and compiling Stan model for normal distribution
@shansfolder
Copy link
Contributor

shansfolder commented Jul 24, 2018

@aaron-mcdaid-zalando works for me.

It could be tox cached an old version of pystan for you. Try delete .tox directory and run again. :)

@shansfolder shansfolder self-assigned this Jul 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants