Skip to content

API Reference parrot_tools.regression_analysis

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

parrot_tools.regression_analysis

View source

RegressionAnalysisTool — linear/polynomial/log regression.

Models quantitative relationships between variables using pure numpy + scipy.

Alias AbstractTool

Re-exported from parrot_tools.abstract.AbstractTool.

Class RegressionAnalysisTool

Model quantitative relationships between variables.

Fits linear, polynomial, or log regression using numpy/scipy. Returns model equation, coefficients, fit diagnostics, and predictions.

Parameter Type Default Description
**kwargs {}

Attributes:

Attribute Type Description
args_schema Type[BaseModel]

Class RegressionInput

Input schema for RegressionAnalysisTool.

Fields:

Field Type Default Description
df_name str Name or alias of the dataset
target str Dependent variable (Y) to predict
predictors List[str] Independent variables (X1, X2, ...)
model_type str 'linear' Model: 'linear', 'polynomial' (degree 2), 'log'
predict_at Optional[Dict[str, float]] None Predict Y for given X values (e.g., {'kiosks': 1450})
include_diagnostics bool True Include R-squared, residual analysis, significance tests

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