Skip to content

Instantly share code, notes, and snippets.

View sgongar's full-sized avatar
🌟
Per aspera ad astra

Samuel Góngora García sgongar

🌟
Per aspera ad astra
  • Spain
View GitHub Profile
msg = "Markov - ... Finished parallelized contribution algorithm."
self.log.info("{0} - {1}".format(self.task_id, msg))
try:
# Get total impact for all channels
# Sum all impacts belonging to each channel
for i in range(len(self.segments)):
total_contribution += self.tv_contribution[self.segments_n[i]].impact.sum()
msg = '{0} Segment {1} Contribution {2}'.format(self.task_id,
self.segments_n[i],