original_docstring: 
      Wrapper for manual bootstrap method.
      
docstring: Wrapper for manual bootstrap method.
docstring_tokens: Wrapper for manual bootstrap method .
code: def BootstrapWrapper(X_train, y_train, reg, N_bs, test_percent=0.4,
                       X_test=None, y_test=None, shuffle=False):
      """
      Wrapper for manual bootstrap method.
      """
  
      # Checks if we have provided test data or not
      if ((isinstance(X_test, type(None))) and
              (isinstance(y_test, type(None)))):
  
          # Splits X data and design matrix data
          X_train, X_test, y_train, y_test = \
              sk_modsel.train_test_split(X_train, y_train,
                                         test_size=test_percent,
                                         shuffle=shuffle)
  
      bs_reg = BootstrapRegression(X_train, y_train, reg)
      bs_reg.bootstrap(N_bs, test_percent=test_percent, X_test=X_test,
                       y_test=y_test)
  
      return {
          "r2": bs_reg.r2, "mse": bs_reg.mse, "bias": bs_reg.bias,
          "var": bs_reg.var, "diff": bs_reg.mse - bs_reg.bias - bs_reg.var,
          "coef": bs_reg.beta_coefs,
          "coef_var": bs_reg.beta_coefs_var, "x_pred": bs_reg.x_pred_test,
          "y_pred": bs_reg.y_pred, "y_pred_var": bs_reg.y_pred_var}
code_tokens: def BootstrapWrapper ( X_train , y_train , reg , N_bs , test_percent = 0.4 , X_test = None , y_test = None , shuffle = False ) : if ( ( isinstance ( X_test , type ( None ) ) ) and ( isinstance ( y_test , type ( None ) ) ) ) : X_train , X_test , y_train , y_test = sk_modsel . train_test_split ( X_train , y_train , test_size = test_percent , shuffle = shuffle ) bs_reg = BootstrapRegression ( X_train , y_train , reg ) bs_reg . bootstrap ( N_bs , test_percent = test_percent , X_test = X_test , y_test = y_test ) return { "r2" : bs_reg . r2 , "mse" : bs_reg . mse , "bias" : bs_reg . bias , "var" : bs_reg . var , "diff" : bs_reg . mse - bs_reg . bias - bs_reg . var , "coef" : bs_reg . beta_coefs , "coef_var" : bs_reg . beta_coefs_var , "x_pred" : bs_reg . x_pred_test , "y_pred" : bs_reg . y_pred , "y_pred_var" : bs_reg . y_pred_var }
short_docstring: Wrapper for manual bootstrap method.
short_docstring_tokens: Wrapper for manual bootstrap method .
comment: """
      Wrapper for manual bootstrap method.
      """$SEP$# Checks if we have provided test data or not$SEP$# Splits X data and design matrix data