docstr: Implements quantile regression using lightgbm.
docstr_tok: ["Implements","quantile","regression","using","lightgbm","."]
code: def __init__(self, quantiles: List, params: Optional[dict] = None):
      """
      Implements quantile regression using lightgbm.
      """
      from lightgbm import LGBMRegressor
  
      self.quantiles = quantiles
      self.models = {
          quantile: LGBMRegressor(
              objective="quantile", alpha=quantile, **params
          )
          for quantile in quantiles
      }
  
imports: from typing import Any, Dict, List, Optional, Union
  import copy
  import numpy
  import pandas
  import xgboost
  import gc
  from collections import defaultdict
  from gluonts.core.component import equals, validated
label_desc: Use image node_id 1 to create a new QuantileReg object  with example: obj = QuantileReg(quantiles, params)