parameters: (return_X_y=False)
return_statement: return Bunch(data=data, target=target)
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 <datasets>`.
  
      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 and 'target', the regression target for each
          sample.
  
      (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 <datasets>`.
  
      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 and 'target', the regression target for each
          sample.
  
      (data, target) : tuple if ``return_X_y`` is True
  
          .. versionadded:: 0.18    
      """
      base_dir = join(datasets_dir(), 'data')
      data = np.loadtxt(join(base_dir, 'diabetes_data.csv.gz'))
      target = np.loadtxt(join(base_dir, 'diabetes_target.csv.gz'))
      
      if return_X_y:
          return data, target
  
      return Bunch(data=data, target=target)
function_tokens: def load_diabetes ( return_X_y = False ) : base_dir = join ( datasets_dir ( ) , 'data' ) data = np . loadtxt ( join ( base_dir , 'diabetes_data.csv.gz' ) ) target = np . loadtxt ( join ( base_dir , 'diabetes_target.csv.gz' ) ) if return_X_y : return data , target return Bunch ( data = data , target = target )