From c9d2bc7ed55d8d779bdf3f3266bdbfbb95164a47 Mon Sep 17 00:00:00 2001 From: l-uuz <56924246+l-uuz@users.noreply.github.com> Date: Wed, 25 Jun 2025 21:49:45 +0200 Subject: [PATCH] `ClassLabel` docs: Correct value for unknown labels --- src/datasets/features/features.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/datasets/features/features.py b/src/datasets/features/features.py index 90077267a2f..76e5c532d7e 100644 --- a/src/datasets/features/features.py +++ b/src/datasets/features/features.py @@ -973,7 +973,7 @@ class ClassLabel: * `names_file`: File containing the list of labels. Under the hood the labels are stored as integers. - You can use negative integers to represent unknown/missing labels. + You can use -1 to represent unknown/missing labels. Args: num_classes (`int`, *optional*):