Skip to content

API Reference parrot_tools.sensitivity_analysis

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot_tools.sensitivity_analysis

View source

SensitivityAnalysisTool — One-at-a-time sensitivity analysis.

Determines which input variables have the greatest impact on a target metric. Generates tornado-style rankings and elasticity coefficients.

Alias AbstractTool

Re-exported from parrot_tools.abstract.AbstractTool.

Alias DerivedMetric

Re-exported from parrot_tools.whatif.DerivedMetric.

Alias MetricsCalculator

Re-exported from parrot_tools.whatif.MetricsCalculator.

Class SensitivityAnalysisInput

Input schema for SensitivityAnalysisTool.

Fields:

Field Type Default Description
df_name str Name or alias of the dataset
target_metric str Target column or derived metric to analyze
input_variables Optional[List[str]] None Columns to vary. If None, uses all numeric columns except target
variation_range float 20.0 Percentage variation to test (e.g., 20 means +/-20%)
derived_metrics List[DerivedMetric] Formulas for computed metrics
method str 'one_at_a_time' Method: 'one_at_a_time' (tornado) or 'all_at_once' (spider)

Class SensitivityAnalysisTool

Analyze which variables have the greatest impact on a target metric.

Performs one-at-a-time sensitivity analysis: varies each input variable by +/-N% while holding others constant, measures impact on the target metric, and ranks variables by absolute impact.

Parameter Type Default Description
**kwargs {}

Attributes:

Attribute Type Description
args_schema Type[BaseModel]

Alias ToolResult

Re-exported from parrot_tools.abstract.ToolResult.

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally