mirror of
https://github.com/NicolasBohn/NexQuant.git
synced 2026-08-05 11:07:43 +00:00
feat: add mlebench submission validitor (#545)
* add mlebench submission check * fix CI * fix bug
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
from pathlib import Path
|
||||
|
||||
from mlebench.grade import validate_submission
|
||||
from mlebench.registry import registry
|
||||
|
||||
COMPETITION_ID = "<competition_id>"
|
||||
new_registry = registry.set_data_dir(Path("/mle/data"))
|
||||
competition = new_registry.get_competition(COMPETITION_ID)
|
||||
|
||||
is_valid, message = validate_submission(Path("submission.csv"), competition)
|
||||
|
||||
print(message)
|
||||
Reference in New Issue
Block a user