code: def __init__(self, params):
      super(KNeighborsRegressorAlgorithm, self).__init__(params)
      logger.debug("KNeighborsRegressorAlgorithm.__init__")
      self.library_version = sklearn.__version__
      self.max_iters = 1
      self.model = KNeighborsRegressor(
          n_neighbors=params.get("n_neighbors", 3),
          weights=params.get("weights", "uniform"),
          algorithm="ball_tree",
          n_jobs=params.get("n_jobs", -1),
      )
  
imports: import logging
  import os
  import numpy
  import sklearn
  from sklearn.base import ClassifierMixin, RegressorMixin
  from sklearn.model_selection import train_test_split
  from sklearn.neighbors import KNeighborsClassifier, KNeighborsRegressor
  from supervised.algorithms.algorithm import BaseAlgorithm
  from supervised.algorithms.registry import BINARY_CLASSIFICATION, MULTICLASS_CLASSIFICATION, REGRESSION, AlgorithmsRegistry
  from supervised.algorithms.sklearn import SklearnAlgorithm
  from supervised.utils.config import LOG_LEVEL
label_desc: Use image node_id 1 to create a new KNeighborsRegressorAlgorithm object from inherited base classes: KNNFit with example: obj = KNeighborsRegressorAlgorithm(params)