code: def fit(self, x):
          
          assert x.ndim > 1
          self.data_min_ = np.min(x, axis=tuple(range(x.ndim - 1)))
          self.data_max_ = np.max(x, axis=tuple(range(x.ndim - 1)))
  
          if self.share_knots:
              self.data_min_[:] = np.min(self.data_min_)
              self.data_max_[:] = np.max(self.data_max_)
docs: Calculate the knot placement from the values ranges.
  
          # Arguments
              x: numpy array, either N x D or N x L x D dimensional.