Predict Abalone Age

0

0 votes
Easy-Medium, machine learning, Easy-Medium
Problem

Abalone

The dazzling image you see above is an Abalone. An Albanone is a mollusc with a peculiar ear-shaped shell lined of mother of pearl.

Several myths say that these sparkling shells belong to the time when gods used to visit earth. When the gods used to walk on the beaches, Albanone's used to materialize out of sand. Sapier, a biologist and antagonists wants to disprove this myth. He decides to do so by estimating ages of several Abalones. He can do so by counting the number of rings in their shell with a microscope, but it is a time consuming process. Work done by previous bilogists states that an accurate measure of an Abalone's age can be obtained using their physical measurement. Sapier couldn't figure out how this could be done. However, he found previously collected data corresponding to physical measurements of several Abalones which also contains the number of rings present. He is confident of the correlation between number of rings and Abalone's age but he doesn't know how to find the number of rings in the Abalone's he has in his laboratory from their physical measurements. Can you help him predict the number of rings in each of the Abalone in his laboratory?

Input format

Line 1: M value

Next M lines contain 9 values separated by spaces. These constitute the training data.

Line 2 to M+1: Sex Length Diameter Height Wheight Sweight Vweight SHweight Rings

Line M+2: N value.

Next N lines contain 8 values separated by spaces. These constitute the test data.

Line M+3 to M + N + 2: Sex Length Diameter Height Wheight Sweight Vweight SHweight

Dataset Attribute information

Name           Data-Type     Meas.    Description
----           ---------    -----    -----------
Sex             nominal             M, F, and I (infant)
Length         continuous    mm     Longest shell measurement
Diameter       continuous    mm     perpendicular to length
Height         continuous    mm     with meat in shell
Whole weight    continuous   grams   whole abalone
Shucked weight  continuous   grams   weight of meat
Viscera weight  continuous   grams   gut weight (after bleeding)
Shell weight    continuous   grams   after being dried
Rings           integer            +1.5 gives the age in years

Statistics for numeric domains:

           Length    Diam    Height    Whole   Shucked Viscera   Shell   Rings
     Min    0.075    0.055    0.000    0.002    0.001    0.001   0.002     1
     Max    0.815    0.650    1.130    2.826    1.488    0.760   1.005     29
     Mean   0.524    0.408    0.140    0.829    0.359    0.181   0.239   9.934
     SD     0.120    0.099    0.042    0.490    0.222    0.110   0.139   3.224
     Correl 0.557    0.575    0.557    0.540    0.421    0.504   0.628    1.0

Missing Attribute Values: None

Output format

The output should consist of N lines corresponding to the predicted ages of N Abalone whose physical measurements are given in test data.

Time Limit: 10
Memory Limit: 256
Source Limit:
Explanation

Sample input is given just to tell about the output format. It may not be the solution for the given sample Input.

Editor Image

?