boopy saur commited on
Commit
4ae081d
·
verified ·
1 Parent(s): 7597a5a

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +21 -0
README.md ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ apolocheese for poor format, it's because I Don't Care (i'm tired and still working)
2
+ data from: https://github.com/google-deepmind/mathematics_dataset
3
+
4
+ ```python
5
+ from huggingface_hub import snapshot_download
6
+ from datasets import load_dataset
7
+ import os
8
+
9
+ def get_all_files(directory):
10
+ file_paths = []
11
+ for root, dirs, files in os.walk(directory):
12
+ for name in files:
13
+ full_path = os.path.join(root, name)
14
+ file_paths.append(os.path.abspath(full_path))
15
+ return file_paths
16
+
17
+ DATA_SPLIT="train_easy" # extrapolate, interpolate, train-easy, train-hard, train-medium
18
+ DATA_LOCATION = snapshot_download("metalure/that-one-google-math-dataset")
19
+
20
+ dataset = load_dataset("json", data_files=get_all_files(os.path.join(DATA_LOCATION, DATA_SPLIT)))
21
+ ```