Target Variable: Helps identify the dependent variable for modeling
Feature Selection: Recommends relevant features based on data types
3. SQL Generation Process
Dynamic Column Lists: Generates column lists based on your table structure
Parameterized Queries: Creates flexible SQL templates using your table schema
Table Name Integration: Replaces placeholders with your actual table names
Database Context: Adapts to your database and schema naming conventions
How to Use This Skill
Provide Your Table Information:
"Analyze table: database_name.table_name"
or
"Use table: my_data with target column: target_var"
The Skill Will:
Query your table structure using SHOW COLUMNS FROM table_name
Analyze data types and suggest appropriate preprocessing
Generate complete SQL workflow with your specific column names
Provide optimized parameters based on your data characteristics
Input Requirements
Data Requirements
Source table: Teradata table with analytical data
Target column: Dependent variable for preprocessing analysis
Input data: Properly formatted Teradata table
Column specifications: Appropriate data types for analysis
Technical Requirements
Teradata Vantage with ClearScape Analytics enabled
Database permissions: CREATE, DROP, SELECT on working database
Function access: TD_TrainTestSplit
Output Formats
Generated Tables
Preprocessed data tables with proper scaling and encoding
Train/test split tables for model validation
Processed results from TD_TrainTestSplit analysis
Summary statistics and transformation parameters
SQL Scripts
Complete workflow scripts ready for execution
Parameterized queries for different datasets
Table management with proper cleanup procedures
Preprocessing Use Cases Supported
Model validation: Comprehensive analysis workflow
Data partitioning: Comprehensive analysis workflow
Cross-validation: Comprehensive analysis workflow
Best Practices Applied
Data validation before analysis execution
Proper feature scaling and categorical encoding
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 Train-Test Split
-- 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 preprocessing 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 preprocessing analytics using Teradata ClearScape Analytics TD_TrainTestSplit with comprehensive data science best practices.
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: td-train-test-split3description: Data splitting for model validation using TD_TrainTestSplit Use when this capability is needed.4---56# Teradata Train-Test Split78| **Skill Name** | Teradata Train-Test Split |9|----------------|--------------|10| **Description** | Data splitting for model validation using TD_TrainTestSplit |11| **Category** | Preprocessing Analytics |12| **Function** | TD_TrainTestSplit |1314## Core Capabilities1516- **Complete analytical workflow** from data exploration to model deployment17- **Automated preprocessing** including scaling, encoding, and train-test splitting18- **Advanced TD_TrainTestSplit 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 preprocessing analysis66- **Input data**: Properly formatted Teradata table67- **Column specifications**: Appropriate data types for analysis6869### Technical Requirements70- **Teradata Vantage** with ClearScape Analytics enabled71- **Database permissions**: CREATE, DROP, SELECT on working database72- **Function access**: TD_TrainTestSplit7374## Output Formats7576### Generated Tables77- **Preprocessed data tables** with proper scaling and encoding78- **Train/test split tables** for model validation79- **Processed results** from TD_TrainTestSplit analysis80- **Summary statistics** and transformation parameters8182### SQL Scripts83- **Complete workflow scripts** ready for execution84- **Parameterized queries** for different datasets85- **Table management** with proper cleanup procedures8687## Preprocessing Use Cases Supported88891. **Model validation**: Comprehensive analysis workflow902. **Data partitioning**: Comprehensive analysis workflow913. **Cross-validation**: Comprehensive analysis workflow9293## Best Practices Applied9495- **Data validation** before analysis execution96- **Proper feature scaling** and categorical encoding97- **Train-test splitting** with stratification when appropriate98- **Cross-validation** for robust model evaluation99- **Parameter optimization** using systematic approaches100- **Residual analysis** and diagnostic checks101- **Business interpretation** of statistical results102- **Documentation** of methodology and assumptions103104## Example Usage105106```sql107-- Example workflow for Teradata Train-Test Split108-- Replace 'your_table' with actual table name109110-- 1. Data exploration and validation111SELECT COUNT(*),112 COUNT(DISTINCT your_id_column),113 AVG(your_target_column),114 STDDEV(your_target_column)115FROM your_database.your_table;116117-- 2. Execute complete preprocessing workflow118-- (Detailed SQL provided by the skill)119```120121## Scripts Included122123### Core Analytics Scripts124- **`preprocessing.sql`**: Data preparation and feature engineering125- **`table_analysis.sql`**: Automatic table structure analysis126- **`complete_workflow_template.sql`**: End-to-end workflow template127- **`evaluation.sql`**: Model validation and metrics calculation128129### Utility Scripts130- **`data_quality_checks.sql`**: Comprehensive data validation131- **`parameter_tuning.sql`**: Systematic parameter optimization132- **`diagnostic_queries.sql`**: Model diagnostics and interpretation133134## Limitations and Disclaimers135136- **Data quality**: Results depend on input data quality and completeness137- **Sample size**: Minimum sample size requirements for reliable results138- **Feature selection**: Manual feature engineering may be required139- **Computational resources**: Large datasets may require optimization140- **Business context**: Statistical results require domain expertise for interpretation141- **Model assumptions**: Understand underlying mathematical assumptions142143## Quality Checks144145### Automated Validations146- **Data completeness** verification before analysis147- **Statistical assumptions** testing where applicable148- **Model convergence** monitoring during training149- **Prediction quality** assessment using validation data150- **Performance metrics** calculation and interpretation151152### Manual Review Points153- **Feature selection** appropriateness for business problem154- **Model interpretation** alignment with domain knowledge155- **Results validation** against business expectations156- **Documentation** completeness for reproducibility157158## Updates and Maintenance159160- **Version compatibility**: Tested with latest Teradata Vantage releases161- **Performance optimization**: Regular query performance reviews162- **Best practices**: Updated based on analytics community feedback163- **Documentation**: Maintained with latest ClearScape Analytics features164- **Examples**: Updated with real-world use cases and scenarios165166---167168*This skill provides production-ready preprocessing analytics using Teradata ClearScape Analytics TD_TrainTestSplit with comprehensive data science best practices.*169170---171> Converted and distributed by [TomeVault](https://tomevault.io/claim/teradata-labs) — claim your Tome and manage your conversions.172<!-- tomevault:4.0:skill_md:2026-04-13 -->
Run npx skillmds@latest add tomevault-io/td-train-test-split 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.
Data splitting for model validation using TD_TrainTestSplit Use when this capability is needed. It is listed under AI & ML on SkillMD.
This skill has not completed SkillMD's automated safety review yet. 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.
tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.