Sample Data: Abalone Measurements

Predict the age of abalone from physical measurements

Traditionally, the age of abalone is determined by cutting the shell through the cone, staining it, and counting the number of rings through a microscope. These data were collected to determine whether the age of abalone could instead be determined using the following physical measurements: sex, length, diameter, height, whole weight, shucked weight, viscera weight, and shell weight.

(10 columns, 4177 rows)

Examples

Basic Examples

Retrieve the resource:

In[1]:=
ResourceObject["Sample Data: Abalone Measurements"]
Out[1]=

Retrieve the default content:

In[2]:=
ResourceData["Sample Data: Abalone Measurements"]
Out[2]=

Analysis

Shuffle the dataset randomly, remove the unit labels and drop the age column:

In[3]:=
r = QuantityMagnitude /@ RandomSample[
   ResourceData["Sample Data: Abalone Measurements"][[All, 1 ;; 9]] //
     Normal]
Out[3]=

Create a training dataset using 80% of the original dataset:

In[4]:=
training = r[[;; Round[Times[Length[r], .8]]]]
Out[4]=

Create a testing dataset using the remaining 20% of the original dataset:

In[5]:=
testing = r[[Round[Times[Length[r], .8]] + 1 ;;]]
Out[5]=

Train a predictor function using "Rings" as the target variable:

In[6]:=
p = Predict[training -> "Rings"]
Out[6]=

Obtain general information about the predictor:

In[7]:=
PredictorInformation[p]
Out[7]=

Test the predictor:

In[8]:=
pm = PredictorMeasurements[p, testing -> "Rings"]
Out[8]=

Visualize the accuracy of the predictor:

In[9]:=
pm["ComparisonPlot"]
Out[9]=

Wolfram Research, "Sample Data: Abalone Measurements" from the Wolfram Data Repository (2017)  

License Information

Creative Commons Public Domain Mark

Data Resource History

Source Metadata

Data Downloads

Publisher Information