code: public static void scaleMinMax(double min, double max, INDArray toScale) {
          //X_std = (X - X.min(axis=0)) / (X.max(axis=0) - X.min(axis=0)) X_scaled = X_std * (max - min) + min
  
          INDArray min2 = toScale.min(0);
          INDArray max2 = toScale.max(0);
  
          INDArray std = toScale.subRowVector(min2).diviRowVector(max2.sub(min2));
  
          INDArray scaled = std.mul(max - min).addi(min);
          toScale.assign(scaled);
      }
docs: Scales the ndarray columns
  to the given min/max values
  
  @param min the minimum number
  @param max the max number