class_docstr: Simple data struct for holding a train-test split of a learning to rank dataset.
class_docstr_tok: ["Simple","data","struct","for","holding","a","train-test","split","of","a","learning","to","rank","dataset","."]
docstr: Whether the label consists of binary relevance degree.
docstr_tok: ["Whether","the","label","consists","of","binary","relevance","degree","."]
code: def is_binary(self) -> bool:
      """Whether the label consists of binary relevance degree."""
      return self.max_rel == 1
  
imports: import os
  import zipfile
  from dataclasses import dataclass
  from typing import TYPE_CHECKING, Any, Callable, Dict, Generator, NamedTuple, Optional, Tuple, Type, Union
  from urllib import request
  import numpy
  import pytest
  from numpy import typing
  from numpy.random import Generator
  from scipy import sparse
  import xgboost
  from xgboost.data import pandas_pyarrow_mapper
label_desc: Use image node_id 1 for calling the RelDataCV obj's underlying member method code with example usage: obj.is_binary() and returns: unknown