Calcuate the the adjusted McFadden's pseudo R-square between the embeddings and the labels
get_r2_mcfadden(embeds, y)
a n-by-q matrix, specify the embedding matrix.
a n-length vector, specify the labels.
return the adjusted McFadden's pseudo R-square.
None
McFadden, D. (1987). Regression-based specification tests for the multinomial logit model. Journal of econometrics, 34(1-2), 63-82.