Train-test splitting with stratification when appropriate
Cross-validation for robust model evaluation
Parameter optimization using systematic approaches
Residual analysis and diagnostic checks
Business interpretation of statistical results
Documentation of methodology and assumptions
Example Usage
-- Example workflow for Teradata Decision Forest Analytics
-- Replace 'your_table' with actual table name
-- 1. Data exploration and validation
SELECT COUNT(*),
COUNT(DISTINCT your_id_column),
AVG(your_target_column),
STDDEV(your_target_column)
FROM your_database.your_table;
-- 2. Execute complete classification workflow
-- (Detailed SQL provided by the skill)
Scripts Included
Core Analytics Scripts
preprocessing.sql: Data preparation and feature engineering
Best practices: Updated based on analytics community feedback
Documentation: Maintained with latest ClearScape Analytics features
Examples: Updated with real-world use cases and scenarios
This skill provides production-ready classification analytics using Teradata ClearScape Analytics TD_DecisionForest with comprehensive data science best practices.
1---2name: td-decision-forest3description: Decision forest ensemble classifier for robust predictions4---56# Teradata Decision Forest Analytics78| **Skill Name** | Teradata Decision Forest Analytics |9|----------------|--------------|10| **Description** | Decision forest ensemble classifier for robust predictions |11| **Category** | Classification Analytics |12| **Function** | TD_DecisionForest |1314## Core Capabilities1516- **Complete analytical workflow** from data exploration to model deployment17- **Automated preprocessing** including scaling, encoding, and train-test splitting18- **Advanced TD_DecisionForest implementation** with parameter optimization19- **Comprehensive evaluation metrics** and model validation20- **Production-ready SQL generation** with proper table management21- **Error handling and data quality checks** throughout the pipeline22- **Business-focused interpretation** of analytical results2324## Table Analysis Workflow2526This skill automatically analyzes your provided table to generate optimized SQL workflows. Here's how it works:2728### 1. Table Structure Analysis29- **Column Detection**: Automatically identifies all columns and their data types30- **Data Type Classification**: Distinguishes between numeric, categorical, and text columns31- **Primary Key Identification**: Detects unique identifier columns32- **Missing Value Assessment**: Analyzes data completeness3334### 2. Feature Engineering Recommendations35- **Numeric Features**: Identifies columns suitable for scaling and normalization36- **Categorical Features**: Detects columns requiring encoding (one-hot, label encoding)37- **Target Variable**: Helps identify the dependent variable for modeling38- **Feature Selection**: Recommends relevant features based on data types3940### 3. SQL Generation Process41- **Dynamic Column Lists**: Generates column lists based on your table structure42- **Parameterized Queries**: Creates flexible SQL templates using your table schema43- **Table Name Integration**: Replaces placeholders with your actual table names44- **Database Context**: Adapts to your database and schema naming conventions4546## How to Use This Skill47481. **Provide Your Table Information**:49 ```50 "Analyze table: database_name.table_name"51 or52 "Use table: my_data with target column: target_var"53 ```54552. **The Skill Will**:56 - Query your table structure using `SHOW COLUMNS FROM table_name`57 - Analyze data types and suggest appropriate preprocessing58 - Generate complete SQL workflow with your specific column names59 - Provide optimized parameters based on your data characteristics6061## Input Requirements6263### Data Requirements64- **Source table**: Teradata table with analytical data65- **Target column**: Dependent variable for classification analysis66- **Feature columns**: Independent variables (numeric and categorical)67- **ID column**: Unique identifier for record tracking68- **Minimum sample size**: 100+ records for reliable classification modeling6970### Technical Requirements71- **Teradata Vantage** with ClearScape Analytics enabled72- **Database permissions**: CREATE, DROP, SELECT on working database73- **Function access**: TD_DecisionForest, TD_DecisionForestPredict7475## Output Formats7677### Generated Tables78- **Preprocessed data tables** with proper scaling and encoding79- **Train/test split tables** for model validation80- **Model table** containing trained TD_DecisionForest parameters81- **Prediction results** with confidence metrics82- **Evaluation metrics** table with performance statistics8384### SQL Scripts85- **Complete workflow scripts** ready for execution86- **Parameterized queries** for different datasets87- **Table management** with proper cleanup procedures8889## Classification Use Cases Supported90911. **Ensemble classification**: Comprehensive analysis workflow922. **Feature importance**: Comprehensive analysis workflow933. **Robust predictions**: Comprehensive analysis workflow9495## Best Practices Applied9697- **Data validation** before analysis execution98- **Proper feature scaling** and categorical encoding99- **Train-test splitting** with stratification when appropriate100- **Cross-validation** for robust model evaluation101- **Parameter optimization** using systematic approaches102- **Residual analysis** and diagnostic checks103- **Business interpretation** of statistical results104- **Documentation** of methodology and assumptions105106## Example Usage107108```sql109-- Example workflow for Teradata Decision Forest Analytics110-- Replace 'your_table' with actual table name111112-- 1. Data exploration and validation113SELECT COUNT(*),114 COUNT(DISTINCT your_id_column),115 AVG(your_target_column),116 STDDEV(your_target_column)117FROM your_database.your_table;118119-- 2. Execute complete classification workflow120-- (Detailed SQL provided by the skill)121```122123## Scripts Included124125### Core Analytics Scripts126- **`preprocessing.sql`**: Data preparation and feature engineering127- **`table_analysis.sql`**: Automatic table structure analysis128- **`complete_workflow_template.sql`**: End-to-end workflow template129- **`model_training.sql`**: TD_DecisionForest training procedures130- **`prediction.sql`**: TD_DecisionForestPredict execution131- **`evaluation.sql`**: Model validation and metrics calculation132133### Utility Scripts134- **`data_quality_checks.sql`**: Comprehensive data validation135- **`parameter_tuning.sql`**: Systematic parameter optimization136- **`diagnostic_queries.sql`**: Model diagnostics and interpretation137138## Limitations and Disclaimers139140- **Data quality**: Results depend on input data quality and completeness141- **Sample size**: Minimum sample size requirements for reliable results142- **Feature selection**: Manual feature engineering may be required143- **Computational resources**: Large datasets may require optimization144- **Business context**: Statistical results require domain expertise for interpretation145- **Model assumptions**: Understand underlying mathematical assumptions146147## Quality Checks148149### Automated Validations150- **Data completeness** verification before analysis151- **Statistical assumptions** testing where applicable152- **Model convergence** monitoring during training153- **Prediction quality** assessment using validation data154- **Performance metrics** calculation and interpretation155156### Manual Review Points157- **Feature selection** appropriateness for business problem158- **Model interpretation** alignment with domain knowledge159- **Results validation** against business expectations160- **Documentation** completeness for reproducibility161162## Updates and Maintenance163164- **Version compatibility**: Tested with latest Teradata Vantage releases165- **Performance optimization**: Regular query performance reviews166- **Best practices**: Updated based on analytics community feedback167- **Documentation**: Maintained with latest ClearScape Analytics features168- **Examples**: Updated with real-world use cases and scenarios169170---171172*This skill provides production-ready classification analytics using Teradata ClearScape Analytics TD_DecisionForest with comprehensive data science best practices.*
Run npx skillmds@latest add teradata-labs/td-decision-forest in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Decision forest ensemble classifier for robust predictions It is listed under Data & Analytics on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Capability flags: docs only. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
teradata-labs (@teradata-labs) published this skill. Their other Agent Skills are listed on their SkillMD profile.