Deep InfoMax scores pairs of local and global features with a learned bilinear discriminator. The score is high when the local feature is consistent with the global summary, which is what the mutual information estimate rewards.
Implement discriminator_score(local, global_vec, W), returning local^T W global.
W has shape (d_l, d_g).Multiply the local vector by the matrix, then dot with the global vector.
No results yet
Run your code to check it against the examples, or submit to run every test.