class_docstr: This class is primarily meant to be instantiated from ``train_test_split()`` function.
class_docstr_tok: ["This","class","is","primarily","meant","to","be","instantiated","from","``","train_test_split","(",")","``","function","."]
code: def __len__(self):
      if self.axis == 0:
          split_index = self._get_horizontal_split_index()
          if self.type == "train":
              return split_index
          else:
              return len(self.data) - split_index
      else:
          return len(self.data)
  
file_path: darts/darts/utils/model_selection.py
imports: from typing import Optional, Sequence, Tuple, Union
  from darts import TimeSeries
label_desc: Use image node_id 5 for calling the SplitTimeSeriesSequence obj's underlying member method code with example usage: obj.__len__() and returns: len, split_index, unknown