class_docstr: Base class for regression evaluation methods.
  
  Args:
      config: a :class:`RegressionEvaluationConfig`
class_docstr_tok: ["Base","class","for","regression","evaluation","methods",".","Args",":","config",":","a",":","class",":","`","RegressionEvaluationConfig","`"]
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.FloatField)
      else:
          dataset.add_sample_field(eval_key, fof.FloatField)
  
imports: from copy import deepcopy
  import inspect
  import itertools
  import logging
  import numbers
  import numpy
  import sklearn.metrics
  from tabulate import tabulate
  import eta.core.utils
  import fiftyone
  import fiftyone.core.evaluation
  import fiftyone.core.fields
  import fiftyone.core.labels
  import fiftyone.core.plots
  import fiftyone.core.utils
  import fiftyone.core.validation
label_desc: Use image node_id 1 for calling the RegressionEvaluation obj's underlying member method code with example usage: obj.register_samples(samples, eval_key) without return types