Shuffles two arrays in-place the same way using Fisher-Yates algorithm.
const a = [1,2,3,4,5];const b = [11,22,33,44,55];tf.util.shuffleCombo(a, b);console.log(a, b); Copy
const a = [1,2,3,4,5];const b = [11,22,33,44,55];tf.util.shuffleCombo(a, b);console.log(a, b);
The first array to shuffle in-place.
The second array to shuffle in-place with the same permutation as the first array.
Generated using TypeDoc
Shuffles two arrays in-place the same way using Fisher-Yates algorithm.