Compute the CharErrorRate metric — provided by torchmetrics. Use when the user has predictions and ground-truth and needs to compute CharErrorRate, or asks how to score with CharErrorRate.
Scanned 9/11/2026
Install to Claude Code
npx -y skills add qhjqhj00/research-skills-pool --skill charerrorrate --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Charerrorrate?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/qhjqhj00-charerrorrate)More formats (shields.io, HTML) on the badges page.
---
name: charerrorrate
description: Compute the CharErrorRate metric — provided by torchmetrics. Use when the user has predictions and ground-truth and needs to compute CharErrorRate, or asks how to score with CharErrorRate.
metadata:
skill_kind: metric
source_lib: torchmetrics
import_path: torchmetrics.CharErrorRate
source: library_introspection
---
# charerrorrate
> Metric `CharErrorRate` from `torchmetrics` (torchmetrics.CharErrorRate)
## When to invoke this skill
The user has predictions + ground truth and asks to evaluate with CharErrorRate, or
mentions `torchmetrics.CharErrorRate` directly, or wants the standard torchmetrics implementation.
## Reference signature
```python
from torchmetrics import CharErrorRate
# _CharErrorRate(**kwargs: Any) -> None
```
## Library docstring
```
Wrapper for deprecated import.
>>> preds = ["this is the prediction", "there is an other sample"]
>>> target = ["this is the reference", "there is another one"]
>>> cer = _CharErrorRate()
>>> cer(preds, target)
tensor(0.3415)
```
## Quick recipe
```python
import torchmetrics as _m
score = _m.CharErrorRate(y_true, y_pred)
```
## Don'ts
- Don't reimplement when the library version handles edge cases (NaN, ties, empty inputs) better than a hand-rolled formula.
- Always check the library version's argument order — sklearn is `(y_true, y_pred)` while torchmetrics is `(preds, target)`.
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!
Understand the components, mechanics, and constraints of context in agent systems. Use when designing agent architectures, debugging context-related failures, or optimizing context usage.
Draft release notes and changelog entries from git history or merged PRs between two refs (tags/SHAs/branches), including breaking changes, migrations, and upgrade steps. Use when the user asks for release notes, changelog updates, or a GitHub Release draft.
Documentation style guide enforcer by @planetabhi. Applies and reviews the writing style guide when authoring or editing product documentation and tutorials. Use to check prose for voice, tense, word choice, inclusive language, formatting, code block, UI, Markdown, and number/date conventions.
Quick-reference card for all caveman modes, skills, and commands. One-shot display, not a persistent mode. Trigger: /caveman-help, "caveman help", "what caveman commands", "how do I use caveman".
Explain how claude-mem captures observations, when memory injection kicks in, and where data lives. Use when the user asks "how does claude-mem work?" or "what is this thing doing?".