mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-06-26 15:49:40 +02:00
[codecs] to read file
This commit is contained in:
commit
cc211e64a1
5 changed files with 42 additions and 78 deletions
|
|
@ -68,5 +68,5 @@ deploy:
|
||||||
tags: true
|
tags: true
|
||||||
branch: master
|
branch: master
|
||||||
#server: https://testpypi.python.org/pypi
|
#server: https://testpypi.python.org/pypi
|
||||||
distributions: "bdist_wheel sdist bdist_egg"
|
distributions: "bdist_wheel sdist"
|
||||||
skip_cleanup: true
|
skip_cleanup: true
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
__version__ = "0.8.8"
|
__version__ = "0.8.8dev"
|
||||||
|
|
|
||||||
|
|
@ -65,4 +65,4 @@ class PSICOMP_Linear(PSICOMP):
|
||||||
|
|
||||||
|
|
||||||
from . import ssrbf_psi_gpucomp
|
from . import ssrbf_psi_gpucomp
|
||||||
from rbf_psi_gpucomp import PSICOMP_RBF_GPU
|
from .rbf_psi_gpucomp import PSICOMP_RBF_GPU
|
||||||
|
|
|
||||||
108
README.md
108
README.md
|
|
@ -10,10 +10,10 @@ A Gaussian processes framework in Python.
|
||||||
* [](http://opensource.org/licenses/BSD-3-Clause)
|
* [](http://opensource.org/licenses/BSD-3-Clause)
|
||||||
|
|
||||||
#### Continuous integration
|
#### Continuous integration
|
||||||
| | Travis-CI | Codecov | Readthedocs |
|
| | Travis-CI | Codecov |
|
||||||
| ---: | :--: | :---: | :---: |
|
| ---: | :--: | :---: |
|
||||||
| **master:** | [](https://travis-ci.org/SheffieldML/GPy) | [](http://codecov.io/github/SheffieldML/GPy?branch=master) | [](http://gpy.readthedocs.org/en/master/) |
|
| **master:** | [](https://travis-ci.org/SheffieldML/GPy) | [](http://codecov.io/github/SheffieldML/GPy?branch=master) |
|
||||||
| **devel:** | [](https://travis-ci.org/SheffieldML/GPy) | [](http://codecov.io/github/SheffieldML/GPy?branch=devel) | [](http://gpy.readthedocs.org/en/devel/) |
|
| **devel:** | [](https://travis-ci.org/SheffieldML/GPy) | [](http://codecov.io/github/SheffieldML/GPy?branch=devel) |
|
||||||
|
|
||||||
### Supported Platforms:
|
### Supported Platforms:
|
||||||
|
|
||||||
|
|
@ -46,26 +46,46 @@ With anaconda you can install GPy by the following:
|
||||||
conda update scipy
|
conda update scipy
|
||||||
pip install gpy
|
pip install gpy
|
||||||
|
|
||||||
We've also had luck with [enthought](http://www.enthought.com),
|
We've also had luck with [enthought](http://www.enthought.com). Install scipy later or the same as
|
||||||
although enthought currently (as of 8th Sep. 2015) does not support scipy 0.16.
|
0.16 and then pip install GPy:
|
||||||
|
|
||||||
If you'd like to install from source, or want to contribute to the project (e.g. by sending pull requests via github), read on.
|
pip install gpy
|
||||||
|
|
||||||
|
If you'd like to install from source, or want to contribute to the project (i.e. by sending pull requests via github), read on.
|
||||||
|
|
||||||
### Troubleshooting installation problems
|
### Troubleshooting installation problems
|
||||||
|
|
||||||
If you're having trouble installing GPy via `pip install GPy` here is a probable solution:
|
If you're having trouble installing GPy via `pip install GPy` here is a probable solution:
|
||||||
|
|
||||||
git clone https://github.com/mikecroucher/GPy.git
|
git clone https://github.com/SheffieldML/GPy.git
|
||||||
cd GPy
|
cd GPy
|
||||||
git checkout devel
|
git checkout devel
|
||||||
python3 setup.py build_ext --inplace
|
python setup.py build_ext --inplace
|
||||||
nosetests3 GPy/testing
|
nosetests GPy/testing
|
||||||
|
|
||||||
### Direct downloads
|
### Direct downloads
|
||||||
|
|
||||||
[](https://pypi.python.org/pypi/GPy) [](https://github.com/SheffieldML/GPy/releases/latest)
|
[](https://pypi.python.org/pypi/GPy) [](https://pypi.python.org/pypi/GPy)
|
||||||
[](https://github.com/SheffieldML/GPy/releases/latest)
|
[](https://pypi.python.org/pypi/GPy)
|
||||||
[](https://github.com/SheffieldML/GPy/releases/latest)
|
[](https://pypi.python.org/pypi/GPy)
|
||||||
|
|
||||||
|
## Running unit tests:
|
||||||
|
|
||||||
|
Ensure nose is installed via pip:
|
||||||
|
|
||||||
|
pip install nose
|
||||||
|
|
||||||
|
Run nosetests from the root directory of the repository:
|
||||||
|
|
||||||
|
nosetests -v GPy/testing
|
||||||
|
|
||||||
|
or from within IPython
|
||||||
|
|
||||||
|
import GPy; GPy.tests()
|
||||||
|
|
||||||
|
or using setuptools
|
||||||
|
|
||||||
|
python setup.py test
|
||||||
|
|
||||||
### Ubuntu hackers
|
### Ubuntu hackers
|
||||||
|
|
||||||
|
|
@ -82,84 +102,28 @@ clone this git repository and add it to your path:
|
||||||
echo 'PYTHONPATH=$PYTHONPATH:~/SheffieldML' >> ~/.bashrc
|
echo 'PYTHONPATH=$PYTHONPATH:~/SheffieldML' >> ~/.bashrc
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### OSX
|
|
||||||
|
|
||||||
|
|
||||||
We were working hard to make pre-built distributions ready.
|
|
||||||
You can now install GPy via pip on MacOSX using
|
|
||||||
[anaconda python distribution](http://continuum.io/downloads):
|
|
||||||
|
|
||||||
conda update scipy
|
|
||||||
pip install gpy
|
|
||||||
|
|
||||||
If this does not work, then you need to build GPy yourself,
|
|
||||||
using the [development toolkits](https://developer.apple.com/xcode/).
|
|
||||||
Download/clone GPy and run the build process:
|
|
||||||
|
|
||||||
conda update scipy
|
|
||||||
git clone git@github.com:SheffieldML/GPy.git ~/GPy
|
|
||||||
cd ~/GPy
|
|
||||||
python setup.py install
|
|
||||||
|
|
||||||
If you do not wish to build the C extensions (10 times speedup),
|
|
||||||
you can run the pure python installations, by just adding GPy
|
|
||||||
to your python path.
|
|
||||||
|
|
||||||
echo 'PYTHONPATH=$PYTHONPATH:~/SheffieldML' >> ~/.profile
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Compiling documentation:
|
### Compiling documentation:
|
||||||
|
|
||||||
|
|
||||||
The documentation is stored in doc/ and is compiled with the Sphinx Python documentation generator, and is written in the reStructuredText format.
|
The documentation is stored in doc/ and is compiled with the Sphinx Python documentation generator, and is written in the reStructuredText format.
|
||||||
|
|
||||||
The Sphinx documentation is available here: http://sphinx-doc.org/latest/contents.html
|
The Sphinx documentation is available here: http://sphinx-doc.org/latest/contents.html
|
||||||
|
|
||||||
|
|
||||||
##### Installing dependencies:
|
##### Installing dependencies:
|
||||||
|
|
||||||
|
|
||||||
To compile the documentation, first ensure that Sphinx is installed. On Debian-based systems, this can be achieved as follows:
|
To compile the documentation, first ensure that Sphinx is installed. On Debian-based systems, this can be achieved as follows:
|
||||||
|
|
||||||
sudo apt-get install python-pip
|
sudo apt-get install python-pip
|
||||||
sudo pip install sphinx
|
sudo pip install sphinx
|
||||||
|
|
||||||
A LaTeX distribution is also required to compile the equations. Note that the extra packages are necessary to install the unicode packages. To compile the equations to PNG format for use in HTML pages, the package *dvipng* must be installed. IPython is also required. On Debian-based systems, this can be achieved as follows:
|
##### Compiling documentation:
|
||||||
|
|
||||||
sudo apt-get install texlive texlive-latex-extra texlive-base texlive-recommended
|
|
||||||
sudo apt-get install dvipng
|
|
||||||
sudo apt-get install ipython
|
|
||||||
|
|
||||||
|
|
||||||
#### Compiling documentation:
|
|
||||||
|
|
||||||
|
|
||||||
The documentation can be compiled as follows:
|
The documentation can be compiled as follows:
|
||||||
|
|
||||||
cd doc
|
cd doc
|
||||||
|
sphinx-apidoc -o source/ ../GPy/
|
||||||
make html
|
make html
|
||||||
|
|
||||||
The HTML files are then stored in doc/build/
|
The HTML files are then stored in doc/build/html
|
||||||
|
|
||||||
|
|
||||||
## Running unit tests:
|
|
||||||
|
|
||||||
|
|
||||||
Ensure nose is installed via pip:
|
|
||||||
|
|
||||||
pip install nose
|
|
||||||
|
|
||||||
Run nosetests from the root directory of the repository:
|
|
||||||
|
|
||||||
nosetests -v GPy/testing
|
|
||||||
|
|
||||||
or from within IPython
|
|
||||||
|
|
||||||
import GPy; GPy.tests()
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Funding Acknowledgements
|
## Funding Acknowledgements
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
[bumpversion]
|
[bumpversion]
|
||||||
current_version = 0.8.8
|
current_version = 0.8.8dev
|
||||||
tag = True
|
tag = True
|
||||||
commit = True
|
commit = True
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue