ParameterCountAnalysis
QuantConnect.Lean.Engine.Results.Analysis.Analyses.ParameterCountAnalysis
Bases: BaseResultsAnalysis
Warns when too many numeric parameters are detected in the algorithm.
issue
issue: str
Gets the description of the excessive parameter count issue.
weight
weight: int
Gets the severity weight for the parameter count analysis.
run
run(
parameters: ResultsAnalysisRunParameters,
) -> Sequence[Analysis]
run(
algorithm: QCAlgorithm, language: Language
) -> Sequence[Analysis]
Signature descriptions:
-
Runs the parameter count analysis against the provided backtest parameters.
-
Counts the algorithm's parameters and flags the backtest when more than 10 are detected.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
algorithm
|
Optional[QCAlgorithm]
|
The algorithm instance whose parameters are inspected. |
None
|
language
|
Optional[Language]
|
The programming language the algorithm is written in. |
None
|
Returns:
| Type | Description |
|---|---|
Sequence[Analysis]
|
Analysis results when the parameter count exceeds the threshold. |
single_response
single_response(
sample: Any, solutions: Sequence[str] = None
) -> Sequence[Analysis]
single_response(
sample: Any,
count: Optional[int],
solutions: Sequence[str] = None,
) -> Sequence[Analysis]
Wraps a single QuantConnect.Analysis in a one-element read-only list.
create_aggregated_response
Filters responses to those with solutions, prefixes the class name, and returns a flat list.
This codeEntityType is protected.
format_code
format_code(code: str, language: Language) -> str
Formats the specified code string according to the conventions of the given programming language.
This codeEntityType is protected.