Skip to content

Commit

Permalink
Add Gpx derivatives prediction API test
Browse files Browse the repository at this point in the history
  • Loading branch information
relf committed Mar 27, 2024
1 parent fbafb1e commit de54127
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions python/egobox/tests/test_gpmix.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ def test_gpx_kriging(self):
self.assertAlmostEqual(
0.0, gpx.predict_var(np.array([[1.1]])).item(), delta=1e-3
)
self.assertAlmostEqual(
1.1204, gpx.predict_derivatives(np.array([[1.1]])).item(), delta=1e-3
)
self.assertAlmostEqual(
0.0092, gpx.predict_var_derivatives(np.array([[1.1]])).item(), delta=1e-3
)

def test_gpx_save_load(self):
filename = "gpdump.json"
Expand Down

0 comments on commit de54127

Please sign in to comment.