code: def __init__(self, cols=None):
      self.enc = LeaveOneOutEncoder(
          cols=cols,
          verbose=1,
          drop_invariant=False,
          return_df=True,
          handle_unknown="value",
          handle_missing="value",
          random_state=1,
          sigma=0,
      )
  
file_path: mljar-supervised/supervised/preprocessing/loo_encoder.py
imports: import copy
  import json
  import logging
  import warnings
  from decimal import Decimal
  import numpy
  import pandas
  from category_encoders.leave_one_out import LeaveOneOutEncoder
  from supervised.utils.config import LOG_LEVEL
label_desc: Use image node_id 1 to create a new LooEncoder object from inherited base classes: object with example: obj = LooEncoder(cols)