Skip to main content
. 2019 Feb 21;19(4):910. doi: 10.3390/s19040910
Algorithm 1 Algorithm of the optimal solution
Step 1. Determine the dataset D, the classifier h, the learning algorithm A, the required accuracy σ, the proportion τ in the holdout method.
Step 2. Initialize n=0, acc(C(0)) = 0, D=;
Step 3. Execute the iteration below:
     While acc(C(n))<σ:
       If n<m:
       n=n+1;
       For every sample s in D:
         take s[1,n] into D
       End
       Learn the classifier C(n) using the learning algorithm A on the dataset D;
       Estimate acc(C(n)) using the holdout method;
       D=
       Else:
     End while
Step 4. Output the optimal sampling number n