in contentselection/oracle.py [0:0]
def compute_user_activity(df, weights=(0.2, 0.5, 0.3)):
# Weights: 0.2 for comments, 0.5 for views, 0.3 for likes
df['user_activity_score'] = (
weights[0] * df['comment_count'] +
weights[1] * df['view_count'] +
weights[2] * df['like_count']
)
return df