check_submission
Validates a competition submission file against the sample before upload, flagging column, row, ID, missing-value, prediction-range, and top-k format issues.
Instructions
Check a submission file against the sample submission before uploading it: columns, row count, duplicated or missing IDs, missing values, constant predictions, the [0, 1] range for probabilities, per-row probability sums and the number of labels per row for top-k (MAP@k) submissions.
Args: submission_path: the file to upload. sample_submission_path: the competition's sample submission. test_path: optional test table, to check that every test ID is predicted. id_col: ID column (default: first column of the sample submission).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id_col | No | ||
| test_path | No | ||
| submission_path | Yes | ||
| sample_submission_path | Yes |