Agent skill

Cuml Machine Learning

by wahyudesu in wahyudesu/Fastapi-AI-Production-Template

A skill your agent uses for GPU-accelerated machine learning on tabular data using NVIDIA cuML.

MITAuto-check passedData & Analytics

Install Cuml Machine Learning

skills CLI
$ npx skills add wahyudesu/Fastapi-AI-Production-Template --skill cuml-machine-learning -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install wahyudesu/Fastapi-AI-Production-Template cuml-machine-learning --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/wahyudesu/Fastapi-AI-Production-Template.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/cuml-machine-learning .claude/skills/cuml-machine-learning && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
cuml-machine-learning
GitHub stars
114
Token cost
~1.8k tokens
SKILL.md length
284 words
Files
1
Skills in repo
1
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses for GPU-accelerated machine learning on tabular data using NVIDIA cuML.

  • GPU-accelerated machine learning on tabular data using NVIDIA cuML
  • SKILL.md covers When to Use This Skill, Initialization (REQUIRED), Import Patterns and Quick Reference, plus 3 more sections
  • Calls pip
  • Tasks involve classification

What it does

Cuml Machine Learning is an agent skill from wahyudesu/Fastapi-AI-Production-Template. Use for GPU-accelerated machine learning on tabular data using NVIDIA cuML. Triggers when tasks involve classification, regression, clustering, dimensionality reduction, or model training on datasets.

Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Data & Analytics, covering Machine learning and Backend development. It works with NVIDIA AI Platform, UMAP, FastAPI and Python. The repository describes itself as: Simple starter template for your ML/AI projects (uv package manager, RestAPI with FastAPI and Dockerfile support). The licence is MIT.

When your agent uses it

  • GPU-accelerated machine learning on tabular data using NVIDIA cuML
  • Tasks involve classification
  • Dimensionality reduction
  • Model training on datasets

Example prompts

  • “/cuml-machine-learning”

Requirements

  • Python 3

What it can do on your machine

Read from SKILL.md and the folder at commit 1d6860f. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • pip

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use pip, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Cuml Machine Learning loads about 1.8k tokens when it runs. Until then it costs about 56 tokens; SKILL.md has 284 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~56
When it runs · the whole SKILL.md, loaded when a task matches
~1.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from wahyudesu/Fastapi-AI-Production-Template at commit 1d6860f, republished under its MIT licence (© wahyudesu). 284 words, ~1,752 tokens.

