contango.trading.analysis.data.graphing_experiment
contango.trading.analysis.data.graphing_experiment
GraphingExperiment
Bases: NamedTuple
A single experiment when graphing.
Attributes:
| Name | Type | Description |
|---|---|---|
name |
str
|
The name for the experiment. |
metrics |
Metrics
|
The metrics for the experiment. |
parameters |
Mapping[str, Any]
|
A dict mapping strings to the parameters for the experiment. |
__repr__
__repr__() -> str
Returns a string representation of the experiment.
Source code in src\contango\trading\analysis\data\graphing_experiment.py
37 38 39 40 41 42 43 44 45 | |
from_experiment_result
classmethod
from_experiment_result(result: ExperimentResult) -> GraphingExperiment
Returns a GraphingExperiment from an ExperimentResult.
Source code in src\contango\trading\analysis\data\graphing_experiment.py
23 24 25 26 27 28 | |
from_experiment_results
classmethod
from_experiment_results(results: list[ExperimentResult]) -> list[GraphingExperiment]
Returns a list of GraphingExperiment instances from a list of ExperimentResult instances.
Source code in src\contango\trading\analysis\data\graphing_experiment.py
30 31 32 33 34 35 | |