online_attacks/datastream/toy_data.py [17:28]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        for i in range(
            max_perms
        ):  # (1) Draw N samples from permutations Universe U (#U = k!)
            while True:  # (2) Endless loop
                perm = np.random.permutation(
                    N
                )  # (3) Generate a random permutation form U
                key = tuple(perm)
                if (
                    key not in self.perms
                ):  # (4) Check if permutation already has been drawn (hash table)
                    self.perms.append(key)  # (5) Insert into set
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



online_attacks/datastream/toy_data.py [49:60]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        for i in range(
            max_perms
        ):  # (1) Draw N samples from permutations Universe U (#U = k!)
            while True:  # (2) Endless loop
                perm = np.random.permutation(
                    N
                )  # (3) Generate a random permutation form U
                key = tuple(perm)
                if (
                    key not in self.perms
                ):  # (4) Check if permutation already has been drawn (hash table)
                    self.perms.append(key)  # (5) Insert into set
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



