class_docstr: Class that stores the results of a binary classification evaluation.
  
  Any missing ground truth or prediction labels are assumed to be examples of
  the negative class (with zero confidence, for predictions).
  
  Args:
      samples: the :class:`fiftyone.core.collections.SampleCollection` used
      config: the :class:`ClassificationEvaluationConfig` used
      eval_key: the evaluation key
      ytrue: a list of ground truth labels
      ypred: a list of predicted labels
      confs: a list of confidences for the predictions
      classes: the ``(neg_label, pos_label)`` label strings for the task
      weights (None): an optional list of sample weights
      ytrue_ids (None): a list of IDs for the ground truth labels
      ypred_ids (None): a list of IDs for the predicted labels
      backend (None): a :class:`ClassificationEvaluation` backend
class_docstr_tok: ["Class","that","stores","the","results","of","a","binary","classification","evaluation",".","Any","missing","ground","truth","or","prediction","labels","are","assumed","to","be","examples","of","the","negative","class","(","with","zero","confidence",",","for","predictions",")",".","Args",":","samples",":","the",":","class",":","`","fiftyone.core.collections.SampleCollection","`","used","config",":","the",":","class",":","`","ClassificationEvaluationConfig","`","used","eval_key",":","the","evaluation","key","ytrue",":","a","list","of","ground","truth","labels","ypred",":","a","list","of","predicted","labels","confs",":","a","list","of","confidences","for","the","predictions","classes",":","the","``","(","neg_label",",","pos_label",")","``","label","strings","for","the","task","weights","(","None",")",":","an","optional","list","of","sample","weights","ytrue_ids","(","None",")",":","a","list","of","IDs","for","the","ground","truth","labels","ypred_ids","(","None",")",":","a","list","of","IDs","for","the","predicted","labels","backend","(","None",")",":","a",":","class",":","`","ClassificationEvaluation","`","backend"]
code: def _from_dict(cls, d, samples, config, eval_key, **kwargs):
      ytrue = d["ytrue"]
      ypred = d["ypred"]
      confs = d["confs"]
      classes = d["classes"]
      weights = d.get("weights", None)
      ytrue_ids = d.get("ytrue_ids", None)
      ypred_ids = d.get("ypred_ids", None)
      return cls(
          samples,
          config,
          eval_key,
          ytrue,
          ypred,
          confs,
          classes=classes,
          weights=weights,
          ytrue_ids=ytrue_ids,
          ypred_ids=ypred_ids,
          **kwargs,
      )
  
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 6 for calling the BinaryClassificationResults obj's underlying member method code with example usage: obj._from_dict(cls, d, samples, config, eval_key) and returns: cls