def oil(data_set='<STR_LIT>'):
if not data_available(data_set):<EOL><INDENT>download_data(data_set)<EOL><DEDENT>oil_train_file = os.path.join(data_path, data_set, '<STR_LIT>')<EOL>oil_trainlbls_file = os.path.join(data_path, data_set, '<STR_LIT>')<EOL>oil_test_file = os.path.join(data_path, data_set, '<STR_LIT>')<EOL>oil_testlbls_file = os.path.join(data_path, data_set, '<STR_LIT>')<EOL>oil_valid_file = os.path.join(data_path, data_set, '<STR_LIT>')<EOL>oil_validlbls_file = os.path.join(data_path, data_set, '<STR_LIT>')<EOL>fid = open(oil_train_file)<EOL>X = np.fromfile(fid, sep='<STR_LIT:\t>').reshape((-<NUM_LIT:1>, <NUM_LIT:12>))<EOL>fid.close()<EOL>fid = open(oil_test_file)<EOL>Xtest = np.fromfile(fid, sep='<STR_LIT:\t>').reshape((-<NUM_LIT:1>, <NUM_LIT:12>))<EOL>fid.close()<EOL>fid = open(oil_valid_file)<EOL>Xvalid = np.fromfile(fid, sep='<STR_LIT:\t>').reshape((-<NUM_LIT:1>, <NUM_LIT:12>))<EOL>fid.close()<EOL>fid = open(oil_trainlbls_file)<EOL>Y = np.fromfile(fid, sep='<STR_LIT:\t>').reshape((-<NUM_LIT:1>, <NUM_LIT:3>)) * <NUM_LIT> - <NUM_LIT:1.><EOL>fid.close()<EOL>fid = open(oil_testlbls_file)<EOL>Ytest = np.fromfile(fid, sep='<STR_LIT:\t>').reshape((-<NUM_LIT:1>, <NUM_LIT:3>)) * <NUM_LIT> - <NUM_LIT:1.><EOL>fid.close()<EOL>fid = open(oil_validlbls_file)<EOL>Yvalid = np.fromfile(fid, sep='<STR_LIT:\t>').reshape((-<NUM_LIT:1>, <NUM_LIT:3>)) * <NUM_LIT> - <NUM_LIT:1.><EOL>fid.close()<EOL>return data_details_return({'<STR_LIT:X>': X, '<STR_LIT:Y>': Y, '<STR_LIT>': Xtest, '<STR_LIT>': Ytest, '<STR_LIT>' : Xtest, '<STR_LIT>': Xvalid, '<STR_LIT>': Yvalid}, data_set)<EOL>
The three phase oil data from Bishop and James (1993).