JerryWu-code/DML-OpenProblem

Use this help them fix some bugs in code and description for mathematics formula.

โ˜… 0Forks 0PythonGitHub โ†—Compare

Project website โ†—

coding-interviewsleetcode-solutionsmacine-learning

README

Deep-ML Open Problem Bank

A community-maintained collection of machine learning coding challenges.
Each problem lives in its own folder (questions/<id>_<slug>/) so contributors can edit Markdown, Python, and JSON files naturally.
A build script assembles everything into a single JSON file used by deep-ml.com.


๐Ÿ“ Repository Layout

.
โ”œโ”€ questions/
โ”‚  โ”œโ”€ _template/                โ† Copy this to start a new problem
โ”‚  โ”œโ”€ 101_grpo_objective/
โ”‚  โ”‚   โ”œโ”€ meta.json
โ”‚  โ”‚   โ”œโ”€ description.md
โ”‚  โ”‚   โ”œโ”€ learn.md
โ”‚  โ”‚   โ”œโ”€ starter_code.py
โ”‚  โ”‚   โ”œโ”€ solution.py
โ”‚  โ”‚   โ”œโ”€ example.json
โ”‚  โ”‚   โ”œโ”€ tests.json
โ”‚  โ”‚   โ”œโ”€ tinygrad/
โ”‚  โ”‚   โ”‚   โ”œโ”€ starter_code.py
โ”‚  โ”‚   โ”‚   โ”œโ”€ solution.py
โ”‚  โ”‚   โ”‚   โ””โ”€ tests.json
โ”‚  โ”‚   โ””โ”€ pytorch/
โ”‚  โ”‚       โ”œโ”€ starter_code.py
โ”‚  โ”‚       โ”œโ”€ solution.py
โ”‚  โ”‚       โ””โ”€ tests.json
โ”‚  โ””โ”€ ...
โ”‚
โ”œโ”€ schemas/
โ”‚  โ””โ”€ question.schema.json     โ† JSON-Schema used for validation
โ”‚
โ”œโ”€ utils/
โ”‚  โ”œโ”€ build_bundle.py          โ† folder โ†’ build/*.json bundler
โ”‚  โ”œโ”€ validate_questions.py    โ† schema validator
โ”‚  โ””โ”€ make_question_template.pyโ† template folder generator
โ”‚
โ””โ”€ .github/workflows/
   โ””โ”€ format_questions.yml     โ† GitHub Action: validate on PR/push

๐Ÿ› ๏ธ Adding a New Question

  1. Copy the template
cp -r questions/_template questions/123_my_problem
  1. Fill in the fields
  • meta.json: question ID, title, category, difficulty, etc.
  • description.md: problem statement
  • learn.md: explanation and background
  • starter_code.py, solution.py: reference implementation
  • example.json: input/output + reasoning
  • tests.json: list of { "test": "...", "expected_output": "..." }
  • Optional language support under tinygrad/ and pytorch/
  1. Run local validation
python utils/build_bundle.py && python utils/validate_questions.py
  1. Open a Pull Request

CI will build and validate your changes automatically.


๐Ÿงช Schema Validation

The schema ensures:

  • Required fields are present
  • Optional tinygrad_*, pytorch_* are allowed
  • No invalid or extra fields

Each question must pass validation before it can be merged.


๐Ÿค– GitHub Actions

Located in .github/workflows/format_questions.yml, this runs:

  1. build_bundle.py โ€“ compiles all question folders
  2. validate_questions.py โ€“ checks for schema and structure errors

CI fails if anything is invalid.


๐Ÿ“œ License

All problems are for educational use only.
See LICENSE file for full terms.


๐Ÿ™‹ Need Help?

Open an issue or visit our Discord: https://discord.gg/JwMePfMZAV

Note:

for current PRs I will still work on making the other parts of the problem like i did before but it would be faster if you added the needed info