Skip to content
Back to skills

Slicing

ASecurity

"Operate Snorkel slicing functions, slice monitoring, and

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 9, 2026
devopsjavaapibackend

Works with

  • api

Security analysis

A100/100

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

Scanned September 9, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Slicing?

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

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

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: slicing
description: "Operate Snorkel slicing functions, slice monitoring, and
  slice-aware classifiers."
metadata:
  disco-role: operating
disable-model-invocation: true
license: Apache 2.0
---

# Slicing

Use this skill for Snorkel slice functions, slice monitoring, and slice-aware models.

## Use this skill when
- creating `SlicingFunction` objects or `@slicing_function` decorators
- creating `NLPSlicingFunction` or `@nlp_slicing_function` when slice logic depends on spaCy docs
- applying `SFApplier`, `PandasSFApplier`, `DaskSFApplier`, `PandasParallelSFApplier`, or `SparkSFApplier`
- filtering a DataFrame with `slice_dataframe`
- adding slice labels with `add_slice_labels`
- converting a base task into slice tasks with `convert_to_slice_tasks`
- building or scoring `SliceAwareClassifier` and `SliceCombinerModule`

## Route other work elsewhere
- Generic transforms or spaCy preprocessing mechanics -> `../data-transforms/SKILL.md`
- `DictDataset`, `DictDataLoader`, `Task`, `Trainer`, or tensor-shape issues -> `../classification/SKILL.md`
- Weak-supervision LFs, `LFApplier`, or `LabelModel` -> `../labeling/SKILL.md`

## Start with
- [API reference](references/api-reference.md)
- [Workflows](references/workflows.md)
- [Troubleshooting](references/troubleshooting.md)
- [Smoke script](scripts/slicing_smoke.py)

## Operating notes
- Slice memberships should be binary masks; use truthy in-slice values.
- `SFApplier` and `PandasSFApplier` return named-field recarrays.
- `make_slice_dataloader` needs the base task labels already in the dataset.
- `score_slices` evaluates `pred` labels on the base task and skips `ind` labels.
- `SliceAwareClassifier` and `SliceCombinerModule` are binary-only.
- Optional backends live under `snorkel.slicing.apply.dask` and `snorkel.slicing.apply.spark`; see troubleshooting if Dask, PySpark, Java, or spaCy are missing.

Files in this skill

  • SKILL.md1.8 KB
  • references/api-reference.md4 KB
  • references/troubleshooting.md2.5 KB
  • references/workflows.md3.2 KB
  • scripts/slicing_smoke.py2.5 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.