Datasets:
Dataset Viewer
The dataset viewer is not available for this dataset.
Unexpected token '<', "<html>
<h"... is not valid JSON
Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
apolocheese for poor format, it's because I Don't Care (i'm tired and still working) data from: https://github.com/google-deepmind/mathematics_dataset
from huggingface_hub import snapshot_download
from datasets import load_dataset
import os
def get_all_files(directory):
file_paths = []
for root, dirs, files in os.walk(directory):
for name in files:
full_path = os.path.join(root, name)
file_paths.append(os.path.abspath(full_path))
return file_paths
DATA_SPLIT="train-easy" # extrapolate, interpolate, train-easy, train-hard, train-medium
DATA_LOCATION = snapshot_download("midwestern-simulation/that-one-google-math-dataset", repo_type="dataset")
dataset = load_dataset("json", data_files=get_all_files(os.path.join(DATA_LOCATION, DATA_SPLIT)))
- Downloads last month
- 30