mirror of
https://github.com/NicolasBohn/NexQuant.git
synced 2026-07-27 23:47:46 +00:00
fix inject code bug and improve dataloader spec code (#532)
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user