Download SKILL.mdSave it as .claude/skills/cuml-machine-learning/SKILL.md (or your agent's skills folder).
name
cuml-machine-learning
description
Use for GPU-accelerated machine learning on tabular data using NVIDIA cuML. Triggers when tasks involve classification, regression, clustering, dimensionality reduction, or model training on datasets.

cuML Machine Learning Skill

GPU-accelerated machine learning using NVIDIA RAPIDS cuML. cuML provides a scikit-learn-compatible API that runs on NVIDIA GPUs, enabling massive speedups on large datasets.

When to Use This Skill

Use this skill when:

  • Training classification models (predict categories, detect fraud, classify text)
  • Training regression models (forecast values, predict prices, estimate quantities)
  • Clustering data (segment customers, group documents, find patterns)
  • Dimensionality reduction (visualize high-dimensional data, compress features)
  • Preprocessing and feature engineering on large datasets
  • Any ML task on datasets with 10K+ rows where GPU acceleration helps

Initialization (REQUIRED)

Always start every script with this boilerplate. It tests actual GPU ML operations.

python
import pandas as pd
import numpy as np

try:
    import cudf
    import cuml
    # Smoke-test: verify GPU ML works end-to-end
    _test_data = cudf.DataFrame({'a': [1.0, 2.0, 3.0, 4.0], 'b': [5.0, 6.0, 7.0, 8.0]})
    _km = cuml.cluster.KMeans(n_clusters=2, n_init=1, random_state=42)
    _km.fit(_test_data)
    assert len(_km.labels_) == 4
    GPU = True
except Exception as e:
    print(f"[GPU] cuml unavailable, falling back to scikit-learn: {e}")
    GPU = False

def read_csv(path):
    return cudf.read_csv(path) if GPU else pd.read_csv(path)

def to_pd(df):
    """Convert cuML/cuDF output to pandas. Use this instead of .to_pandas() directly."""
    if not GPU:
        return df
    try:
        return df.to_pandas()
    except Exception as e:
        print(f"[GPU] .to_pandas() failed, using Arrow fallback: {e}")
        return df.to_arrow().to_pandas()

Import Patterns

python
# GPU mode
if GPU:
    from cuml.cluster import KMeans, DBSCAN, HDBSCAN
    from cuml.ensemble import RandomForestClassifier, RandomForestRegressor
    from cuml.linear_model import LinearRegression, Ridge, Lasso, LogisticRegression
    from cuml.neighbors import KNeighborsClassifier, KNeighborsRegressor
    from cuml.svm import SVC, SVR
    from cuml.decomposition import PCA, TruncatedSVD
    from cuml.manifold import UMAP, TSNE
    from cuml.preprocessing import StandardScaler, MinMaxScaler, LabelEncoder
    from cuml.model_selection import train_test_split
    from cuml.metrics import accuracy_score, r2_score, mean_squared_error
# CPU fallback
else:
    from sklearn.cluster import KMeans, DBSCAN, HDBSCAN
    from sklearn.ensemble import RandomForestClassifier, RandomForestRegressor
    from sklearn.linear_model import LinearRegression, Ridge, Lasso, LogisticRegression
    from sklearn.neighbors import KNeighborsClassifier, KNeighborsRegressor
    from sklearn.svm import SVC, SVR
    from sklearn.decomposition import PCA, TruncatedSVD
    from sklearn.manifold import TSNE
    from sklearn.preprocessing import StandardScaler, MinMaxScaler, LabelEncoder
    from sklearn.model_selection import train_test_split
    from sklearn.metrics import accuracy_score, r2_score, mean_squared_error
    # UMAP not in sklearn — skip or pip install umap-learn

Quick Reference

Train/Test Split (Start Here)
python
X = df[["feature1", "feature2", "feature3"]].astype("float32")
y = df["target"]

X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=42)
Classification
python
model = RandomForestClassifier(n_estimators=100, max_depth=10, random_state=42)
model.fit(X_train, y_train)

predictions = model.predict(X_test)
accuracy = float(accuracy_score(to_pd(y_test), to_pd(predictions)))
print(f"Accuracy: {accuracy:.4f}")

# Feature importances (tree models only)
importances = to_pd(model.feature_importances_)
for name, imp in zip(feature_names, importances):
    print(f"  {name}: {imp:.4f}")
Regression
python
model = Ridge(alpha=1.0)
model.fit(X_train, y_train)

predictions = model.predict(X_test)
r2 = float(r2_score(to_pd(y_test), to_pd(predictions)))
mse = float(mean_squared_error(to_pd(y_test), to_pd(predictions)))
print(f"R² Score: {r2:.4f}")
print(f"MSE: {mse:.4f}")

# Coefficients
coeffs = to_pd(model.coef_)
print(f"Intercept: {float(model.intercept_):.4f}")
Clustering (KMeans)
python
X = df[["feature1", "feature2"]].astype("float32")

model = KMeans(n_clusters=4, n_init=10, random_state=42)
model.fit(X)

labels = to_pd(model.labels_)
centroids = to_pd(model.cluster_centers_)
inertia = float(model.inertia_)

print(f"Inertia: {inertia:.2f}")
print(f"Cluster sizes: {labels.value_counts().sort_index().to_dict()}")
print(f"Centroids:\n{centroids}")
Dimensionality Reduction (PCA)
python
scaler = StandardScaler()
X_scaled = scaler.fit_transform(X.astype("float32"))

