cuml-machine-learning
Use for GPU-accelerated machine learning on tabular data using NVIDIA cuML.
Skill by langchain-aiOfficial
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/langchain-ai-cuml-machine-learning
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: data, ml, agent-building, data-analysis
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/cuml-machine-learning
What's inside
- Skill 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.
- License
- MIT
- Instructions
- 205 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# 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}")
# CoefficientsFrom langchain-ai/deepagents, MIT.
More from langchain-ai/deepagents
- 0.875score
deepagents-thread-inspector
langchain-aiOfficial
Inspect and explain conversations in the local Deep Agents Code SQLite session store.
SkillAFreshness: A★ 30.6KClaude Code +9 - 0.872score
configuration-hardening
langchain-aiOfficial
Review Talon tool placement and defensive prompts when requested or when adding or changing tools or subagents; apply confirmed changes and verify active…
SkillAFreshness: A★ 30.6KClaude Code +9 - 0.870score
skill-creator
langchain-aiOfficial
Guide for creating effective skills that extend agent capabilities with specialized knowledge, workflows, or tool integrations.
SkillAFreshness: A★ 30.6KClaude Code +9 - 0.869score
schema-exploration
langchain-aiOfficial
Lists tables, describes columns and data types, identifies foreign key relationships, and maps entity relationships in a database.
SkillAFreshness: A★ 30.6KClaude Code +9 - 0.869score
remember
langchain-aiOfficial
Review the current conversation and capture valuable knowledge — best practices, coding conventions, architecture decisions, workflows, and user feedback —…
SkillAFreshness: A★ 30.6KClaude Code +9 - 0.869score
query-writing
langchain-aiOfficial
Writes and executes SQL queries from simple SELECTs to complex multi-table JOINs, aggregations, and subqueries.
SkillAFreshness: A★ 30.6KClaude Code +9 - 0.869score
web-research
langchain-aiOfficial
Searches multiple web sources, synthesizes findings, and produces cited research reports using delegated subagents.
SkillAFreshness: A★ 30.6KClaude Code +9 - 0.869score
social-media
langchain-aiOfficial
Drafts engaging social media posts, writes hooks, suggests hashtags, creates thread structures, and generates companion images.
SkillAFreshness: A★ 30.6KClaude Code +9 - 0.869score
langgraph-docs
langchain-aiOfficial
Fetches and references LangGraph Python documentation to build stateful agents, create multi-agent workflows, and implement human-in-the-loop patterns.
SkillAFreshness: A★ 30.6KClaude Code +9 - 0.869score
arxiv-search
langchain-aiOfficial
Searches arXiv for preprints and academic papers, retrieves abstracts, and filters by topic.
SkillAFreshness: A★ 30.6KClaude Code +9 - 0.869score
gpu-document-processing
langchain-aiOfficial
Use when processing large PDFs, document collections, or bulk text extraction tasks that benefit from GPU-accelerated processing.
SkillAFreshness: A★ 30.6KClaude Code +9 - 0.869score
data-visualization
langchain-aiOfficial
Use for creating publication-quality charts and multi-panel analysis summaries.
SkillAFreshness: A★ 30.6KClaude Code +9
Compare and alternatives
Featured in
Signals
- Stars
- 30,550
- Forks
- 4,302
- Open issues
- 163
- Last commit (this folder)
- Mar 12, 2026 (7 months ago)
- Last release
- Oct 23, 2026 (3 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/langchain-ai/deepagents
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from langchain-ai
- 0.875score
deepagents-thread-inspector
langchain-aiOfficial
Inspect and explain conversations in the local Deep Agents Code SQLite session store.
SkillAFreshness: A★ 30.6KClaude Code +9 - 0.872score
configuration-hardening
langchain-aiOfficial
Review Talon tool placement and defensive prompts when requested or when adding or changing tools or subagents; apply confirmed changes and verify active…
SkillAFreshness: A★ 30.6KClaude Code +9 - 0.870score
skill-creator
langchain-aiOfficial
Guide for creating effective skills that extend agent capabilities with specialized knowledge, workflows, or tool integrations.
SkillAFreshness: A★ 30.6KClaude Code +9 - 0.869score
social-media
langchain-aiOfficial
Drafts engaging social media posts, writes hooks, suggests hashtags, creates thread structures, and generates companion images.
SkillAFreshness: A★ 30.6KClaude Code +9 - 0.869score
schema-exploration
langchain-aiOfficial
Lists tables, describes columns and data types, identifies foreign key relationships, and maps entity relationships in a database.
SkillAFreshness: A★ 30.6KClaude Code +9 - 0.869score
web-research
langchain-aiOfficial
Searches multiple web sources, synthesizes findings, and produces cited research reports using delegated subagents.
SkillAFreshness: A★ 30.6KClaude Code +9
Cite this page
cuml-machine-learning skill. Agent Mart. https://agentmart.dev/skills/langchain-ai-cuml-machine-learning (last updated 2026-10-24)