Agent skill
sweetviz-1-use-target-analysis-for-ml-projects
Sub-skill of sweetviz: 1. Use Target Analysis for ML Projects (+4).
Install this agent skill to your Project
npx add-skill https://github.com/vamseeachanta/workspace-hub/tree/main/.claude/skills/_archive/data/analysis/sweetviz/1-use-target-analysis-for-ml-projects
SKILL.md
1. Use Target Analysis for ML Projects (+4)
1. Use Target Analysis for ML Projects
# GOOD: Always specify target for ML datasets
report = sv.analyze(df, target_feat="target")
# AVOID: Missing target analysis
report = sv.analyze(df) # No target relationship shown
2. Sample Large Datasets
# GOOD: Sample for large datasets
if len(df) > 100000:
df_sample = df.sample(n=100000, random_state=42)
report = sv.analyze(df_sample)
else:
report = sv.analyze(df)
# AVOID: Analyzing huge datasets directly
# report = sv.analyze(df_with_millions_of_rows) # Very slow
3. Configure Feature Types Properly
# GOOD: Force categorical for ID-like numeric columns
config = sv.FeatureConfig(
skip=["customer_id", "transaction_id"],
force_cat=["zip_code", "area_code", "rating"]
)
report = sv.analyze(df, feat_cfg=config)
# AVOID: Letting Sweetviz treat zip codes as numeric
4. Use Comparison for Validation
# GOOD: Compare train/test for data leakage detection
comparison = sv.compare(
[train_df, "Train"],
[test_df, "Test"],
target_feat="target"
)
# AVOID: Only analyzing training data
5. Control Pairwise Analysis
# GOOD: Disable for speed on many features
report = sv.analyze(df, pairwise_analysis="off") # Fast
# GOOD: Enable when feature correlations matter
report = sv.analyze(df, pairwise_analysis="on") # Full correlations
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
gsd-complete-milestone
Archive completed milestone and prepare for next version
gsd-reapply-patches
Reapply local modifications after a GSD update
gsd-verify-work
Validate built features through conversational UAT
gsd-thread
Manage persistent context threads for cross-session work
clinical-trial-protocol
Generate clinical trial protocols for medical devices or drugs through a modular, waypoint-based architecture with research-only and full protocol modes.
single-cell-rna-qc
Performs quality control on single-cell RNA-seq data (.h5ad or .h5 files) using scverse best practices with MAD-based filtering and comprehensive visualizations.
Didn't find tool you were looking for?