Type definition for a GSM-hard math problem. Reference link: https://huggingface.co/datasets/reasoning-machines/gsm-hard Attributes: input: The math problem question as a string. target: The expected numeric answer.
| 37 | |
| 38 | |
| 39 | class GsmProblem(TypedDict): |
| 40 | """Type definition for a GSM-hard math problem. |
| 41 | |
| 42 | Reference link: https://huggingface.co/datasets/reasoning-machines/gsm-hard |
| 43 | |
| 44 | Attributes: |
| 45 | input: The math problem question as a string. |
| 46 | target: The expected numeric answer. |
| 47 | """ |
| 48 | |
| 49 | input: str |
| 50 | target: float |
| 51 | |
| 52 | |
| 53 | def _download_dataset() -> None: # pyright: ignore[reportUnusedFunction] |