Commit graph

5785 commits

Author SHA1 Message Date
Yixin Lin
0a9893e839
Fix rank>0 thread exiting during SparseGP multiprocessing (#731)
If you run mpiexec -n 2 on any code to try to use MPI multiprocessing for SparseGPRegression, it crashes (see #618) because the rank>1 processes do not have ret defined.
2022-04-17 09:25:17 -07:00
gehbiszumeis
bb1bc50886
to_dict() and from_dict() functionality for Coregionalize Kernel and MixedNoise Likelihood class, appveyor CI resurrected (#951)
This PR adds two main things to GPy:
- to- and from-dict functions for the kernels listed belop
- a fix for the appveyor CI
Please see the squashed commit messages listed below.
Authors: @gehbiszumeis @ppk42 respectively
Reviewer: @ekalosak 

---
* new: added to_dict() method to Coregionalize kernel class

* new: added to_dict() method to MixedNoise likelihood class

* fix: made Y_metadata dict content serializable

* fix: typo

* added additional needed parameters to to_dict() method for Coregionalize kernel + added _build_from_input dict method

* new: added possibility to build MixedNoise likelihood from input_dict

* Y_metadata conversion from serializable to np.array when loading from dict

* fix: rework Y_metadata part for compatibility with unittests !minor

* conda cleanup in appveyors pipeline

* conda clean up after conda update

* conda clean before conda update

* try pinning packages for conda

* revert all conda changes

* conda clean all (not only packages)

* use conda update anaconda

* pin conda package

* pin conda package

* try installing charset-normalizer beforehand

* try to get from conda-forge

* revert all conda changes

* Try to fix the conda update challange.

See: https://community.intel.com/t5/Intel-Distribution-for-Python/Conda-update-Conda-fails/td-p/1126174

It is just a try for a different context/(conda version).

* Still fixing build error on appveyor

I also use a newer miniconda version for greater python versions.

* Update appveyor.yml

Thinking it over it decided to use miniconda38 for all python versions unless python 3.5.

* revert miniconda versioning changes

* adjust GPy version in appveyor.yml

* 1st attempt bring the appveyor build to life again

* #955 fixing ci build on appveyor

After bringing the miniconda env to work again, the wrong matplotlib version was used. This commit should fix that.

* #955 Fix CI build

Freezing numpy and scipy was a bad idea.
I freeze matplotlib  dependend  on the python version only.

* add: built_from_dict method for White Kernel

Co-authored-by: Peter Paul Kiefer <ppk42@users.noreply.github.com>
Co-authored-by: Peter Paul Kiefer <dafisppk@gmail.com>
2021-12-09 14:14:27 -05:00
Tao Cui
3e19a85575
Update priors_plots.py (#929)
Change pb.hist(rvs, 100, normed=True) to pb.hist(rvs, 100, density=True) in file priors_plots.py.
2021-06-07 19:28:37 -07:00
Neil Lawrence
111727e139
Merge pull request #928 from lawrennd/devel
Make examples files check if matplotlib is available.
2021-05-29 14:38:56 +01:00
Neil Lawrence
06f60715a9 Merge branch 'SheffieldML:devel' into devel 2021-05-28 21:27:23 +01:00
Tim Gates
4089a662a9
docs: fix simple typo, symetric -> symmetric (#883)
There is a small typo in doc/source/tuto_creating_new_kernels.rst.

Should read `symmetric` rather than `symetric`.
2021-05-27 19:47:48 -07:00
Eric Kalosa-Kenyon
62d735e6a6
Fix GPy.priors.InverseGamma (#903)
* fixed InverseGamma prior: beforehand, it was a child class of Gamma but it defined a broken __new__ method of its own. Now, it just inherits Gamma's __new__; also added a test that ensures the InverseGamma can be instantiated and integrated into a GPy model

* overwrote misleading inherited methods in InverseGamma, deleted unnecessary repeated code
2021-05-26 17:37:55 -07:00
Neil Lawrence
b174b58b79 Fix MPL_AVAILABLE error. 2021-05-24 09:19:45 +01:00
Neil Lawrence
b0e66c5cb5 Merge branch 'devel' of https://github.com/lawrennd/GPy into devel 2021-05-24 09:15:07 +01:00
Neil Lawrence
5fb4aeb688 Start integration of flake8 errors into examples 2021-05-24 09:15:00 +01:00
Neil Lawrence
88d4fbf2c0
Merge pull request #918 from lawrennd/devel
Fix code that was relying on Python 2 integer division
2021-05-24 08:52:48 +01:00
Neil Lawrence
5686950b51 Add Eric's suggesiton to 'raise from' 2021-05-24 08:51:24 +01:00
Neil Lawrence
ed2d90fb22 Fix badly formatted comment region.
:
2021-05-24 08:45:29 +01:00
Neil Lawrence
599f57cad5 Run black on examples. 2021-05-24 08:38:46 +01:00
Neil Lawrence
0219847ce9 Update osu-run1 example. 2021-05-21 08:21:48 +01:00
Neil Lawrence
a12298d60e Update error message a little. 2021-05-21 08:03:50 +01:00
Neil Lawrence
74fab170d1 Update visualize stick_show for Python 3 and with clear error message for failure. 2021-05-21 08:01:39 +01:00
Neil Lawrence
ff2eea1169 Merge branch 'SheffieldML:devel' into devel 2021-05-21 07:41:07 +01:00
Neil Lawrence
c36cd19572
Force integer division (missed Python2-Python 3 change) 2021-05-21 07:29:01 +01:00
Neil Lawrence
714ad858aa Update GPy/util/normalizer.py 2021-05-19 18:52:40 +01:00
Neil Lawrence
ef90137c4c Fix dimensionality reduction example to work with notebook. 2021-05-19 18:52:40 +01:00
Neil Lawrence
5f68d8a7c3 Fix normalizer to catch when output scale is zero. 2021-05-19 18:52:40 +01:00
Neil Lawrence
95426aed34 Fix normalizer to catch when output scale is zero. 2021-05-19 18:52:40 +01:00
Neil Lawrence
943be980d4 Fix normalizer to catch when output scale is zero. 2021-05-19 18:52:40 +01:00
Neil Lawrence
11f806df3f Fix normalizer to catch when output scale is zero. 2021-05-19 18:52:40 +01:00
Neil Lawrence
5c71aa45c7 Update GPLVM class to use metadata and output normalizers. 2021-05-19 18:52:40 +01:00
Neil Lawrence
8b098ec59b Fix cmu_mocap demo. 2021-05-19 18:52:40 +01:00
Neil Lawrence
fbe0a09506 Fix cmu_mocap demo. 2021-05-19 18:52:40 +01:00
Neil Lawrence
67834da195 Fix cmu_mocap demo. 2021-05-19 18:52:40 +01:00
Neil Lawrence
9686a58b35 Fix cmu_mocap demo. 2021-05-19 18:52:40 +01:00
Neil Lawrence
20750d7a5e Fix cmu_mocap demo. 2021-05-19 18:52:40 +01:00
Neil Lawrence
4dfc22277f Give latent axes proper key. 2021-05-19 18:52:40 +01:00
Neil Lawrence
f822caaf2c Remove == None and replace with is 2021-05-19 18:52:40 +01:00
Neil Lawrence
cc00de7d41 Update visualize.py
Due to this issue: https://github.com/matplotlib/matplotlib/issues/17172 setting aspect equal doesn't work on 3D axes. Removing for the moment.
2021-05-19 18:52:40 +01:00
Neil Lawrence
d645fc34bc
Update GPy/util/normalizer.py 2021-05-19 18:31:52 +01:00
Neil Lawrence
dc7bf22400 Fix dimensionality reduction example to work with notebook. 2021-05-19 10:06:40 +01:00
Neil Lawrence
c0cd01423f Fix normalizer to catch when output scale is zero. 2021-05-19 10:00:41 +01:00
Neil Lawrence
ede1174d8f Fix normalizer to catch when output scale is zero. 2021-05-19 09:58:16 +01:00
Neil Lawrence
7f1d62757c Fix normalizer to catch when output scale is zero. 2021-05-19 09:55:13 +01:00
Neil Lawrence
2d82aa185c Fix normalizer to catch when output scale is zero. 2021-05-19 09:50:51 +01:00
Neil Lawrence
9ac6bb3545 Update GPLVM class to use metadata and output normalizers. 2021-05-19 09:45:21 +01:00
Neil Lawrence
8e6dbfdc61 Fix cmu_mocap demo. 2021-05-18 20:27:16 +01:00
Neil Lawrence
530531f4ff Fix cmu_mocap demo. 2021-05-18 20:24:18 +01:00
Neil Lawrence
b8f515ca05 Fix cmu_mocap demo. 2021-05-18 20:22:22 +01:00
Neil Lawrence
44c22372a1 Fix cmu_mocap demo. 2021-05-18 20:18:23 +01:00
Neil Lawrence
4ab77fbc36 Fix cmu_mocap demo. 2021-05-18 20:15:17 +01:00
Aditya Saini
6751515c19
Fix docstring for gp.py::GP.__init__() (#915)
Removed indication in docstring that was incorrect: `kernel` is a required arg, but docstring stated it was optional. Now, docstring does not say it's optional.
2021-05-18 10:14:58 -07:00
Neil Lawrence
0291c282e7
Give latent axes proper key. 2021-05-18 17:51:00 +01:00
Neil Lawrence
89a7988bdd
Remove == None and replace with is 2021-05-18 17:43:52 +01:00
Neil Lawrence
fee16c7b18
Update visualize.py
Due to this issue: https://github.com/matplotlib/matplotlib/issues/17172 setting aspect equal doesn't work on 3D axes. Removing for the moment.
2021-05-18 17:38:21 +01:00