mlcommons / mlcommons/algorithmic-efficiency

Add tests for scoring code

Open
#624 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
425
Forks
78
PR merge metrics
No merged PRs in 30d

Description

Add unit and integration tests to test the following requirements:

In both strict=False and strict=True, to receive a finite score for a workload a submission must:

  • Reach the validation target on the fixed workload within the maximum runtime.
  • Reach the validation target fixed workload within 4x of the fastest submission.

In strict=True, to receive a finite score for a workload a submission must:

  • Reach the validation target for at least 3/5 studies (the median).
  • Take the best over 5 trials per study.
  • Reach the validation target on the held-out workload (corresponding to the fixed workload) within the maximum runtime.
  • Reach the validation target on the held-out workload (corresponding to the fixed workload) within 4x of the fastest submission.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files or existing tests; start by locating the scoring implementation and its current unit and integration test coverage. Add tests for both strict modes covering runtime, fastest-submission, study-median, trial-selection, and held-out-workload requirements, then run the relevant test suite to verify finite-score behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing-qa
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.