parameters: (return_X_y=False)
return_statement: return Bunch(data=data, target=target, DESCR=fdescr,
                   feature_names=['age', 'sex', 'bmi', 'bp',
                                  's1', 's2', 's3', 's4', 's5', 's6'],
                   data_filename=data_filename,
                   target_filename=target_filename)
docstring: Load and return the diabetes dataset (regression).
  
      ==============   ==================
      Samples total    442
      Dimensionality   10
      Features         real, -.2 < x < .2
      Targets          integer 25 - 346
      ==============   ==================
  
      Read more in the :ref:`User Guide <diabetes_dataset>`.
  
      Parameters
      ----------
      return_X_y : boolean, default=False.
          If True, returns ``(data, target)`` instead of a Bunch object.
          See below for more information about the `data` and `target` object.
  
          .. versionadded:: 0.18
  
      Returns
      -------
      data : Bunch
          Dictionary-like object, the interesting attributes are:
          'data', the data to learn, 'target', the regression target for each
          sample, 'data_filename', the physical location
          of diabetes data csv dataset, and 'target_filename', the physical
          location of diabetes targets csv datataset (added in version `0.20`).
  
      (data, target) : tuple if ``return_X_y`` is True
  
          .. versionadded:: 0.18
docstring_summary: Load and return the diabetes dataset (regression).
docstring_tokens: Load and return the diabetes dataset ( regression ) .
function: def load_diabetes(return_X_y=False):
      """Load and return the diabetes dataset (regression).
  
      ==============   ==================
      Samples total    442
      Dimensionality   10
      Features         real, -.2 < x < .2
      Targets          integer 25 - 346
      ==============   ==================
  
      Read more in the :ref:`User Guide <diabetes_dataset>`.
  
      Parameters
      ----------
      return_X_y : boolean, default=False.
          If True, returns ``(data, target)`` instead of a Bunch object.
          See below for more information about the `data` and `target` object.
  
          .. versionadded:: 0.18
  
      Returns
      -------
      data : Bunch
          Dictionary-like object, the interesting attributes are:
          'data', the data to learn, 'target', the regression target for each
          sample, 'data_filename', the physical location
          of diabetes data csv dataset, and 'target_filename', the physical
          location of diabetes targets csv datataset (added in version `0.20`).
  
      (data, target) : tuple if ``return_X_y`` is True
  
          .. versionadded:: 0.18
      """
      module_path = dirname(__file__)
      base_dir = join(module_path, 'data')
      data_filename = join(base_dir, 'diabetes_data.csv.gz')
      data = np.loadtxt(data_filename)
      target_filename = join(base_dir, 'diabetes_target.csv.gz')
      target = np.loadtxt(target_filename)
  
      with open(join(module_path, 'descr', 'diabetes.rst')) as rst_file:
          fdescr = rst_file.read()
  
      if return_X_y:
          return data, target
  
      return Bunch(data=data, target=target, DESCR=fdescr,
                   feature_names=['age', 'sex', 'bmi', 'bp',
                                  's1', 's2', 's3', 's4', 's5', 's6'],
                   data_filename=data_filename,
                   target_filename=target_filename)
function_tokens: def load_diabetes ( return_X_y = False ) : module_path = dirname ( __file__ ) base_dir = join ( module_path , 'data' ) data_filename = join ( base_dir , 'diabetes_data.csv.gz' ) data = np . loadtxt ( data_filename ) target_filename = join ( base_dir , 'diabetes_target.csv.gz' ) target = np . loadtxt ( target_filename ) with open ( join ( module_path , 'descr' , 'diabetes.rst' ) ) as rst_file : fdescr = rst_file . read ( ) if return_X_y : return data , target return Bunch ( data = data , target = target , DESCR = fdescr , feature_names = [ 'age' , 'sex' , 'bmi' , 'bp' , 's1' , 's2' , 's3' , 's4' , 's5' , 's6' ] , data_filename = data_filename , target_filename = target_filename )