def load_diabetes(return_X_y=False):
 base_dir = join(dirname(__file__), '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, feature_names=['age', 'sex', 'bmi', 'bp', 's1', 's2', 's3', 's4', 's5', 's6'])

def load_diabetes ( return_X_y = False ) : base_dir = join ( dirname ( __file__ ) , '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 , feature_names = [ 'age' , 'sex' , 'bmi' , 'bp' , 's1' , 's2' , 's3' , 's4' , 's5' , 's6' ] )
load and return the diabetes dataset .