Status
Functions to get the status of a run and save the status to CSV files.
This module provides utilities for monitoring NePS optimization runs.
Summary
dataclass
#
Summary(
by_state: dict[State, list[Trial]],
best: tuple[Trial, float] | None,
is_multiobjective: bool,
)
Summary of the current state of a neps run.
completed
#
Return all trials which are in a completed state.
df
#
df() -> DataFrame
Convert the summary into a dataframe.
Source code in neps/status/status.py
formatted
#
formatted(
pipeline_space: (
PipelineSpace | SearchSpace | None
) = None,
) -> str
Return a formatted string of the summary.
| PARAMETER | DESCRIPTION |
|---|---|
pipeline_space
|
Optional PipelineSpace for the run. If provided, it is used to format the best config in a more readable way. This is typically auto-loaded from disk by the status() function.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
str
|
A formatted string of the summary. |
Source code in neps/status/status.py
179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 | |
from_directory
classmethod
#
Create a summary from a neps run directory.
Source code in neps/status/status.py
from_trials
classmethod
#
Summarize a mapping of trials into (by_state, is_multiobjective, best).
This extracts the core loop from Summary.from_directory so callers that
already have a trials mapping can reuse the logic without re-reading state.
Source code in neps/status/status.py
post_run_csv
#
Create CSV files summarizing the run data.
| PARAMETER | DESCRIPTION |
|---|---|
root_directory
|
The root directory of the NePS run. |
| RETURNS | DESCRIPTION |
|---|---|
tuple[Path, Path]
|
The paths to the configuration data CSV and the run data CSV. |
Source code in neps/status/status.py
status
#
Print status information of a neps run and return results.
| PARAMETER | DESCRIPTION |
|---|---|
root_directory
|
The root directory given to neps.run. |
print_summary
|
If true, print a summary of the current run state.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
tuple[DataFrame, Series]
|
Dataframe of full results and short summary series. |