td-decision-tree

Automate TD_DecisionTree classification model creation and deployment in Teradata Vantage.

7|Updated Dec 3, 2025
One-click install
npx skills add https://github.com/teradata-labs/claude-cookbooks --skill td-decision-tree
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: td-decision-tree
Source: https://github.com/teradata-labs/claude-cookbooks/tree/main/skills/analytics/td-decision-tree
Command: npx skills add https://github.com/teradata-labs/claude-cookbooks --skill td-decision-tree

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the end-to-end process of building, training, and evaluating decision tree classification models directly within Teradata Vantage, simplifying complex analytics.

Core Features & Use Cases

  • Automated Workflow: Handles data preprocessing, model training, prediction, and evaluation.
  • Feature Engineering: Recommends and applies feature engineering steps.
  • Use Case: Predict customer churn by analyzing historical customer data stored in Teradata, generating SQL scripts for the entire process.

Quick Start

Use the td-decision-tree skill to analyze table: my_database.customer_data with target column: churn_flag.

Frequently Asked Questions about td-decision-tree

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a decision tree classification model in Teradata Vantage?

To build a decision tree model in Teradata Vantage, you use SQL scripts to automate data preprocessing, feature engineering, model training, and evaluation directly within the database for categorical prediction.

Can I automate customer churn prediction using SQL in Teradata?

Yes, you can automate customer churn prediction in Teradata by analyzing historical customer data and generating SQL scripts that handle the entire workflow from feature engineering to model evaluation.

What is in-database machine learning for categorical prediction?

In-database machine learning for categorical prediction trains models like decision trees directly where the data resides, such as in Teradata Vantage, eliminating the need to move data externally for processing.

Does the td-decision-tree skill handle data preprocessing and feature engineering?

Yes, the td-decision-tree skill recommends and applies data preprocessing and feature engineering steps automatically before training the TD_DecisionTree classification model.

What are the limitations of using decision trees for classification in SQL?

Using decision trees in SQL limits you to the classification algorithms natively supported by Teradata Vantage, requiring structured data and SQL knowledge to execute the analytical workflows.

How do I evaluate a TD_DecisionTree model after training?

You evaluate a TD_DecisionTree model by using the generated SQL scripts to run predictions on your data and assess the model's performance directly within the Teradata Vantage environment.