Skip to content
Back to skills

Analytics

ASecurity

"Guides SecretFlow preprocessing, statistics, and classical ML

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 9, 2026
devopspythongoapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill analytics --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Analytics?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Analytics
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-analytics/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-analytics)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: analytics
description: "Guides SecretFlow preprocessing, statistics, and classical ML
  workflows that use the direct Python APIs."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# Analytics

Use this sub-skill when the task is about direct SecretFlow preprocessing,
statistics, or classical ML APIs rather than the component CLI.

## Owns

- preprocessing helpers such as `StandardScaler`
- statistics helpers such as `psi_eval`, table statistics, and score-card flows
- direct ML classes in `secretflow.ml.linear`, `secretflow.ml.cluster`,
  `secretflow.ml.naive_bayes`, `secretflow.ml.gaussian_process`, and
  `secretflow.ml.neighbors`
- training / prediction workflows that use the direct Python APIs
- common optional-dependency and SPU configuration failures

## Does not own

- component CLI / component export workflows — use `component-cli`
- device/object setup and federated containers — use `runtime-data`
- PSI deployment, Kuscia, or TEEU orchestration — use `privacy-orchestration`

## Trigger phrases

Use this route when a user asks things like:
- how to scale or preprocess federated data
- how to compute PSI or score-card metrics directly
- how to fit SecretFlow's direct ML estimators
- how to compare SecretFlow's model APIs with scikit-learn
- why a model needs SPU, HEU, or a particular party layout

## Reading order

1. Read `references/analytics.md` for the algorithm map and workflow choices.
2. Read the root troubleshooting page if the import or optional dependency path
   is broken.
3. Use `scripts/analytics_smoke.py` when you need a tiny import-only proof that
   the analytics surface is available.

## Workflow

1. Decide whether the user wants a data transform, a metric, or a model.
2. Identify the required party/device layout before choosing the class or
   metric.
3. For preprocessing and statistics, confirm the dataframe shape and the owning
   parties before you fit or evaluate anything.
4. For ML classes, start with the direct Python constructor and only escalate to
   a component-based path if the user specifically needs export or CLI-driven
   execution.

## Common decisions

- Use `StandardScaler` for federated tabular normalization.
- Use `psi_eval` for the PSI-style score calculations already built into the
  direct API.
- Use the `secretflow.ml.linear` classes for logistic-regression and GLM-style
  tasks.
- Use `KMeans`, `GNB`, `GPC`, or `KNNClassifer` when the task names a classical
  estimator family directly.

## Bundled files

- `references/analytics.md` — algorithm catalog, input expectations, and troubleshooting.
- `scripts/analytics_smoke.py` — small import and signature smoke helper.

Files in this skill

  • SKILL.md2.7 KB
  • references/analytics.md3.8 KB
  • scripts/analytics_smoke.py1.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.