Repository navigation
fix(analysis): rerun a job on its own data files - #26
Merged
Merged
Conversation
Rerun resolved the project's latest upload of each role instead of the files the original job used, so in a project with several datasets (e.g. one per CV split) a rerun silently trained and tested on other data. The files are now read back from the original job's param.yaml and matched to the project's dataset files (keeping the project-membership check and the duplicate-detection hash). If they were removed from the project, the rerun is refused with 409 instead of switching data.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
POST /analysis/{project}/jobs/{job}/rerunignored which files the original job used. It took the most recently uploaded file of each role (xtrain,ytrain,xtest,ytest) across all datasets of the project. In a project holding several datasets, for example one per cross-validation split, a rerun trained and tested on different data than the original, and nothing said so.Found while running a parameter sweep over 30 splits in one project.
Change
_original_job_files(): reads the data paths from the original job'sparam.yaml(written at launch) and maps them back to the project'sDatasetFilerows. The project-membership check stays, and the duplicate-detection hash now uses the original file ids.Tests
test_rerun_uses_the_original_jobs_files: a second dataset is uploaded after the first job; the rerun must use the first job's files and hash.test_rerun_refuses_when_original_files_are_gone: datasets unassigned from the project → 409.Both fail on the previous code. Backend suite: 563 passed, 6 skipped.