code: def load_data_and_build(self, filename, delimiter=","):
          
          data = np.genfromtxt(
              filename, dtype=float, delimiter=delimiter, names=True
          )
          data = data.view(np.float64).reshape(data.shape + (-1,))
  
          X = data[:, 0:-1]
          Y = data[:, -1]
  
          self.build(X=X, Y=Y)
docs: Convenience function for directly working with a data file.
              This opens a file and reads the data into an array, sets the
              data as an nparray and list of dimnames
              @ In, filename, string representing the data file