fix inject code bug and improve dataloader spec code (#532)

This commit is contained in:
Xu Yang
2025-01-23 13:24:44 +08:00
committed by GitHub
parent f19a91abfc
commit e5b1912bfd
2 changed files with 2 additions and 1 deletions
@@ -68,6 +68,7 @@ spec:
4. Notes:
- Update `DT` (data type) based on the specific competition dataset. This can include `pd.DataFrame`, `np.array`, `torch.Tensor`, etc.
- Extend domain-specific handling steps based on the competition information.
- Never use sample submission as the test index, as it may not be the same as the test data. Use the test index file or test data source to get the test index.
{% if latest_spec %}
5. Former Specification:
+1 -1
View File
@@ -50,7 +50,7 @@ class DSRunner(Developer[DSExperiment]):
if unused_files:
logger.warning(f"Unused scripts: {unused_files}")
exp.experiment_workspace.inject_files(
{file_path.name: exp.experiment_workspace.DEL_KEY for file_path in unused_files}
**{file_path.name: exp.experiment_workspace.DEL_KEY for file_path in unused_files}
)
os.remove(exp.experiment_workspace.workspace_path / "coverage.json")
return exp