Inside a training loop there is no DataFrame. Per-user, per-slate and per-token aggregates are integer-indexed arrays, and this is how they are computed.
Implement segment_stats(values, group_ids, n_groups). Given a float array values of length n, an integer array group_ids of the same length with every id in [0, n_groups), return a tuple (sums, means) where both are float arrays of length n_groups.
You have read the opening. The rest is free with a Bezen account, and no card is needed.
Behind the sign-in