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

Function get_data

metrics/plot.py:99–104  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 = [], [], []

Callers 1

_plot_featspaceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected