[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M790E05K1BG8YS8AMQY48Q3M":3,"skill-same:01M790E05K1BG8YS8AMQY48Q3M":66},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":32,"install":33,"resources":45},"01M790E05K1BG8YS8AMQY48Q3M","unsupervised-and-reduction",null,"Use this sub-skill for MLAlgorithms clustering, Gaussian mixtures, PCA, t-SNE, RBM feature learning, metrics\u002Fdistances, and packaged demo dataset loaders.","VectorSpaceLab\u002FAREX-Skill","VectorSpaceLab","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F180637102?v=4","01M7538C5WPSJGWF7KHR4EFZ9F","01M7538C6R2GFP53NPXTCZNBRT",351,"MIT","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fml-algorithms\u002Fsub-skills\u002Funsupervised-and-reduction\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: unsupervised-and-reduction\ndescription: \"Use this sub-skill for MLAlgorithms clustering, Gaussian mixtures,\n  PCA, t-SNE, RBM feature learning, metrics\u002Fdistances, and packaged demo dataset\n  loaders.\"\ndisable-model-invocation: true\nmetadata:\n  disco-role: operating\nlicense: MIT\n---\n\n# Unsupervised and Reduction\n\nUse this sub-skill when a task asks for MLAlgorithms' unsupervised estimators, dimensionality reduction, small visualization-oriented workflows, RBM feature learning, or demo data loaders. These APIs are CPU-only educational implementations; keep workloads small and validate output shapes or assignments before scaling.\n\n## Route elsewhere\n\n- Supervised regression\u002Fclassification, SVM kernels, random forests, gradient boosting, KNN supervised modes, and factorization machines belong in `..\u002Fclassical-estimators\u002FSKILL.md`.\n- The custom neural-network container, layer stack, optimizers, CNN\u002FRNN\u002FLSTM recipes, and DQN belong in `..\u002Fneural-network-building-blocks\u002FSKILL.md`.\n- Cross-cutting installation, provenance, and route selection are in the root skill.\n\n## Start here\n\n1. Confirm the public imports you need:\n\n   ```python\n   from mla.kmeans import KMeans\n   from mla.gaussian_mixture import GaussianMixture\n   from mla.pca import PCA\n   from mla.tsne import TSNE\n   from mla.rbm import RBM\n   from mla.datasets import load_mnist, load_nietzsche\n   ```\n\n2. Choose the workflow:\n   - Cluster assignments: `KMeans(K=..., init=\"random\"|\"++\")`.\n   - Soft density-style clusters: `GaussianMixture(K=..., init=\"random\"|\"kmeans\")`.\n   - Linear reduction for downstream models: `PCA(n_components, solver=\"svd\"|\"eigen\")`.\n   - 2D nonlinear visualization: `TSNE(n_components=2, perplexity=..., max_iter=...)`.\n   - Binary\u002Fcontinuous unsupervised features: `RBM(n_hidden=..., max_epochs=...)`.\n3. Avoid plotting in headless or automated runs; inspect returned labels, component shapes, likelihoods, embeddings, or errors instead.\n4. Run `scripts\u002Frun_unsupervised_smoke.py --workflow all` for a safe no-display check.\n\n## Common workflows\n\n### KMeans clustering\n\n```python\nfrom sklearn.datasets import make_blobs\nfrom mla.kmeans import KMeans\n\nX, _ = make_blobs(n_samples=120, centers=3, n_features=2, random_state=42)\nmodel = KMeans(K=3, max_iters=50, init=\"++\")\nmodel.fit(X)\nlabels = model.predict()     # labels for the fitted training data\ncentroids = model.centroids\n```\n\nCall `fit(X)` before `predict()`. `KMeans.predict()` without an argument returns assignments for the stored training data because the class overrides `_predict` around `self.X`.\n\n### Gaussian mixture model\n\n```python\nfrom mla.gaussian_mixture import GaussianMixture\n\nmodel = GaussianMixture(K=3, init=\"kmeans\", max_iters=50, tolerance=1e-3)\nmodel.fit(X)\nassignments = model.predict(X)\n```\n\nGMM uses full covariance matrices and SciPy's `multivariate_normal.pdf`. Tiny or duplicate clusters can produce singular-covariance failures; increase samples, reduce `K`, or add slight jitter.\n\n### PCA reduction\n\n```python\nfrom mla.pca import PCA\n\npca = PCA(n_components=2, solver=\"svd\")\npca.fit(X_train)\nX_train_2d = pca.transform(X_train)\nX_test_2d = pca.transform(X_test)\n```\n\nFit PCA on training data only, then transform held-out data with the learned mean and components.\n\n### t-SNE embedding\n\n```python\nfrom mla.tsne import TSNE\n\nembedding = TSNE(n_components=2, perplexity=10.0, max_iter=250, learning_rate=200).fit_transform(X)\n```\n\nUse t-SNE for visualization-style embeddings rather than predictive features. Keep sample counts small; this implementation uses dense pairwise distances and a Python loop.\n\n### RBM feature learning\n\n```python\nimport numpy as np\nfrom mla.rbm import RBM\n\nX = np.random.RandomState(0).uniform(0, 1, (100, 8))\nrbm = RBM(n_hidden=4, learning_rate=0.05, batch_size=10, max_epochs=5)\nrbm.fit(X)\nfeatures = rbm.predict(X)\n```\n\nRBM stores per-epoch reconstruction errors in `rbm.errors`.\n\n### Demo dataset loaders\n\n`load_mnist()` returns `(X_train, X_test, y_train, y_test)` with image arrays shaped for the ConvNet example. `load_nietzsche()` creates one-hot text sequences for recurrent examples. Both read package data shipped with the distribution; do not copy those datasets into generated skills. With modern NumPy, `load_nietzsche()` may need `numpy\u003C1.24` or a source patch because it uses deprecated `np.bool`.\n\n## Bundled references and helpers\n\n- Read `references\u002Fapi-reference.md` for import paths, signatures, state attributes, and outputs.\n- Read `references\u002Fworkflows.md` for cluster\u002Freduction\u002FRBM recipes and validation ideas.\n- Read `references\u002Ftroubleshooting.md` for singular covariance, plotting, data-loader, t-SNE runtime, and NumPy compatibility issues.\n- Run `scripts\u002Frun_unsupervised_smoke.py --workflow all` to exercise small no-display checks against an installed `mla` package.\n","# Unsupervised and Reduction\n\nUse this sub-skill when a task asks for MLAlgorithms' unsupervised estimators, dimensionality reduction, small visualization-oriented workflows, RBM feature learning, or demo data loaders. These APIs are CPU-only educational implementations; keep workloads small and validate output shapes or assignments before scaling.\n\n## Route elsewhere\n\n- Supervised regression\u002Fclassification, SVM kernels, random forests, gradient boosting, KNN supervised modes, and factorization machines belong in `..\u002Fclassical-estimators\u002FSKILL.md`.\n- The custom neural-network container, layer stack, optimizers, CNN\u002FRNN\u002FLSTM recipes, and DQN belong in `..\u002Fneural-network-building-blocks\u002FSKILL.md`.\n- Cross-cutting installation, provenance, and route selection are in the root skill.\n\n## Start here\n\n1. Confirm the public imports you need:\n\n   ```python\n   from mla.kmeans import KMeans\n   from mla.gaussian_mixture import GaussianMixture\n   from mla.pca import PCA\n   from mla.tsne import TSNE\n   from mla.rbm import RBM\n   from mla.datasets import load_mnist, load_nietzsche\n   ```\n\n2. Choose the workflow:\n   - Cluster assignments: `KMeans(K=..., init=\"random\"|\"++\")`.\n   - Soft density-style clusters: `GaussianMixture(K=..., init=\"random\"|\"kmeans\")`.\n   - Linear reduction for downstream models: `PCA(n_components, solver=\"svd\"|\"eigen\")`.\n   - 2D nonlinear visualization: `TSNE(n_components=2, perplexity=..., max_iter=...)`.\n   - Binary\u002Fcontinuous unsupervised features: `RBM(n_hidden=..., max_epochs=...)`.\n3. Avoid plotting in headless or automated runs; inspect returned labels, component shapes, likelihoods, embeddings, or errors instead.\n4. Run `scripts\u002Frun_unsupervised_smoke.py --workflow all` for a safe no-display check.\n\n## Common workflows\n\n### KMeans clustering\n\n```python\nfrom sklearn.datasets import make_blobs\nfrom mla.kmeans import KMeans\n\nX, _ = make_blobs(n_samples=120, centers=3, n_features=2, random_state=42)\nmodel = KMeans(K=3, max_iters=50, init=\"++\")\nmodel.fit(X)\nlabels = model.predict()     # labels for the fitted training data\ncentroids = model.centroids\n```\n\nCall `fit(X)` before `predict()`. `KMeans.predict()` without an argument returns assignments for the stored training data because the class overrides `_predict` around `self.X`.\n\n### Gaussian mixture model\n\n```python\nfrom mla.gaussian_mixture import GaussianMixture\n\nmodel = GaussianMixture(K=3, init=\"kmeans\", max_iters=50, tolerance=1e-3)\nmodel.fit(X)\nassignments = model.predict(X)\n```\n\nGMM uses full covariance matrices and SciPy's `multivariate_normal.pdf`. Tiny or duplicate clusters can produce singular-covariance failures; increase samples, reduce `K`, or add slight jitter.\n\n### PCA reduction\n\n```python\nfrom mla.pca import PCA\n\npca = PCA(n_components=2, solver=\"svd\")\npca.fit(X_train)\nX_train_2d = pca.transform(X_train)\nX_test_2d = pca.transform(X_test)\n```\n\nFit PCA on training data only, then transform held-out data with the learned mean and components.\n\n### t-SNE embedding\n\n```python\nfrom mla.tsne import TSNE\n\nembedding = TSNE(n_components=2, perplexity=10.0, max_iter=250, learning_rate=200).fit_transform(X)\n```\n\nUse t-SNE for visualization-style embeddings rather than predictive features. Keep sample counts small; this implementation uses dense pairwise distances and a Python loop.\n\n### RBM feature learning\n\n```python\nimport numpy as np\nfrom mla.rbm import RBM\n\nX = np.random.RandomState(0).uniform(0, 1, (100, 8))\nrbm = RBM(n_hidden=4, learning_rate=0.05, batch_size=10, max_epochs=5)\nrbm.fit(X)\nfeatures = rbm.predict(X)\n```\n\nRBM stores per-epoch reconstruction errors in `rbm.errors`.\n\n### Demo dataset loaders\n\n`load_mnist()` returns `(X_train, X_test, y_train, y_test)` with image arrays shaped for the ConvNet example. `load_nietzsche()` creates one-hot text sequences for recurrent examples. Both read package data shipped with the distribution; do not copy those datasets into generated skills. With modern NumPy, `load_nietzsche()` may need `numpy\u003C1.24` or a source patch because it uses deprecated `np.bool`.\n\n## Bundled references and helpers\n\n- Read `references\u002Fapi-reference.md` for import paths, signatures, state attributes, and outputs.\n- Read `references\u002Fworkflows.md` for cluster\u002Freduction\u002FRBM recipes and validation ideas.\n- Read `references\u002Ftroubleshooting.md` for singular covariance, plotting, data-loader, t-SNE runtime, and NumPy compatibility issues.\n- Run `scripts\u002Frun_unsupervised_smoke.py --workflow all` to exercise small no-display checks against an installed `mla` package.\n",{"name":5,"license":14,"metadata":23,"description":7,"disable-model-invocation":25},{"disco-role":24},"operating",true,"main","ac3fe1afa80fb9a09775ecfb2b6cc3ba850a2db6","skills\u002Frepositories\u002Frepo-skills\u002Fml-algorithms\u002Fsub-skills\u002Funsupervised-and-reduction",27,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab","2026-09-03 10:25:21",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":25},[35,38,41],{"tool":36,"command":37},"npx","npx skills add VectorSpaceLab\u002FAREX-Skill --skill unsupervised-and-reduction",{"tool":39,"command":40},"bunx","bunx skills add VectorSpaceLab\u002FAREX-Skill --skill unsupervised-and-reduction",{"tool":42,"command":43},"pnpm","pnpm dlx skills add VectorSpaceLab\u002FAREX-Skill --skill unsupervised-and-reduction","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fml-algorithms\u002Fsub-skills\u002Funsupervised-and-reduction\u002FSKILL.md",[46,52,56,60],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"references\u002Fapi-reference.md","REFERENCE","参考文档",3936,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fml-algorithms\u002Fsub-skills\u002Funsupervised-and-reduction\u002Freferences\u002Fapi-reference.md",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"references\u002Ftroubleshooting.md",3241,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fml-algorithms\u002Fsub-skills\u002Funsupervised-and-reduction\u002Freferences\u002Ftroubleshooting.md",{"path":57,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":58,"sourceHtmlUrl":59},"references\u002Fworkflows.md",4208,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fml-algorithms\u002Fsub-skills\u002Funsupervised-and-reduction\u002Freferences\u002Fworkflows.md",{"path":61,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":64,"sourceHtmlUrl":65},"scripts\u002Frun_unsupervised_smoke.py","SCRIPT","脚本",3941,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fml-algorithms\u002Fsub-skills\u002Funsupervised-and-reduction\u002Fscripts\u002Frun_unsupervised_smoke.py",[67,75,82,89,96,103],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":71,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":18},"01M799NYSH1R3RVAHSM2D88Y84","passnet-triton-opt","Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block\u002Fgrid\u002Fwarp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-triton-opt\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":71,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":18},"01M799NS5APEC0N1FZ7XZVW6BN","passnet-solve","END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-solve\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":71,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":18},"01M799NNY9BKSM21V5R7QVTBJX","passnet-skill","PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under .\u002Fpass_dir\u002F, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-skill\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":71,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":18},"01M799NHH6NP7Z1RK77KGXAN6S","passnet-pattern-fusion","Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()\u002Freplacement_args()\u002Freplacement_func() files, when a pass \"failed to match\", or when deciding how to fuse multiple kernels\u002Fops.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-pattern-fusion\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":71,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":18},"01M799ND2J4WNC2PGAZ0A06NDF","passnet-orchestrate","Round\u002Fbatch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep\u002Frevert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-orchestrate\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":71,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":18},"01M799N8SBTMY02ZDG2AZF5ZWE","passnet-feedback","Fast, deterministic feedback for PassNet work: pre-flight pattern\u002Fmatch verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-feedback\u002FSKILL.md",[],[]]