Agent skill
Teradata XGBoost Analytics
XGBoost gradient boosting for classification and regression
Install this agent skill to your Project
npx add-skill https://github.com/teradata-labs/claude-cookbooks/tree/main/skills/analytics/td-xgboost
SKILL.md
Teradata XGBoost Analytics
| Property | Value |
|---|---|
| Skill Name | Teradata XGBoost Analytics |
| Description | XGBoost gradient boosting for classification and regression |
| Category | Machine Learning |
| Primary Function | TD_XGBoost |
| Framework | SQLE |
Core Capabilities
- Automated table structure analysis via DBC.ColumnsV
- Dynamic SQL generation for TD_XGBoost
- Complete workflow from data preparation to results interpretation
- Data quality validation and preprocessing guidance
- Parameter optimization and tuning
Key Parameters
- ResponseColumn: Target variable column name
- InputColumns: Feature columns (comma-separated in quotes)
- IDColumn: Unique row identifier
- ModelType: 'CLASSIFICATION' or 'REGRESSION'
- NumBoostedTrees: Number of boosting rounds (default 100)
- ShrinkageFactor: Learning rate 0-1 (default 0.1)
- MaxDepth: Maximum tree depth (default 6)
- MinNodeSize: Minimum samples in leaf node (default 1)
- RegLambda: L2 regularization term (default 1.0)
- ColumnSubSampling: Feature subsampling ratio 0-1 (default 1.0)
- LossFunction: 'SOFTMAX' (multiclass), 'BINOMIAL' (binary), 'MSE' (regression)
- Seed: Random seed for reproducibility
Use Cases
- Binary and multiclass classification
- Regression prediction
- Feature importance ranking
- Fraud detection and anomaly scoring
- Customer churn prediction
Example Usage
-- TD_XGBoost execution
SELECT * FROM TD_XGBoost (
ON {USER_DATABASE}.{USER_TABLE} AS InputTable
USING
ResponseColumn ('{TARGET_COLUMN}')
InputColumns ('{FEATURE_COLUMNS}')
IDColumn ('{ID_COLUMN}')
ModelType ('{MODEL_TYPE}') -- 'CLASSIFICATION' or 'REGRESSION'
NumBoostedTrees (100)
ShrinkageFactor (0.1) -- Learning rate
MaxDepth (6)
MinNodeSize (1)
RegLambda (1.0) -- L2 regularization
ColumnSubSampling (1.0)
LossFunction ('{LOSS_FUNCTION}') -- 'SOFTMAX','BINOMIAL','MSE'
Seed (42)
) AS dt;
Scripts Included
Core Analytics Scripts
table_analysis.sql: Automatic table structure discoverypreprocessing.sql: Data preparation and feature engineeringmodel_training.sql: TD_XGBoost executionevaluation.sql: Results analysis and metricscomplete_workflow_template.sql: End-to-end workflow
Utility Scripts
data_quality_checks.sql: Comprehensive data validationparameter_tuning.sql: Parameter optimizationdiagnostic_queries.sql: Results diagnostics and interpretation
Best Practices
- Always run table_analysis.sql first to understand your data structure
- Validate data quality before executing the analytical function
- Use parameter_tuning.sql to find optimal configuration
- Review diagnostic_queries.sql output for model/results validation
Limitations
- Requires Teradata Vantage 17.20+ with ClearScape Analytics
- Input data must meet function-specific requirements
- Results depend on data quality and parameter configuration
Teradata XGBoost Analytics - ClearScape Analytics skill for Teradata Vantage
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
tune-workloads
Analyze workload classification and **autonomously configure** classification rules, filters, and priorities to improve accuracy and meet business requirements
optimize-throttles
Analyze throttle behavior, recommend optimal configurations, and autonomously create/modify throttles to balance resource allocation and meet performance SLAs
analyze-performance
Analyze system performance using throttle statistics, query logs, and resource metrics to identify bottlenecks and optimization opportunities
monitor-workloads
Monitor workload definitions, distribution, and TASM statistics using real-time resources to understand classification effectiveness and workload performance
monitor-resources
Monitor AMP processor load, system physical resources, and capacity using real-time resources to track system health and identify performance bottlenecks
monitor-sessions
Monitor active Teradata sessions using real-time resources, view SQL execution details, identify blocking issues, and optionally take control actions
Didn't find tool you were looking for?