A custom kernel constraint function that restricts weights between the learned distribution and output. Nonzero weights are determined by the Q matrix.
q_constraint(Q)
a binary matrix of size num_skills
by num_items
returns a function whose parameters match keras kernel constraint format