code: @Override
      public void setParameter(Map<String, String> paraMap) {
          if (paraMap.containsKey("k")) {
              this.k = Integer.parseInt(paraMap.get("k"));
          }
          if (paraMap.containsKey("mode")) {
              this.mode = Integer.parseInt(paraMap.get("mode"));
          }
      }
docs: k: k nearest neighbors. mode: 0 - EuclideanDistance, 1 - ChebyshevDistance, 2 - ManhattanDistance
  
  @param paraMap Parameters Map.