Skip to content

jeremylongshore/tons-of-skills-marketplace / plugins/ai-ml/clustering-algorithm-runner/skills/running-clustering-algorithms

running-clustering-algorithms

Verified

Analyze datasets by running clustering algorithms (K-means, DBSCAN, hierarchical) to identify data groups. Use when requesting "run clustering", "cluster analysis", or "group data points". Trigger with relevant phrases based on skill purpose.

FileKindSize
SKILL.mdskill md4.0 KB
assets/README.mdmarkdown377 B
assets/clustering_visualization.pyscript3.5 KB
assets/config_template.jsonconfig2.7 KB
assets/example_data.csvother865 B
references/README.mdmarkdown70 B
scripts/README.mdmarkdown626 B

assets/config_template.json

View on GitHub
{
  "_comment": "Configuration template for clustering algorithms",
  "dataset_name": "example_dataset.csv",
  "_comment": "Path to the dataset file (CSV format)",
  "algorithm": "KMeans",
  "_comment": "Clustering algorithm to use (e.g., KMeans, DBSCAN, AgglomerativeClustering)",
  "algorithm_params": {
    "_comment": "Parameters specific to the chosen algorithm",
    "KMeans": {
      "n_clusters": 3,
      "_comment": "Number of clusters for KMeans",
      "init": "k-means++",
      "_comment": "Initialization method for KMeans",
      "max_iter": 300,
      "_comment": "Maximum number of iterations for KMeans"
    },
    "DBSCAN": {
      "eps": 0.5,
      "_comment": "Maximum distance between two samples for DBSCAN to be considered as in the same neighborhood",
      "min_samples": 5,
      "_comment": "The number of samples in a neighborhood for a point to be considered as a core point for DBSCAN"
    },
    "AgglomerativeClustering": {
      "n_clusters": 3,
      "_comment": "The number of clusters to find for AgglomerativeClustering",
      "linkage": "ward",
      "_comment": "Which linkage criterion to use for AgglomerativeClustering. The linkage criterion determines which distance to use between sets of observation. The algorithm will merge the pairs of cluster that minimize this criterion.",
      "affinity": "euclidean",
      "_comment": "Metric used to compute the linkage. Can be 'euclidean', 'l1', 'l2', 'manhattan', 'cosine', or 'precomputed'. If linkage is 'ward', only 'euclidean' is accepted."
    }
  },
  "preprocessing": {
    "_comment": "Preprocessing steps to apply to the dataset",
    "scale_data": true,
    "_comment": "Whether to scale the data using StandardScaler",
    "handle_missing_values": "impute",
    "_comment": "How to handle missing values ('drop', 'impute', or null for none)",
    "imputation_strategy": "mean",
    "_comment": "Strategy to use for imputation (e.g., 'mean', 'median', 'most_frequent')"
  },
  "output": {
    "_comment": "Output configuration",
    "output_file": "clustering_results.csv",
    "_comment": "Name of the output CSV file to store the cluster assignments",
    "include_original_data": true,
    "_comment": "Whether to include the original data in the output file along with cluster assignments"
  },
  "evaluation_metrics": {
    "_comment": "Metrics to evaluate clustering quality",
    "metrics": [
      "silhouette_score",
      "davies_bouldin_score",
      "calinski_harabasz_score"
    ]
  },
  "advanced_options": {
    "_comment": "Advanced options for controlling the execution",
    "random_state": 42,
    "_comment": "Random seed for reproducibility",
    "n_jobs": -1,
    "_comment": "Number of CPU cores to use (-1 for all cores)"
  }
}
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 323kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 323kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 323kUpdated Claude CodeCodexVerifiedInstall