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

fix/test fitting #127

Merged
merged 2 commits into from
Jul 27, 2020
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
4 changes: 2 additions & 2 deletions mogp_emulator/tests/test_fitting.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def test_fit_GP_MAP_MOGP():
fit_GP_MAP(gp, theta0=[None, None, None])

with pytest.raises(AssertionError):
fit_GP_MAP(gp, theta0=[np.zeros(3), np.zeros(1)])
fit_GP_MAP(gp, theta0=[np.zeros(1), np.zeros(3)], processes=1)

def test_fit_single_GP_MAP():
"test the method to run the minimization algorithm on a GP class"
Expand Down Expand Up @@ -261,7 +261,7 @@ def test_fit_MOGP_MAP_MOGP():
_fit_MOGP_MAP(gp, theta0=[None, None, None])

with pytest.raises(AssertionError):
_fit_MOGP_MAP(gp, theta0=[None, np.zeros(1)])
_fit_MOGP_MAP(gp, theta0=[np.zeros(1), None], processes=1)

with pytest.raises(AssertionError):
_fit_MOGP_MAP(gp, processes=-1)
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
MAJOR = 0
MINOR = 3
MICRO = 0
PRERELEASE = 15
PRERELEASE = 16
ISRELEASED = False
version = "{}.{}.{}".format(MAJOR, MINOR, MICRO)

Expand Down