docstr: Fit isolation forest.
  
  Parameters
  ----------
  X
      Training batch.
  sample_weight
      Sample weights.
docstr_tok: ["Fit","isolation","forest",".","Parameters","--","--","--","--","--","X","Training","batch",".","sample_weight","Sample","weights","."]
code: def fit(
      self, X: np.ndarray, sample_weight: np.ndarray = None
  ) -> None:
      """
      Fit isolation forest.
  
      Parameters
      ----------
      X
          Training batch.
      sample_weight
          Sample weights.
      """
      self.isolationforest.fit(X, sample_weight=sample_weight)
  
file_path: alibi-detect/alibi_detect/od/isolationforest.py
imports: import logging
  import numpy
  from sklearn.ensemble import IsolationForest
  from typing import Dict, Union
  from alibi_detect.base import BaseDetector, FitMixin, ThresholdMixin, outlier_prediction_dict
label_desc: Use image node_id 2 for calling the IForest obj's underlying member method code with example usage: obj.fit(X, sample_weight) without return types