Skip to content

Unpin theano #2777

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

Merged
merged 10 commits into from
Jan 11, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
language: python
sudo: false
sudo: required

cache:
directories:
Expand All @@ -15,12 +15,11 @@ before_install:
- . ./scripts/install_miniconda.sh
- sh -e /etc/init.d/xvfb start
- export DISPLAY=":99.0"
- export MKL_THREADING_LAYER=GNU

install:
- . ./scripts/create_testenv.sh
- pip install coveralls pylint
- pip install travis-sphinx==2.0.0
- pip install -r requirements-dev.txt
- pip install coveralls travis-sphinx==2.0.0

env:
- PYTHON_VERSION=2.7 FLOATX='float32' TESTCMD="--durations=10 --ignore=pymc3/tests/test_examples.py --cov-append --ignore=pymc3/tests/test_distributions_random.py --ignore=pymc3/tests/test_variational_inference.py --ignore=pymc3/tests/test_shared.py --ignore=pymc3/tests/test_smc.py --ignore=pymc3/tests/test_updates.py --ignore=pymc3/tests/test_posteriors.py --ignore=pymc3/tests/test_sampling.py"
Expand Down
2 changes: 1 addition & 1 deletion pymc3/tests/test_sgfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ def f(x, a, b, c):
pm.Normal('y', mu=y, observed=y_obs)

step_method = pm.SGFS(batch_size=batch_size, step_size=1., total_size=total_size)
trace = pm.sample(draws=draws, step=step_method, init=None)
trace = pm.sample(draws=draws, step=step_method, init=None, njobs=2)

np.testing.assert_allclose(np.mean(trace['abc'], axis=0), np.asarray([a, b, c]), rtol=0.1)
2 changes: 1 addition & 1 deletion pymc3/tests/test_text_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def test_supports_sampler_stats(self):
with pm.Model():
pm.Normal("mu", mu=0, sd=1, shape=2)
db = text.Text(self.name)
pm.sample(20, tune=10, init=None, trace=db)
pm.sample(20, tune=10, init=None, trace=db, njobs=2)

def teardown_method(self):
bf.remove_file_or_directory(self.name)
Expand Down
2 changes: 2 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ Keras>=2.0.8
matplotlib>=1.5.0
mock>=2.0.0; python_version < '3.4'
nbsphinx>=0.2.13
nose>=1.3.7
nose-parameterized==0.6.0
numdifftools>=0.9.20
numpy>=1.11.0
numpydoc==0.7.0
pycodestyle>=2.3.1
pyflakes>=1.5.0
pylint>=1.7.4
pytest-cov>=2.5.1
pytest>=3.0.7
recommonmark>=0.4.0
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
theano==0.9.0
theano>=1.0.0
pandas>=0.18.0
patsy>=0.4.0
joblib>=0.9
Expand Down
4 changes: 2 additions & 2 deletions scripts/create_testenv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ if [ ${PYTHON_VERSION} == "2.7" ]; then
pip install mock
fi

pip install pytest pytest-cov nose-parameterized pylint
pip install -r requirements-dev.txt

# Install untested, non-required code (linter fails without them)
pip install ipython ipywidgets numdifftools
pip install ipython ipywidgets

# matplotlib is not required for the library, but is for tests
pip install matplotlib
Expand Down