• 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);

    Parameters

    • array: any[] | Float32Array | Int32Array | Uint32Array

      The first array to shuffle in-place.

    • array2: any[] | Float32Array | Int32Array | Uint32Array

      The second array to shuffle in-place with the same permutation as the first array.

    Returns void

    Doc

Generated using TypeDoc