Skip to main content
. 2019 Dec 5;19(24):5368. doi: 10.3390/s19245368
Algorithm 2: Subroutine of CV
Input: dataset {A, Y}
Results: fitness value λn
Divide{A,Y}into k disjoint sub-datasets{A1,Y1},{A2,Y2},{A3,Y3},……,{Ak,Yk};
For p = 1:k
  Set A as the input variable, Y as the output variable;
  Train a new ANN with dataset {A,Y}={A,Y}-{Ak,Yk};
  Validate the dataset {Ak,Yk} on the new ANN and the MSE denoted as MSEp;
End
λn=1kp=1kMSEp;