From 58ee8ee2c1c1c72443bb252a43d822220671bf14 Mon Sep 17 00:00:00 2001 From: cemachelen Date: Thu, 30 Jun 2022 22:51:51 +0100 Subject: [PATCH] :pencil2: readjust for testing --- Gaussian_Processes.ipynb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Gaussian_Processes.ipynb b/Gaussian_Processes.ipynb index cabd12d..cbd4be8 100644 --- a/Gaussian_Processes.ipynb +++ b/Gaussian_Processes.ipynb @@ -373,7 +373,10 @@ "# Check no duplicates in sample index\n", "\n", "if len(np.unique(samp_index)) != sample_size :\n", - " print(\"duplicate sample index found please rerun above cell\")" + " print(\"duplicate sample index found please rerun above cell\")\n", + " print(\"the sample will automatically be reset to 5 over the whole range\")\n", + " sample_size = 5\n", + " samp_index = np.random.randint(0, high=len(x), size=sample_size)" ] }, {