class_docstr: An example data source that records ``num_features`` on the dataset.
docstr: Sets the ``num_features`` attribute and calls ``super().load_data``.
  
  Args:
      examples: The ``np.ndarray`` (num_examples x num_features).
      targets: Associated targets.
      target_formatter: Optionally provide a ``TargetFormatter`` to control how targets are formatted.
  
  Returns:
      A sequence of samples / sample metadata.
docstr_tok: ["Sets","the","``","num_features","``","attribute","and","calls","``","super","(",")",".load_data","``",".","Args",":","examples",":","The","``","np.ndarray","``","(","num_examples","x","num_features",")",".","targets",":","Associated","targets",".","target_formatter",":","Optionally","provide","a","``","TargetFormatter","``","to","control","how","targets","are","formatted",".","Returns",":","A","sequence","of","samples","\/","sample","metadata","."]
code: def load_data(
      self,
      examples: Collection[np.ndarray],
      targets: Optional[Sequence[Any]] = None,
      target_formatter: Optional[TargetFormatter] = None,
  ) -> Sequence[Dict[str, Any]]:
      """Sets the ``num_features`` attribute and calls ``super().load_data``.
  
      Args:
          examples: The ``np.ndarray`` (num_examples x num_features).
          targets: Associated targets.
          target_formatter: Optionally provide a ``TargetFormatter`` to control how targets are formatted.
  
      Returns:
          A sequence of samples / sample metadata.
  
      """
      if not self.predicting and isinstance(examples, np.ndarray):
          self.num_features = examples.shape[1]
      if targets is not None:
          self.load_target_metadata(
              targets, target_formatter=target_formatter
          )
      return to_samples(examples, targets)
  
imports: from typing import Any, Callable, Collection, Dict, List, Optional, Sequence, Tuple, Type
  import numpy
  import torch
  from flash.core.data.base_viz import BaseVisualization
  from flash.core.data.callback import BaseDataFetcher
  from flash.core.data.data_module import DataModule
  from flash.core.data.io.classification_input import ClassificationInputMixin
  from flash.core.data.io.input import DataKeys, Input
  from flash.core.data.io.input_transform import InputTransform
  from flash.core.data.utilities.classification import TargetFormatter
  from flash.core.data.utilities.samples import to_samples
  from flash.core.utilities.imports import _SKLEARN_AVAILABLE
  from flash.core.utilities.stages import RunningStage
  from flash.core.utilities.types import INPUT_TRANSFORM_TYPE
label_desc: Use image node_id 1 for calling the TemplateNumpyClassificationInput obj's underlying member method code with example usage: obj.load_data(examples, targets, target_formatter) and returns: to_samples