probe#
- scikitplot.cleanprompt.probe(tier)[source]#
Report whether one optional tier is usable.
- Parameters:
- tierstr
Tier name; one of the keys of
TIERS.
- Returns:
- CapabilityReport
The seven-state report. Never raises for an unusable tier.
- Raises:
- KeyError
If
tieris not a known tier name.
- Parameters:
tier (str)
- Return type:
Notes
Developer notes. The target distribution is never imported here. Metadata lookup is a filesystem operation; it answers the presence and version questions without executing third-party code, which is what keeps
import scikitplot.cleanpromptfree of optional dependencies.Examples
>>> report = probe("ner") >>> report.tier 'ner' >>> report.status in set(CapabilityStatus) True
Gallery examples#
Cleanprompt Advanced: Invariants, Encryption, and the Lossy Model Hop
Cleanprompt Advanced: Invariants, Encryption, and the Lossy Model Hop