I have two matrices, high dimensional. The number of columns in the matrices are same, however the rows are different. I want to shuffle 10%( or a fixed number say 50 samples) of samples between the matrices for 10 different times( random sampling). For each shuffle i want a new matrix with 10% samples shuffled between matrix A and matrix B.
A short example would be:
Matrix A:
| sample A | sample B | sample C |
|---|---|---|
| 8 | 1 | 8 |
| 4 | 2 | 4 |
| 6 | 9 | 9 |
Matrix B:
| Sample 1 | Sample 2 | Sample 3 | sample 4 |
|---|---|---|---|
| 8 | 1 | 5 | 6 |
| 5 | 1 | 1 | 7 |
| 9 | 5 | 8 | 2 |
Resultant Matrix(shuffle 1) Matrix A shuffled::
| sample A | sample B | sample 2 |
|---|---|---|
| 8 | 1 | 1 |
| 4 | 2 | 1 |
| 6 | 9 | 5 |
Matrix B shuffled:
| Sample 1 | Sample B | Sample 3 | sample 4 |
|---|---|---|---|
| 8 | 8 | 5 | 6 |
| 5 | 4 | 1 | 7 |
| 9 | 9 | 8 | 2 |
I need these two matrices and then another 9 with shuffled randomly by 10%.
I would appreciate any help!