class_docstr: An ensemble is a model which is composed of a list of models.
  
  Parameters
  ----------
  models
class_docstr_tok: ["An","ensemble","is","a","model","which","is","composed","of","a","list","of","models",".","Parameters","--","--","--","--","--","models"]
code: def __init__(self, models: Iterator[Estimator]):
      super().__init__(models)
  
      if len(self) < self._min_number_of_models:
          raise ValueError(
              f"At least {self._min_number_of_models} models are expected, "
              + f"only {len(self)} were passed"
          )
  
file_path: river/river/base/ensemble.py
imports: from __future__ import annotations
  from collections import UserList
  from collections.abc import Iterator
  from random import Random
  from .estimator import Estimator
  from .wrapper import Wrapper
label_desc: Use image node_id 1 to create a new Ensemble object from inherited base classes: UserList with example: obj = Ensemble(models)