This function applies an adstock process to media spend data. It achieves
this by creating a windowed view of themediatensor and then usingtf.einsumto efficiently compute the weighted sum based on the providedweights. Theweightstensor defines the decay effect over a specificwindow_size. The output is truncated ton_times_outputperiods.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-05-27 UTC."],[],[]]