Tested hyperparameter sampling and results agree with Matlab code