docstr: sklearn backend for the Gaussian Mixture Model (GMM) outlier detector.
  
  Parameters
  ----------
  n_components
      Number of components in gaussian mixture model.
  
  Raises
  ------
  ValueError
      If `n_components` is less than 1.
code: def __init__(
      self,
      n_components: int,
  ):
      """sklearn backend for the Gaussian Mixture Model (GMM) outlier detector.
  
      Parameters
      ----------
      n_components
          Number of components in gaussian mixture model.
  
      Raises
      ------
      ValueError
          If `n_components` is less than 1.
      """
      super().__init__()
      if n_components < 1:
          raise ValueError("n_components must be at least 1")
      self.n_components = n_components
  
file_path: alibi-detect/alibi_detect/od/sklearn/gmm.py
imports: import numpy
  from typing import Dict
  from sklearn.mixture import GaussianMixture
  from alibi_detect.od.sklearn.base import SklearnOutlierDetector
label_desc: Use image node_id 1 to create a new GMMSklearn object from inherited base classes: SklearnOutlierDetector with example: obj = GMMSklearn(n_components)