Wolfram Research

Sample Data: Mushroom Classification

Determine whether a mushroom is edible based on physical characteristics

This dataset consists of 8124 records of the physical characteristics of gilled mushrooms in the Agaricus and Lepiota families, along with their edibility. The classification task is to determine the edibility given the physical characteristics of the mushrooms. The test and training sets were constructed by stratified random sampling using 30% of the data for the test set and the rest for the training set.

Examples

Basic Examples

Retrieve the resource:

In[1]:=
ResourceObject["Sample Data: Mushroom Classification"]
Out[1]=

Retrieve a sample of the data:

In[2]:=
RandomSample[ResourceData["Sample Data: Mushroom Classification"], 5]
Out[2]=

Analysis

Train a classifier:

In[3]:=
c = Classify[
  ResourceData["Sample Data: Mushroom Classification", 
   "TrainingData"]]
Out[3]=

Obtain general information about the classifier:

In[4]:=
Information[c]
Out[4]=

Visualize the accuracy of the classifier:

In[5]:=
ClassifierMeasurements[c, 
  ResourceData["Sample Data: Mushroom Classification", 
   "TestData"]]["ConfusionMatrixPlot"]
Out[5]=

Wolfram Research, "Sample Data: Mushroom Classification" from the Wolfram Data Repository (2019) 

Data Resource History

Source Metadata

Data Downloads

Publisher Information