alexandonian commited on
Commit
dd49053
·
verified ·
1 Parent(s): 65be771

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +68 -75
README.md CHANGED
@@ -1,75 +1,68 @@
1
- ---
2
- configs:
3
- - config_name: default
4
- data_files:
5
- - split: full
6
- path: data/full-*
7
- - split: train
8
- path: data/train-*
9
- - split: test
10
- path: data/test-*
11
- - split: easy
12
- path: data/easy-*
13
- - split: medium
14
- path: data/medium-*
15
- - split: hard
16
- path: data/hard-*
17
- - split: early_problems
18
- path: data/early_problems-*
19
- - split: later_problems
20
- path: data/later_problems-*
21
- - split: sample
22
- path: data/sample-*
23
- dataset_info:
24
- features:
25
- - name: id
26
- dtype: int32
27
- - name: title
28
- dtype: string
29
- - name: problem
30
- dtype: string
31
- - name: question_latex
32
- dtype: string
33
- - name: question_html
34
- dtype: string
35
- - name: numerical_answer
36
- dtype: string
37
- - name: pub_date
38
- dtype: string
39
- - name: solved_by
40
- dtype: string
41
- - name: diff_rate
42
- dtype: string
43
- - name: difficulty
44
- dtype: string
45
- splits:
46
- - name: full
47
- num_bytes: 2322335.230603448
48
- num_examples: 918
49
- - name: train
50
- num_bytes: 1856856.2737068965
51
- num_examples: 734
52
- - name: test
53
- num_bytes: 465478.9568965517
54
- num_examples: 184
55
- - name: easy
56
- num_bytes: 700748.2122844828
57
- num_examples: 277
58
- - name: medium
59
- num_bytes: 850005.051724138
60
- num_examples: 336
61
- - name: hard
62
- num_bytes: 771581.9665948276
63
- num_examples: 305
64
- - name: early_problems
65
- num_bytes: 1173816.5
66
- num_examples: 464
67
- - name: later_problems
68
- num_bytes: 1148518.7306034483
69
- num_examples: 454
70
- - name: sample
71
- num_bytes: 126488.84698275862
72
- num_examples: 50
73
- download_size: 5161799
74
- dataset_size: 9415829.769396551
75
- ---
 
1
+ # Project Euler Problems Dataset
2
+
3
+ A comprehensive collection of mathematical and programming challenges from Project Euler (projecteuler.net), organized for machine learning and educational purposes.
4
+
5
+ ## Dataset Description
6
+
7
+ This dataset contains 918 problems from Project Euler, a series of challenging mathematical/computer programming problems that require creative problem-solving approaches.
8
+
9
+ ### Features
10
+
11
+ - **id**: Problem number (integer)
12
+ - **title**: Problem title
13
+ - **problem**: Plain text version of the problem statement
14
+ - **question_latex**: LaTeX formatted problem statement
15
+ - **question_html**: HTML formatted problem statement
16
+ - **numerical_answer**: The correct numerical answer
17
+ - **pub_date**: Publication date
18
+ - **solved_by**: Number of people who have solved the problem
19
+ - **diff_rate**: Difficulty rating (percentage of users who solved it)
20
+
21
+ ## Splits
22
+
23
+ The dataset provides several splits for different use cases:
24
+
25
+ - **train/test**: Standard 80/10/10 split for machine learning
26
+ - train: 734 problems
27
+ - test: 184 problems
28
+ - **easy/medium/hard**: Problems grouped by difficulty level
29
+ - easy: 277 problems (>25% solve rate)
30
+ - medium: 336 problems (5-25% solve rate)
31
+ - hard: 305 problems (≤5% solve rate)
32
+ - **early_problems/later_problems**: First half vs. second half of problems by ID
33
+ - early_problems: 464 problems
34
+ - later_problems: 454 problems
35
+ - **sample**: A random selection of 50 problems for quick experimentation
36
+
37
+
38
+ ## Usage
39
+
40
+ ```python
41
+ from datasets import load_dataset
42
+
43
+ # Load the entire dataset with all splits
44
+ dataset = load_dataset("your-username/project-euler-problems")
45
+
46
+ # Work with specific splits
47
+ train_problems = dataset["train"]
48
+ hard_problems = dataset["hard"]
49
+ sample_problems = dataset["sample"]
50
+
51
+ # Example: Get a problem
52
+ problem = train_problems[0]
53
+ print(f"Problem #{problem["id"]}: {problem["title"]}")
54
+ print(problem["problem"])
55
+ print(f"Answer: {problem["numerical_answer"]}")
56
+ ```
57
+
58
+ ## Potential Applications
59
+
60
+ - Training math problem-solving models
61
+ - Generating solutions or solution approaches
62
+ - Testing reasoning capabilities of language models
63
+ - Educational tools for learning algorithmic thinking
64
+
65
+ ## Citation & License
66
+
67
+ This dataset is provided for research and educational purposes.
68
+ Project Euler problems are from projecteuler.net.