Output: generated q random subspaces S1, S2, …, Sn
(1)
Data initialization. Initialize the number n of random subspaces, the dimension of random subspace .
(2)
For the variable features in the dataset, we used a random function to extract p features among them to obtain a random subspace, and we repeated this extraction process n time to obtain n random subspaces.
(3)
Returning generated q random subspaces S1, S2, …, Sn.