Skip to main content
. 2018 Mar 12;12:76. doi: 10.3389/fnins.2018.00076

Algorithm 3.

Bootstrapping2

1: procedure BOOTSTRAPPING THE TRAINING X DATASET FROM TENFOLDS USING MATHEMATICAL COMBINATION
2:      Input : input data Xtrain
3:      Output : nine different training input dataset X2j
4:      ⊳ Start with the original dataset Xtrain, but edit the selected column by the corresponding column in algorithm1
5:      X2 = Xtrain
6:      for Each column in X2 as j do
7:           ⊳ make a copy of X2j for editing
8:           column = X2j
9:           for r in range(1, 12) do
10:               ⊳ generate all unique iterations of column using nCr method, and then replace the corresponding index in the Xtrain while the rest of the columns remain the same
11:               newdata = nCriterations(12, r, row)
12:               X2j = replace_bootstrapping1(Xtrain[j]_replace Xp[newdata])