()
| 97 | |
| 98 | # ADD DATA POINTS IN FEAT SPACE |
| 99 | def get_data(): |
| 100 | data = tr_data[:plot_t + 1] if data_mode == 'tr' else eval_data[:plot_t + 1] |
| 101 | d_x = torch.cat([t[1] for t in data], dim=0).cuda() # [(),x,y] entry per task |
| 102 | d_y = torch.cat([t[2] for t in data], dim=0) |
| 103 | d_yunique = torch.unique(d_y).squeeze() |
| 104 | return d_x, d_y.cpu().numpy(), d_yunique.cpu().numpy() |
| 105 | |
| 106 | def get_mem_data(): |
| 107 | d_x, d_y, d_yunique = [], [], [] |