You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-2Lines changed: 16 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -158,14 +158,27 @@ After installation, activate the virtual environment to run your code or noteboo
158
158
The main entry point for running experiments is typically a script or notebook that defines the parameter space and iterates through it. Here is a conceptual example of how to run a single pipeline iteration:
159
159
160
160
```python
161
+
import os
162
+
from pathlib import Path
161
163
from ml_grid.pipeline.data import pipe
162
164
from ml_grid.util.param_space import parameter_space
163
165
from ml_grid.util.global_params import global_parameters
166
+
from ml_grid.util.create_experiment_directory import create_experiment_directory
164
167
165
168
# Define global settings
166
169
global_parameters.verbose = 2
167
170
global_parameters.error_raise = False
168
171
172
+
# Define project root and experiment directories robustly
173
+
# Assumes the script/notebook is in a subdirectory like 'notebooks'
174
+
project_root = Path().resolve().parent
175
+
176
+
# Define a base directory for all experiments within the project root
0 commit comments