Skip to content

Commit

Permalink
Merge branch 'main' of github.com:cemac/LIFD_GaussianProcesses into main
Browse files Browse the repository at this point in the history
  • Loading branch information
cemachelen committed Jul 6, 2022
2 parents 5382306 + 58ee8ee commit c85d4b4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Gaussian_Processes.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
]
},
{
Expand Down

0 comments on commit c85d4b4

Please sign in to comment.