From 2cb4fc0c9c78bcdfa558d11b070ba1da282abfb7 Mon Sep 17 00:00:00 2001 From: Marcus Date: Fri, 7 Jun 2024 16:14:00 -0700 Subject: [PATCH] minor work on consistency with gpCAM --- docs/source/examples/MultiTaskTest.ipynb | 6 +++++- examples/MultiTaskTest.ipynb | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/docs/source/examples/MultiTaskTest.ipynb b/docs/source/examples/MultiTaskTest.ipynb index c06fd9a..ff75114 100644 --- a/docs/source/examples/MultiTaskTest.ipynb +++ b/docs/source/examples/MultiTaskTest.ipynb @@ -401,7 +401,11 @@ "\n", "#third task\n", "mean3 = my_gp2.posterior_mean(x_pred3D, x_out = np.zeros((1)) + 2)[\"f(x)\"]\n", - "var3 = my_gp2.posterior_covariance(x_pred3D, x_out = np.zeros((1))+2)[\"v(x)\"]" + "var3 = my_gp2.posterior_covariance(x_pred3D, x_out = np.zeros((1))+2)[\"v(x)\"]\n", + "\n", + "##we could have also called for all tasks\n", + "#mean = my_gp2.posterior_mean(x_pred3D, x_out = np.array([0,1,2]))[\"f(x)\"]\n", + "#var = my_gp2.posterior_covariance(x_pred3D, x_out = np.array([0,1,2]))[\"v(x)\"]" ] }, { diff --git a/examples/MultiTaskTest.ipynb b/examples/MultiTaskTest.ipynb index c06fd9a..ff75114 100644 --- a/examples/MultiTaskTest.ipynb +++ b/examples/MultiTaskTest.ipynb @@ -401,7 +401,11 @@ "\n", "#third task\n", "mean3 = my_gp2.posterior_mean(x_pred3D, x_out = np.zeros((1)) + 2)[\"f(x)\"]\n", - "var3 = my_gp2.posterior_covariance(x_pred3D, x_out = np.zeros((1))+2)[\"v(x)\"]" + "var3 = my_gp2.posterior_covariance(x_pred3D, x_out = np.zeros((1))+2)[\"v(x)\"]\n", + "\n", + "##we could have also called for all tasks\n", + "#mean = my_gp2.posterior_mean(x_pred3D, x_out = np.array([0,1,2]))[\"f(x)\"]\n", + "#var = my_gp2.posterior_covariance(x_pred3D, x_out = np.array([0,1,2]))[\"v(x)\"]" ] }, {