https://github.com/GPflow/GPflow
Revision 9d238398ce11b8beaad3811e67bfa7de006d79d5 authored by st-- on 20 June 2018, 14:59:06 UTC, committed by James Hensman on 20 June 2018, 14:59:06 UTC
* added notebook * added vanilla conv net accuracy * Tidy up notebook * ran notebook * ran notebook #2 * add untested notebooks to test_notebooks * fix bug in natural_gradients notebook * add nb_niter and nb_range to only run a small number of iterations in continuous integration notebook tests * make advanced_usage.ipynb use nb_iter() * don't add natural_gradients.ipynb and upper_bound.ipynb notebook tests in this PR * make advanced_usage run faster in CI * clean up advanced_usage * Update test_notebooks.py * fix notebook_niter * missing input_dim for CI * update notebook * another reset_default_graph_and_session call
1 parent 3a16991
Tip revision: 9d238398ce11b8beaad3811e67bfa7de006d79d5 authored by st-- on 20 June 2018, 14:59:06 UTC
Notebook to demonstrate advanced usage such as combining GP with Neural Network (#712)
Notebook to demonstrate advanced usage such as combining GP with Neural Network (#712)
Tip revision: 9d23839
setup.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# pylint: skip-file
from setuptools import setup
from setuptools import find_packages
import re
import os
import sys
from pkg_resources import parse_version
# load version form _version.py
exec(open("gpflow/_version.py").read())
# Dependencies of GPflow
requirements = [
'numpy>=1.10.0',
'scipy>=0.18.0',
'pandas>=0.18.1',
'multipledispatch>=0.4.9',
'pytest>=3.5.0',
'h5py>=2.7.0',
]
min_tf_version = '1.5.0'
tf_cpu = 'tensorflow>={}'.format(min_tf_version)
tf_gpu = 'tensorflow-gpu>={}'.format(min_tf_version)
# Only detect TF if not installed or outdated. If not, do not do not list as
# requirement to avoid installing over e.g. tensorflow-gpu
# To avoid this, rely on importing rather than the package name (like pip).
try:
# If tf not installed, import raises ImportError
import tensorflow as tf
if parse_version(tf.VERSION) < parse_version(min_tf_version):
# TF pre-installed, but below the minimum required version
raise DeprecationWarning("TensorFlow version below minimum requirement")
except (ImportError, DeprecationWarning) as e:
# Add TensorFlow to dependencies to trigger installation/update
requirements.append(tf_cpu)
packages = find_packages('.')
package_data={'gpflow': ['gpflow/gpflowrc']}
setup(name='gpflow',
version=__version__,
author="James Hensman, Alex Matthews",
author_email="james.hensman@gmail.com",
description=("Gaussian process methods in tensorflow"),
license="Apache License 2.0",
keywords="machine-learning gaussian-processes kernels tensorflow",
url="http://github.com/GPflow/GPflow",
packages=packages,
install_requires=requirements,
package_data=package_data,
include_package_data=True,
test_suite='tests',
extras_require={'Tensorflow with GPU': [tf_gpu]},
classifiers=[
'License :: OSI Approved :: Apache Software License',
'Natural Language :: English',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Scientific/Engineering :: Artificial Intelligence'
])
Computing file changes ...