td-random-forest

Build and deploy classification models using Teradata's TD_RandomForest function.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill automates the complex process of building and deploying high-accuracy classification models directly within Teradata Vantage, enabling data scientists to quickly derive insights and make predictions without extensive manual SQL coding.

Core Features & Use Cases

  • End-to-End Workflow: Manages the entire machine learning lifecycle from data analysis and preprocessing to model training, prediction, and evaluation.
  • Automated SQL Generation: Dynamically generates optimized SQL scripts tailored to your specific table structure and data.
  • Use Case: Predict customer churn by training a Random Forest model on historical customer data stored in Teradata, then use the model to score current customers and identify those at high risk of leaving.

Quick Start

Analyze table: my_database.customer_data with target column: churn_flag.

Frequently Asked Questions about td-random-forest

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

FAQPage Schema
How do I build a Random Forest classification model directly in Teradata Vantage?

Build a Random Forest classification model in Teradata Vantage by using this Skill to automate data preprocessing, feature engineering, and model training via the TD_RandomForest function. It dynamically generates optimized SQL scripts tailored to your specific table structures.

Can I train a machine learning model for customer churn prediction using SQL analytics?

Train a machine learning model for customer churn prediction using SQL analytics by applying the TD_RandomForest function to historical customer data. This Skill manages the complete workflow from data exploration to generating production-ready SQL for scoring current customers.

Do I need Teradata ClearScape Analytics enabled to run in-database classification workflows?

Yes, you need Teradata Vantage with ClearScape Analytics enabled to run in-database classification workflows. ClearScape Analytics provides the underlying TD_RandomForest SQL function required to execute model training, prediction, and evaluation directly within the database environment.

What is the best way to deploy high-accuracy classification models without manual SQL coding?

Deploy high-accuracy classification models without manual SQL coding by leveraging this Skill to automate SQL generation. It handles the end-to-end machine learning lifecycle, dynamically creating optimized SQL scripts for model training and evaluation based on your data structure.

Does this Random Forest Skill handle data preprocessing and feature engineering automatically?

Yes, this Random Forest Skill handles data preprocessing and feature engineering automatically. It manages the entire machine learning lifecycle, ensuring your data is properly prepared before training the classification model using Teradata's analytical functions.

How does the TD_RandomForest function evaluate model prediction accuracy in Teradata?

The TD_RandomForest function evaluates model prediction accuracy in Teradata by scoring data and generating evaluation metrics as part of the automated workflow. This Skill handles the complete analytical process from model training to prediction and evaluation within the database.