AlexNeagu123 commited on
Commit
8546cc4
·
verified ·
1 Parent(s): 549d54b

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +100 -0
README.md ADDED
@@ -0,0 +1,100 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pretty_name: Three-Body Trajectory Benchmark
3
+ tags:
4
+ - physics
5
+ - n-body
6
+ - three-body-problem
7
+ - dynamical-systems
8
+ - gravitational-simulation
9
+ - trajectory-prediction
10
+ - graph-neural-networks
11
+ task_categories:
12
+ - time-series-forecasting
13
+ ---
14
+
15
+ # Three-Body Trajectory Benchmark
16
+
17
+ This dataset contains two-dimensional gravitational three-body trajectories used in a master's thesis on neural prediction of dynamical systems. The benchmark is designed for training and evaluating models that generate future states autoregressively from an initial state.
18
+
19
+ Each trajectory contains three equal-mass bodies interacting through mutual gravitational interaction. The data were generated with the REBOUND simulation package using the IAS15 integrator. All simulations use gravitational constant `G = 1`, body mass `m = 1`, time step `dt = 0.05`, and 200 sampled states per trajectory.
20
+
21
+ ## Files
22
+
23
+ | File | Role | Number of trajectories |
24
+ |---|---:|---:|
25
+ | `train.h5` | training split | 1000 |
26
+ | `val.h5` | validation split | 600 |
27
+ | `test.h5` | test split | 600 |
28
+
29
+ The validation and test splits are balanced across five trajectory classes defined by the closest encounter reached during the trajectory. The training split follows the same class balance.
30
+
31
+ ## State Format
32
+
33
+ The main dataset inside each HDF5 file is named `trajectories` and has shape:
34
+
35
+ ```text
36
+ (n_trajectories, 200, 3, 5)
37
+ ```
38
+
39
+ The last dimension stores the state of one body:
40
+
41
+ ```text
42
+ [x, y, vx, vy, m]
43
+ ```
44
+
45
+ where `x, y` are planar coordinates, `vx, vy` are planar velocity components, and `m` is the body mass.
46
+
47
+ Each file also contains an `energies` dataset with shape:
48
+
49
+ ```text
50
+ (n_trajectories, 200)
51
+ ```
52
+
53
+ This stores the total mechanical energy of the corresponding trajectory at each sampled time step.
54
+
55
+ ## Trajectory Classes
56
+
57
+ Trajectories are grouped by the minimum pairwise Euclidean distance reached between any two bodies during the full trajectory:
58
+
59
+ | Class | Criterion |
60
+ |---|---:|
61
+ | `close` | `0.00 <= d_min < 0.02` |
62
+ | `near` | `0.02 <= d_min < 0.05` |
63
+ | `mid` | `0.05 <= d_min < 0.15` |
64
+ | `wide` | `0.15 <= d_min < 0.50` |
65
+ | `far` | `0.50 <= d_min` |
66
+
67
+ The HDF5 files include the following stratification fields:
68
+
69
+ | Dataset / attribute | Description |
70
+ |---|---|
71
+ | `encounter_bin_id` | integer class id for each trajectory |
72
+ | `encounter_bin_name` | class name for each trajectory |
73
+ | `min_pairwise_distance` | minimum pairwise distance for each trajectory |
74
+ | `encounter_bins_json` | JSON description of the class boundaries |
75
+
76
+ ## Generation Procedure
77
+
78
+ Initial positions are sampled from a zero-mean Gaussian distribution with standard deviation `1.0`. Initial velocities are sampled from a zero-mean Gaussian distribution with standard deviation `0.5`. After sampling, the center-of-mass position and velocity are subtracted so that the generated system does not contain global translation or drift.
79
+
80
+ Candidate trajectories are rejected if any two bodies approach closer than `10^-3` or if any coordinate leaves the box `[-5, 5] x [-5, 5]`. Accepted trajectories are then assigned to one of the five trajectory classes according to their minimum pairwise distance.
81
+
82
+ ## Loading Example
83
+
84
+ ```python
85
+ import h5py
86
+
87
+ with h5py.File("train.h5", "r") as f:
88
+ trajectories = f["trajectories"][:] # (1000, 200, 3, 5)
89
+ energies = f["energies"][:] # (1000, 200)
90
+ class_names = f["encounter_bin_name"][:] # (1000,)
91
+ d_min = f["min_pairwise_distance"][:] # (1000,)
92
+
93
+ first_state = trajectories[0, 0] # (3, 5)
94
+ ```
95
+
96
+ ## Intended Use
97
+
98
+ The dataset is intended for studying autoregressive trajectory prediction in gravitational three-body systems. It can be used to compare neural models across both trajectory accuracy and energy conservation, and to analyze how model behavior changes between smooth trajectories and close-encounter trajectories.
99
+
100
+ The dataset was used in the thesis experiments to train and evaluate E(n)-Equivariant Graph Neural Networks and Hamiltonian Graph Neural Networks under a shared training and evaluation protocol.