@@ -56,7 +56,7 @@ ps = []; t_full = 0; t_sparse = 0; t_stoch = 0;
5656# # #### FULL MODEL EVALUATION ####
5757if fullm
5858 println (" Testing the full model" )
59- t_full = @elapsed fullmodel = OMGP. BatchXGPC (X,y,noise= noise,kernel= kernel,verbose= 3 ,Autotuning= true )
59+ t_full = @elapsed fullmodel = OMGP. BatchXGPC (X,y,noise= noise,kernel= kernel,verbose= verbose ,Autotuning= true )
6060 t_full += @elapsed fullmodel. train (iterations= 20 )
6161 y_full = fullmodel. predictproba (X_test); acc_full = 1 - sum (abs .(sign .(y_full.- 0.5 )- y_test))/ (2 * length (y_test))
6262 if doPlots
6767# # #### SPARSE MODEL EVALUATION ####
6868if sparsem
6969 println (" Testing the sparse model" )
70- t_sparse = @elapsed sparsemodel = OMGP. SparseXGPC (X,y,Stochastic= false ,Autotuning= true ,ϵ= 1e-6 ,verbose= 3 ,m= N_indpoints,noise= 1e-10 ,kernel= kernel,OptimizeIndPoints= false )
70+ t_sparse = @elapsed sparsemodel = OMGP. SparseXGPC (X,y,Stochastic= false ,Autotuning= true ,ϵ= 1e-6 ,verbose= verbose ,m= N_indpoints,noise= 1e-10 ,kernel= kernel,OptimizeIndPoints= false )
7171 metrics,savelog = OMGP. getLog (sparsemodel,X_test= X_test,y_test= y_test)
7272 t_sparse += @elapsed sparsemodel. train (iterations= 100 )# ,callback=savelog)
7373 y_sparse = sparsemodel. predictproba (X_test); acc_sparse = 1 - sum (abs .(sign .(y_sparse.- 0.5 )- y_test))/ (2 * length (y_test))
8181# ### STOCH. SPARSE MODEL EVALUATION ###.
8282if ssparsem
8383 println (" Testing the sparse stochastic model" )
84- t_stoch = @elapsed stochmodel = OMGP. SparseXGPC (X,y,Stochastic= true ,batchsize= 40 ,Autotuning= true ,verbose= 2 ,m= N_indpoints,noise= noise,kernel= kernel,OptimizeIndPoints= false )
84+ t_stoch = @elapsed stochmodel = OMGP. SparseXGPC (X,y,Stochastic= true ,batchsize= 40 ,Autotuning= true ,verbose= verbose ,m= N_indpoints,noise= noise,kernel= kernel,OptimizeIndPoints= false )
8585 metrics,savelog = OMGP. getLog (stochmodel,X_test= X_test,y_test= y_test)
8686 t_stoch += @elapsed stochmodel. train (iterations= 1000 )# ,callback=savelog)
8787 y_stoch = stochmodel. predictproba (X_test); acc_stoch = 1 - sum (abs .(sign .(y_stoch.- 0.5 )- y_test))/ (2 * length (y_test))
0 commit comments