000-docs/000a-planned-skills/live/nixtla-timegpt-finetune-lab/SKILL.md
Fine-tunes TimeGPT on custom datasets to improve forecasting accuracy. Use when TimeGPT's zero-shot performance is insufficient or domain-specific accuracy is needed. Trigger with "finetune TimeGPT", "train TimeGPT", "adapt TimeGPT".
npx skillsauth add intent-solutions-io/plugins-nixtla nixtla-timegpt-finetune-labInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Adapts the TimeGPT model to specific datasets for enhanced forecasting performance.
Improves forecasting accuracy by fine-tuning the pre-trained TimeGPT model on custom time series data.
This skill guides users through the process of fine-tuning TimeGPT on their own datasets. It handles data preprocessing, training configuration, and evaluation. Use when domain-specific accuracy is crucial or when the general TimeGPT model underperforms. It outputs a fine-tuned model and performance metrics.
Tools: Read, Write, Bash, Glob, Grep
Environment: NIXTLA_TIMEGPT_API_KEY
Packages:
pip install nixtla pandas scikit-learn matplotlib
Load and preprocess time series data into Nixtla format (unique_id, ds, y).
python {baseDir}/scripts/prepare_data.py \
--input data.csv \
--train_output train_data.csv \
--val_output val_data.csv
Requirements:
Output:
Create or validate training configuration.
# Create default config
python {baseDir}/scripts/configure_training.py \
--create_default \
--output config.json
# Or validate existing config
python {baseDir}/scripts/configure_training.py \
--config config.json
Configuration parameters:
Run the fine-tuning process using prepared data and configuration.
export NIXTLA_TIMEGPT_API_KEY=your_api_key
python {baseDir}/scripts/finetune_model.py \
--train_data train_data.csv \
--config config.json \
--output finetuned_model.pkl
Output: finetuned_model.pkl (serialized fine-tuned model)
Evaluate the fine-tuned model on validation data and save metrics.
python {baseDir}/scripts/evaluate_model.py \
--val_data val_data.csv \
--model finetuned_model.pkl \
--config config.json \
--output metrics.json
Output: metrics.json (MAE, RMSE metrics)
Error: NIXTLA_TIMEGPT_API_KEY not set
Solution: export NIXTLA_TIMEGPT_API_KEY=your_api_key
Error: Invalid data format
Solution: Ensure data has columns: unique_id, ds, y
Error: Insufficient training data
Solution: Provide a larger training dataset (at least 50 time series points per series)
Error: Fine-tuning failed
Solution: Adjust the fine-tuning parameters (learning rate, epochs) in config.json
Error: Missing required column
Solution: Verify CSV has unique_id, ds, y columns with correct data types
Input:
unique_id,ds,y
store_1,2023-01-01,100
store_1,2023-01-02,110
Command:
python {baseDir}/scripts/finetune_model.py \
--train_data train_data.csv \
--config config.json \
--output finetuned_model.pkl
Output: finetuned_model.pkl (a serialized, fine-tuned TimeGPT model)
Input:
unique_id,ds,y
building_1,2023-01-01 00:00,50
building_1,2023-01-01 01:00,55
Command:
python {baseDir}/scripts/evaluate_model.py \
--val_data val_data.csv \
--model finetuned_model.pkl \
--config config.json \
--output metrics.json
Output: metrics.json (performance metrics of the fine-tuned model)
{baseDir}/scripts/prepare_data.py{baseDir}/scripts/configure_training.py{baseDir}/scripts/finetune_model.py{baseDir}/scripts/evaluate_model.pytesting
This skill enables Claude to manage isolated test environments using Docker Compose, Testcontainers, and environment variables. It is used to create consistent, reproducible testing environments for software projects. Claude should use this skill when the user needs to set up a test environment with specific configurations, manage Docker Compose files for test infrastructure, set up programmatic container management with Testcontainers, manage environment variables for tests, or ensure cleanup after tests. Trigger terms include "test environment", "docker compose", "testcontainers", "environment variables", "isolated environment", "env-setup", and "test setup".
tools
This skill uses the test-doubles-generator plugin to automatically create mocks, stubs, spies, and fakes for unit testing. It analyzes dependencies in the code and generates appropriate test doubles based on the chosen testing framework, such as Jest, Sinon, or others. Use this skill when you need to generate test doubles, mocks, stubs, spies, or fakes to isolate units of code during testing. Trigger this skill by requesting test double generation or using the `/gen-doubles` or `/gd` command.
tools
This skill enables Claude to generate realistic test data for software development. It uses the test-data-generator plugin to create users, products, orders, and custom schemas for comprehensive testing. Use this skill when you need to populate databases, simulate user behavior, or create fixtures for automated tests. Trigger phrases include "generate test data", "create fake users", "populate database", "generate product data", "create test orders", or "generate data based on schema". This skill is especially useful for populating testing environments or creating sample data for demonstrations.
development
This skill analyzes code coverage metrics to identify untested code and generate comprehensive coverage reports. It is triggered when the user requests analysis of code coverage, identification of coverage gaps, or generation of coverage reports. The skill is best used to improve code quality by ensuring adequate test coverage and identifying areas for improvement. Use trigger terms like "analyze coverage", "code coverage report", "untested code", or the shortcut "cov".