pca = PCA(n_components=3)
X_reduced = pca.fit_transform(X_scaled)

variance_ratio = to_pd(pca.explained_variance_ratio_)
print(f"Explained variance: {[f'{v:.4f}' for v in variance_ratio]}")
print(f"Total explained: {float(sum(variance_ratio)):.4f}")
Dimensionality Reduction (UMAP — GPU only)
python
if GPU:
    reducer = UMAP(n_components=2, n_neighbors=15, min_dist=0.1, random_state=42)
    embedding = to_pd(reducer.fit_transform(X_scaled))
    print(f"UMAP embedding shape: {embedding.shape}")
Preprocessing
python
# Scale numeric features
scaler = StandardScaler()
X_scaled = scaler.fit_transform(X.astype("float32"))

# Encode categorical columns
le = LabelEncoder()
df["category_encoded"] = le.fit_transform(df["category"])

Data Type Requirements

  • cuML requires float32 or float64 for features. Always cast: X.astype("float32")
  • Integer targets (classification labels) work directly
  • Categorical columns must be encoded first (LabelEncoder or OneHotEncoder)
  • cuML does NOT support sparse matrices — always use dense data

Gotchas

IssueFix
TypeError: sparse inputConvert to dense: X.toarray() or don't use sparse
PCA solver='randomized' failsUse solver='full' or omit (cuML auto-selects)
UMAP not available on CPUSkip UMAP in CPU mode or pip install umap-learn
Float64 slower than float32Cast to float32: X.astype("float32")
Large dataset OOMReduce features or sample data before fitting

Output Guidelines

When reporting ML results:

  • Include dataset shape (rows × features) and target distribution
  • Show train/test split sizes
  • Report key metrics in a formatted table (accuracy, R², MSE, etc.)
  • For classification: show per-class metrics if multi-class
  • For clustering: show cluster sizes and centroid summaries
  • For dimensionality reduction: show explained variance ratios
  • List feature importances ranked by magnitude
  • Note any data quality issues (class imbalance, missing values, outliers)

© wahyudesu, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/cuml-machine-learning of wahyudesu/Fastapi-AI-Production-Template.

Open the folder on GitHubat commit 1d6860f

Compare with similar skills

Cuml Machine Learning next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Cuml Machine Learning compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Cuml Machine Learning this skillwahyudesu/Fastapi-AI-Production-Template114—~1.8kAutomated safety check: PassMIT
Optimize For GPUK-Dense-AI/scientific-agent-skills48k1 repos~3.4kAutomated safety check: PassMIT
Airflow Pluginsastronomer/agents451—~6kAutomated safety check: NotesApache-2.0
Scikit Learnbrycewang-stanford/Auto-Empirical-Research-Skills4.6k—~4.6kAutomated safety check: PassCustom licence
Junta Leiloeirossickn33/agentic-awesome-skills47k2 repos~1.6kAutomated safety check: PassMIT
Python Projectmajiayu000/spellbook287—~2.7kAutomated safety check: NotesMIT

