docstr: print first few rows of data
  option to view histogram of x and y
  option to view scatter plot of x vs y
docstr_tok: ["print","first","few","rows","of","data","option","to","view","histogram","of","x","and","y","option","to","view","scatter","plot","of","x","vs","y"]
code: def ViewData(self, n_rows=5, hist=False, plot=False, print_=True):
      """
      print first few rows of data
      option to view histogram of x and y
      option to view scatter plot of x vs y
      """
      if print_:
          print(
              "\nX_train\n",
              self.X_train[:n_rows],
              "\ny_train\n",
              self.y_train[:n_rows],
              "\nX_val\n",
              self.X_val[:n_rows],
              "\ny_val\n",
              self.y_val[:n_rows],
          )
  
      if hist:
          fig, ax = plt.subplots(1, 2)
          ax[0].hist(self.X_train)
          ax[1].hist(self.y_train)
          ax[0].set_title("X_train")
          ax[1].set_title("y_train")
          fig.show()
  
      if plot:
          n_feat = self.X_train.shape[1]
          fig, ax = plt.subplots(n_feat, 1)  # create an extra
          if n_feat == 1:
              ax = [ax]  # make into list
          for i in range(0, n_feat):
              ax[i].scatter(
                  self.X_train[:, i], self.y_train, alpha=0.5, s=2.0
              )
  
              ax[i].set_xlabel("x_" + str(i))
              ax[i].set_ylabel("y")
          fig.show()
      return
  
file_path: elu-gelu-kernels/code/experiments/02_shallow_experiments/DataGen.py
imports: import numpy
  import scipy
  import matplotlib.pyplot
  import importlib
label_desc: Use image node_id 3 for calling the DataGenerator obj's underlying member method code with example usage: obj.ViewData(n_rows, hist, plot, print_) without return types