-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
consensus neededFurther information is requestedFurther information is requestedenhancementNew feature or requestNew feature or request
Milestone
Description
Weighted models are calculated as
that is, sum the weights of the ground lines, then multiply by the weights in the response line, then add to the weights of the response line multiplied with itself, then square or log the result.
Here, we'd sum the ground lines, giving
-
$\theta_{AA} = .3 \times .4 = .12$ ,$\sqrt{\theta_{AA}} \approx .35$ (note, we don't count the$.3$ on the last line as connecting to itself, so we do not have$.3 \times .3$ as a term) -
$\theta_{BA} = .1 \times .3 + .1 \times .4 = .07$ ,$\sqrt{\theta_{BA}} \approx .26$
this can be implemented by keeping a running sum of the conversation weights that, at the end of each line loop:
- adds the current response line to the running ground total
- accesses the row
windowSizeor so back by index (the row that is falling out of the window as this new line enters), and subtracts that row from the running ground total
This lets us handle things in linear time, assuming index look-up is constant time in DataFrames
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
consensus neededFurther information is requestedFurther information is requestedenhancementNew feature or requestNew feature or request