Similar skills

  • Optimize For GPU

    K-Dense-AI/scientific-agent-skills

    GPU-accelerates scientific Python on NVIDIA hardware and verifies that the result is correct and faster.

    48k GitHub starsUsed in 1 repo~3.4k tokens
    Data & AnalyticsAuto-check passed
  • Airflow Plugins

    astronomer/agents

    Builds Airflow 3.1+ plugins that embed FastAPI apps, custom UI pages, React components, middleware, macros, and operator links directly into the Airflow UI.

    451 GitHub stars~6k tokensUpdated 3 days ago
    Data & AnalyticsAuto-check: notes
  • Scikit Learn

    brycewang-stanford/Auto-Empirical-Research-Skills

    Machine learning: clustering, PCA/t-SNE/UMAP, classification, prediction regression (Ridge/Lasso/ensemble), cross-validation, Pipelines.

    4.6k GitHub stars~4.6k tokensUpdated 5 days ago
    Data & AnalyticsAuto-check passed
  • Junta Leiloeiros

    sickn33/agentic-awesome-skills

    Coleta e consulta dados de leiloeiros oficiais de todas as 27 Juntas Comerciais do Brasil.

    47k GitHub starsUsed in 2 repos~1.6k tokens
    Backend & APIsAuto-check passed
  • Python Project

    majiayu000/spellbook

    Modern Python project architecture guide for 2025. An agent skill from majiayu000/spellbook.

    287 GitHub stars~2.7k tokensUpdated 2 days ago
    Backend & APIsAuto-check: notes
  • Scikit Learn

    zLanqing/codex-claude-academic-skills

    Machine learning in Python with scikit-learn. An agent skill from zLanqing/codex-claude-academic-skills.

    4.7k GitHub starsUsed in 16 repos~3.9k tokens
    Data & AnalyticsAuto-check passed

Questions about Cuml Machine Learning

What does Cuml Machine Learning do?

A skill your agent uses for GPU-accelerated machine learning on tabular data using NVIDIA cuML. Cuml Machine Learning is an agent skill from wahyudesu/Fastapi-AI-Production-Template. Use for GPU-accelerated machine learning on tabular data using NVIDIA cuML.

When should I use Cuml Machine Learning?

Cuml Machine Learning fits situations like: GPU-accelerated machine learning on tabular data using NVIDIA cuML; tasks involve classification; dimensionality reduction; model training on datasets.

How do I install Cuml Machine Learning in Claude Code?

Run `npx skills add wahyudesu/Fastapi-AI-Production-Template --skill cuml-machine-learning -a claude-code`. Or copy the skill folder (.agents/skills/cuml-machine-learning in wahyudesu/Fastapi-AI-Production-Template) into .claude/skills/cuml-machine-learning in your project. Claude Code loads it when a task matches its description.

How do I install Cuml Machine Learning in Codex?

Run `npx skills add wahyudesu/Fastapi-AI-Production-Template --skill cuml-machine-learning -a codex`. Or copy the skill folder (.agents/skills/cuml-machine-learning in wahyudesu/Fastapi-AI-Production-Template) into .agents/skills/cuml-machine-learning in your project. Codex loads it when a task matches its description.

Can I use Cuml Machine Learning in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add wahyudesu/Fastapi-AI-Production-Template --skill cuml-machine-learning -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/cuml-machine-learning, .gemini/skills/cuml-machine-learning, .github/skills/cuml-machine-learning and .opencode/skills/cuml-machine-learning in your project.

What does Cuml Machine Learning need to run?

Going by SKILL.md and its folder, Cuml Machine Learning needs the command-line tools its instructions call (pip). Our summary lists: Python 3.

Does Cuml Machine Learning access the network?

SKILL.md contains no URLs. Its commands use pip, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Cuml Machine Learning safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Cuml Machine Learning use?

Cuml Machine Learning is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Cuml Machine Learning use?

About 1.8k tokens (SKILL.md is roughly 7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Cuml Machine Learning?

Skills that share tags, products or a category with Cuml Machine Learning: Optimize For GPU (K-Dense-AI/scientific-agent-skills, 48k stars), Airflow Plugins (astronomer/agents, 451 stars), Scikit Learn (brycewang-stanford/Auto-Empirical-Research-Skills, 4.6k stars) and Junta Leiloeiros (sickn33/agentic-awesome-skills, 47k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Cuml Machine Learning?

wahyudesu (a GitHub user) maintains it in wahyudesu/Fastapi-AI-Production-Template, which has 114 GitHub stars. The repository was last updated on April 16, 2026.

Source: wahyudesu/Fastapi-AI-Production-Template on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.