For my DARTS coding 3 , how to do the coding for Ltrain(w+) and Ltrain(w-) inside equation (8) of DARTS paper ?
Note: Upon checking the definition of finite difference method at MATH behind DARTS 1 , it seems that the above 2 lines of code are wrong.
but the question is how to modify these 2 lines of code ?

image1000×1072 205 KB