(path)
| 186 | return data |
| 187 | |
| 188 | def load_csv(path): |
| 189 | file_list = [] |
| 190 | data = pd.read_csv(path) |
| 191 | columns = data.columns.tolist() |
| 192 | for index, row in data.iterrows(): |
| 193 | file_list.append({}) |
| 194 | for column in columns: |
| 195 | file_list[index][column] = row[column] |
| 196 | return file_list |
| 197 | |
| 198 | def get_parameter_number(model): |
| 199 | total_num = sum(p.numel() for p in model.parameters()) |
nothing calls this directly
no outgoing calls
no test coverage detected