2-4 Abalone Dataset

[chinese][english]

Abalone dataset contains 4177 entries in which each entry records the features of an abalone together with its age as the desired output. Characteristics of this dataset can be listed below.

Abalone 資料集包含不同年齡之鮑魚的各項資料,特性如下:

We can display the data sizes among all classes, as follows:

我們可以計算每一個類別的資料量,如下:

Example 1: abaloneClassDataCount01.mDS=prData('abalone'); [classSize, classLabel]=dsClassSize(DS, 1); 8 features 4177 instances 28 classes

We can display the feature distributions over different classes, as follows:

我們可以計算每一個類別的特徵分布圖,如下:

Example 2: abaloneClassDist01.mDS=prData('abalone'); index=DS.output>8; DS.input(:, index)=[]; DS.output(:, index)=[]; dsDistPlot(DS);

(In order not to clotter the plot, we have only shown the distributions among the first 8 classes.)

We can plot the classes w.r.t. each of the features:

我們可以進行類別對單一特徵的作圖,如下:

Example 3: abaloneProjPlot1.mDS = prData('abalone'); dsProjPlot1(DS);

We can have a scatter plot after projecting the dataset onto a 2D plane:

我們也可以將資料投影到二度空間,來觀察資料的分佈,範例如下:

Example 5: abaloneProjPlot2.mDS = prData('abalone'); opt.showAxisLabel=0; opt.showAxisTick=0; opt.showClassName=1; dsProjPlot2(DS, opt);

We can have another scatter plot after projecting the dataset onto a 3D space, which generates C(8, 3) = 56 subplots, as follows:

我們也可以將資料投影到三度空間,來觀察資料的分佈,但是會畫出的圖形將有 C(8, 3) = 56 個圖,如下:

Example 6: abaloneProjPlot3.mDS = prData('abalone'); opt.showAxisLabel=0; opt.showAxisTick=0; opt.showClassName=1; dsProjPlot3(DS, opt);

Since there are 28 classes, it is hard to observe the distribution of each class in either 2D or 3D projection.

由於類別太多,所以無論是二度空間投影或是三度空間投影,都很難看出來是否有「同類資料分佈相近」的趨勢。


Data Clustering and Pattern Recognition (資料分群與樣式辨認)