My goal: to measure prediction density in TM within htm.core.
My question: am I doing it right? Here’s my current code:
I’m doing this in order to measure precision in TM.
I know I could technically achieve this by reporting either:
number of predicted cells
sparsity of predicted cells relative to the whole TM region
But I want to normalize it to a pred_count (how many predictions were made), so non-HTM people can intuitively understand it.
I though to achieved this with:
n_pred_cells / n_winner_cells
I assumed that n_winner_cell would be constant, but I found it sometimes varies:
Does this look like a valid approach to you?