class_docstr: Class for building, loading and working with Hierarchical Navigable Small World index with SciKit-Learn
  Estimator compatible interface.
  Mostly drop-in replacement for sklearn.neighbors.NearestNeighbors (except for some parameters)
class_docstr_tok: ["Class","for","building",",","loading","and","working","with","Hierarchical","Navigable","Small","World","index","with","SciKit-Learn","Estimator","compatible","interface",".","Mostly","drop-in","replacement","for","sklearn.neighbors.NearestNeighbors","(","except","for","some","parameters",")"]
docstr: Set the parameters of this estimator.
  
  Parameters
  ----------
  **params : dict
      HnswEstimator parameters.
  
  Returns
  -------
  self : HnswEstimator instance
docstr_tok: ["Set","the","parameters","of","this","estimator",".","Parameters","--","--","--","--","--","*","*","params",":","dict","HnswEstimator","parameters",".","Returns","--","--","--","-","self",":","HnswEstimator","instance"]
code: def set_params(self, **params):
      """
      Set the parameters of this estimator.
  
      Parameters
      ----------
      **params : dict
          HnswEstimator parameters.
  
      Returns
      -------
      self : HnswEstimator instance
      """
      if not params:
          return self
      valid_params = self._get_params(return_none=True)
  
      for key, value in params.items():
          if key not in valid_params:
              raise HnswException(
                  "Invalid parameter %s for HnswEstimator. "
                  "Check the list of available parameters "
                  "with `get_params().keys()`."
              )
              setattr(self, key, value)
  
      return self
  
imports: import sys
  import os
  from six import iteritems
  from enum import IntEnum
  from contextlib import contextmanager
  import json
label_desc: Use image node_id 6 for calling the HnswEstimator obj's underlying member method code with example usage: obj.set_params() and returns: self, self