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)" ] }, {