def creep_data(data_set='<STR_LIT>'):
if not data_available(data_set):<EOL><INDENT>import tarfile<EOL>download_data(data_set)<EOL>path = os.path.join(data_path, data_set)<EOL>tar_file = os.path.join(path, '<STR_LIT>')<EOL>tar = tarfile.open(tar_file)<EOL>tar.extractall(path=path)<EOL>tar.close()<EOL><DEDENT>all_data = np.loadtxt(os.path.join(data_path, data_set, '<STR_LIT>'))<EOL>y = all_data[:, <NUM_LIT:1>:<NUM_LIT:2>].copy()<EOL>features = [<NUM_LIT:0>]<EOL>features.extend(list(range(<NUM_LIT:2>, <NUM_LIT>)))<EOL>X = all_data[:, features].copy()<EOL>cats = {'<STR_LIT>': <NUM_LIT:0>, '<STR_LIT>': <NUM_LIT:1>, '<STR_LIT>': <NUM_LIT:2>, '<STR_LIT>': <NUM_LIT:3>}<EOL>attributes = ['<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', discrete(cats, '<STR_LIT>'), '<STR_LIT>', '<STR_LIT>', discrete(cats, '<STR_LIT>'), '<STR_LIT>', '<STR_LIT>', discrete(cats, '<STR_LIT>'), '<STR_LIT>']<EOL>return data_details_return({'<STR_LIT:X>': X, '<STR_LIT:Y>': y, '<STR_LIT>' : attributes, '<STR_LIT>': ['<STR_LIT>']}, data_set)<EOL>
Brun and Yoshida's metal creep rupture data.