docs: @Override
      public Object map(Object input) {
          int currValue = ((Number) input).intValue();
          if (currValue < minValue || currValue > maxValue) {
              throw new IllegalStateException("Invalid value: integer value (" + currValue + ") is outside of "
                              + "valid range: must be between " + minValue + " and " + maxValue + " inclusive");
          }
  
          List<Integer> oneHot = new ArrayList<>();
          for (int j = minValue; j <= maxValue; j++) {
              if (j == currValue) {
                  oneHot.add(1);
              } else {
                  oneHot.add(0);
              }
          }
          return oneHot;
      }