class_docstr: Standard classification evaluation.
  
  Args:
      config: a :class:`SimpleClassificationEvaluationConfig`
class_docstr_tok: ["Standard","classification","evaluation",".","Args",":","config",":","a",":","class",":","`","SimpleClassificationEvaluationConfig","`"]
docstr: Registers the collection on which evaluation will be performed.
  
  This method will be called before calling :meth:`evaluate_samples`.
  Subclasses can extend this method to perform any setup required for an
  evaluation run.
  
  Args:
      samples: a :class:`fiftyone.core.collections.SampleCollection`
      eval_key: the evaluation key for this evaluation
docstr_tok: ["Registers","the","collection","on","which","evaluation","will","be","performed",".","This","method","will","be","called","before","calling",":","meth",":","`","evaluate_samples","`",".","Subclasses","can","extend","this","method","to","perform","any","setup","required","for","an","evaluation","run",".","Args",":","samples",":","a",":","class",":","`","fiftyone.core.collections.SampleCollection","`","eval_key",":","the","evaluation","key","for","this","evaluation"]
code: def register_samples(self, samples, eval_key):
      """Registers the collection on which evaluation will be performed.
  
      This method will be called before calling :meth:`evaluate_samples`.
      Subclasses can extend this method to perform any setup required for an
      evaluation run.
  
      Args:
          samples: a :class:`fiftyone.core.collections.SampleCollection`
          eval_key: the evaluation key for this evaluation
      """
      if eval_key is None:
          return
  
      dataset = samples._dataset
      is_frame_field = samples._is_frame_field(self.config.gt_field)
  
      if is_frame_field:
          dataset.add_sample_field(eval_key, fof.FloatField)
          dataset.add_frame_field(eval_key, fof.BooleanField)
      else:
          dataset.add_sample_field(eval_key, fof.BooleanField)
  
imports: from copy import deepcopy
  import inspect
  import itertools
  import warnings
  import numpy
  import sklearn.metrics
  import eta.core.utils
  import fiftyone
  import fiftyone.core.evaluation
  from fiftyone.core.expressions import ViewField
  import fiftyone.core.fields
  import fiftyone.core.labels
  import fiftyone.core.plots
  import fiftyone.core.utils
  import fiftyone.core.validation
  from .base import BaseEvaluationResults
label_desc: Use image node_id 1 for calling the SimpleEvaluation obj's underlying member method code with example usage: obj.register_samples(samples, eval_key) without return types