From fa8164a0514b38d62a5c13d49cf05978cf8714c0 Mon Sep 17 00:00:00 2001 From: MRIDUL JAIN <105979087+Spinachboul@users.noreply.github.com> Date: Thu, 4 Jan 2024 15:56:11 +0530 Subject: [PATCH] Delete docs/src/Improvedgekpls.md --- docs/src/Improvedgekpls.md | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 docs/src/Improvedgekpls.md diff --git a/docs/src/Improvedgekpls.md b/docs/src/Improvedgekpls.md deleted file mode 100644 index df0ce0d5..00000000 --- a/docs/src/Improvedgekpls.md +++ /dev/null @@ -1,38 +0,0 @@ -# GEKPLS Function - -```@example gekpls_water_flow - -using Surrogates -using Zygote - -function water_flow(x) - r_w = x[1] - r = x[2] - T_u = x[3] - H_u = x[4] - T_l = x[5] - H_l = x[6] - L = x[7] - K_w = x[8] - log_val = log(r/r_w) - return (2*pi*T_u*(H_u - H_l))/ ( log_val*(1 + (2*L*T_u/(log_val*r_w^2*K_w)) + T_u/T_l)) -end - -n = 1000 -lb = [0.05,100,63070,990,63.1,700,1120,9855] -ub = [0.15,50000,115600,1110,116,820,1680,12045] -x = sample(n,lb,ub,SobolSample()) -grads = gradient.(water_flow, x) -y = water_flow.(x) -n_test = 100 -x_test = sample(n_test,lb,ub,GoldenSample()) -y_true = water_flow.(x_test) -n_comp = 2 -delta_x = 0.0001 -extra_points = 2 -initial_theta = [0.01 for i in 1:n_comp] -g = GEKPLS(x, y, grads, n_comp, delta_x, lb, ub, extra_points, initial_theta) -y_pred = g.(x_test) -rmse = sqrt(sum(((y_pred - y_true).^2)/n_test)) #root mean squared error -println(rmse) #0.0347 -```