(data, indices)
| 8 | |
| 9 | |
| 10 | def extract_axis_1(data, indices): |
| 11 | res = [] |
| 12 | for i in range(data.shape[0]): |
| 13 | res.append(data[i, indices[i], :]) |
| 14 | res = torch.stack(res, dim=0).unsqueeze(1) |
| 15 | return res |
| 16 | |
| 17 | |
| 18 | def to_pickled_df(data_directory, **kwargs): |
nothing calls this directly
no outgoing calls
no test coverage detected