def ripley_synth(data_set='<STR_LIT>'):
if not data_available(data_set):<EOL><INDENT>download_data(data_set)<EOL><DEDENT>train = np.genfromtxt(os.path.join(data_path, data_set, '<STR_LIT>'), skip_header=<NUM_LIT:1>)<EOL>X = train[:, <NUM_LIT:0>:<NUM_LIT:2>]<EOL>y = train[:, <NUM_LIT:2>:<NUM_LIT:3>]<EOL>test = np.genfromtxt(os.path.join(data_path, data_set, '<STR_LIT>'), skip_header=<NUM_LIT:1>)<EOL>Xtest = test[:, <NUM_LIT:0>:<NUM_LIT:2>]<EOL>ytest = test[:, <NUM_LIT:2>:<NUM_LIT:3>]<EOL>return data_details_return({'<STR_LIT:X>': X, '<STR_LIT:Y>': y, '<STR_LIT>': Xtest, '<STR_LIT>': ytest, '<STR_LIT:info>': '<STR_LIT>'}, data_set)<EOL>
Synthetic classification data set generated by Brian Ripley for his Neural Networks book.