mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-08-03 12:14:39 -05:00
50 lines
1.3 KiB
Plaintext
50 lines
1.3 KiB
Plaintext
# core.config { #mlsysim.core.config }
|
|
|
|
`core.config`
|
|
|
|
|
|
|
|
## Classes
|
|
|
|
| Name | Description |
|
|
| --- | --- |
|
|
| [SimulationConfig](#mlsysim.core.config.SimulationConfig) | Standard schema for an ML systems analytical modeling run. |
|
|
|
|
### SimulationConfig { #mlsysim.core.config.SimulationConfig }
|
|
|
|
```python
|
|
core.config.SimulationConfig()
|
|
```
|
|
|
|
Standard schema for an ML systems analytical modeling run.
|
|
Can be loaded from YAML, JSON, or Python Dicts.
|
|
|
|
#### Methods
|
|
|
|
| Name | Description |
|
|
| --- | --- |
|
|
| [validate_physical_feasibility](#mlsysim.core.config.SimulationConfig.validate_physical_feasibility) | Runs a pre-solve check to ensure the configuration isn't |
|
|
|
|
##### validate_physical_feasibility { #mlsysim.core.config.SimulationConfig.validate_physical_feasibility }
|
|
|
|
```python
|
|
core.config.SimulationConfig.validate_physical_feasibility()
|
|
```
|
|
|
|
Runs a pre-solve check to ensure the configuration isn't
|
|
physically impossible (e.g., OOM on start).
|
|
|
|
## Functions
|
|
|
|
| Name | Description |
|
|
| --- | --- |
|
|
| [load_config](#mlsysim.core.config.load_config) | Helper to parse a dictionary into a validated analytical configuration. |
|
|
|
|
### load_config { #mlsysim.core.config.load_config }
|
|
|
|
```python
|
|
core.config.load_config(data)
|
|
```
|
|
|
|
Helper to parse a dictionary into a validated analytical configuration.
|