class_docstr: Ensemble consisting of a single model.
  
  Parameters
  ----------
  task_type: int
      An identifier indicating which task is being performed.
  
  metrics: Sequence[Scorer] | Scorer
      The metrics used to evaluate the models.
  
  backend : Backend
      Gives access to the backend of Auto-sklearn. Not used.
  
  random_state: int | RandomState | None = None
      Not used.
class_docstr_tok: ["Ensemble","consisting","of","a","single","model",".","Parameters","--","--","--","--","--","task_type",":","int","An","identifier","indicating","which","task","is","being","performed",".","metrics",":","Sequence","[","Scorer","]","|","Scorer","The","metrics","used","to","evaluate","the","models",".","backend",":","Backend","Gives","access","to","the","backend","of","Auto-sklearn",".","Not","used",".","random_state",":","int","|","RandomState","|","None","=","None","Not","used","."]
code: def __init__(
      self,
      task_type: int,
      metrics: Sequence[Scorer] | Scorer,
      backend: Backend,
      random_state: int | np.random.RandomState | None = None,
  ):
      self.weights_ = [1.0]
      self.task_type = task_type
      if isinstance(metrics, Sequence):
          self.metrics = metrics
      elif isinstance(metrics, Scorer):
          self.metrics = [metrics]
      else:
          raise TypeError(type(metrics))
      self.random_state = random_state
      self.backend = backend
  
imports: from __future__ import annotations
  from typing import Sequence
  import os
  import numpy
  from smac.runhistory.runhistory import RunHistory
  from autosklearn.automl_common.common.utils.backend import Backend
  from autosklearn.data.validation import SUPPORTED_FEAT_TYPES
  from autosklearn.ensemble_building.run import Run
  from autosklearn.ensembles.abstract_ensemble import AbstractEnsemble
  from autosklearn.metrics import Scorer, calculate_losses
  from autosklearn.pipeline.base import BasePipeline
label_desc: Use image node_id 1 to create a new AbstractSingleModelEnsemble object from inherited base classes: AbstractEnsemble with example: obj = AbstractSingleModelEnsemble(task_type, metrics, backend, random_state)