MCPcopy Create free account
hub / github.com/Mattdl/ContinualPrototypeEvolution / update

Method update

main.py:307–315  ·  view source on GitHub ↗
(self, current_task, tot_res_seq, tot_avg_acc, task_res_seq, task_avg_acc)

Source from the content-addressed store, hash-verified

305 self.loss_history = {}
306
307 def update(self, current_task, tot_res_seq, tot_avg_acc, task_res_seq, task_avg_acc):
308 # Task-stamp
309 self.task_idxs.append(current_task)
310 # Total
311 self.tot_res_seqs.append(tot_res_seq)
312 self.tot_avg_accs.append(tot_avg_acc)
313 # Task
314 self.task_res_seqs.append(task_res_seq)
315 self.task_avg_accs.append(task_avg_acc)
316
317 def to_tensor(self):
318 self.task_idxs = torch.Tensor(self.task_idxs)

Callers 1

life_experienceFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected