#NEWLINE# def get_mushroom_data( ) : #NEWLINE# #INDENT# '\n    Load the mushroom dataset, split it into X and y, and then call the label encoder to get an integer y column.\n\n    :return:\n    ' #NEWLINE# df = pd . read_csv ( 'source_data/mushrooms/agaricus-lepiota.csv' ) #NEWLINE# X = df . reindex ( columns = [ x for x in df . columns . values if ( x != 'class' ) ] ) #NEWLINE# y = df . reindex ( columns = [ 'class' ] ) #NEWLINE# y = preprocessing . LabelEncoder ( ) . fit_transform ( y . values . reshape ( ( - 1 ) ) ) #NEWLINE# mapping = None #NEWLINE# return ( X , y , mapping )