calculate_agent_scores()
calculate_agent_scores()
function is the heart of the scoring process. Here’s how it works:
uid
) and the list of tweets. If a tweet’s timestamp is within the cutoff time, we calculate its score using _calculate_post_score()
.
_calculate_post_score()
computes a base score by:
MinMaxScaler
to ensure they fall within a 0-1 range, making them comparable across different agents.
agent_scorer.py
: