Crabs + Pima data

Notes by David J.C. MacKay. Wed Oct 9 22:09:04 BST 1996

Crabs summary

6 inputs (or 5)
1 binary target
data are in _crabs.in and crabs.ta
train 1:80
test 81:200 (120)
---------------------------- alternatively, if you want separate files for
---------------------------- tr and test -----------------
_cr.tr.in cr.tr.ta
_cr.te.in cr.te.ta

Pima summary

7 inputs 
1 binary target
data are in _pima.in and pima.ta
train 1:200
test 201:532 (332)
---------------------------- alternatively, if you want separate files
_pi.tr.in pi.tr.ta
_pi.te.in pi.te.ta

Crabs data preparation

Ripley's test and train files were concatenated and the first columns (numbers?) were removed and the headings
(     FL   RW   CL   CW   BD group )
deleted. The top 80 lines are from train, lines 81 to 200 are test.

The righthand column was removed into the file crabs.ta, the rest left in crabs.in. The labels BlM, BlF and OrM and OrF were split into colour (Bl=1,Or=0) (put back in the input file) and sex (M=0,F=1) put in crabs.ta.

The Williams/Barber paper does two expts, one using the first 5 inputs and one using all six.

A rescaling of all inputs (into +/-0.5) was performed by crabsrescaler.p based on the max and min in the training set.

The final input file is in _crabs.in

Pima data preparation

Ripley's test and train files were concatenated and the headings
( npreg glu bp skin ins bmi ped age type)
removed. The right column was put in pima.ta and changed to (1/0).

532 examples total, 200 train and 332 test.

column 0, min = 0 , max = 14 column 1, min = 56 , max = 199 column 2, min = 38 , max = 110 column 3, min = 7 , max = 99 column 4, min = 18.2 , max = 47.9 column 5, min = 0.085 , max = 2.288 column 6, min = 21 , max = 63

A rescaling of all inputs (into +/-0.5) was performed by pimarescaler.p based on the max and min in the training set.

The final input file is in _pima.in

Notes

David Barber points out:
>> I was a little confused about Ripleys Pima data. When one
>> downloads this from his homepage, you see that there are more column
>> headings than columns themselves! Reading his book "Pattern
>> Recognition and NNs", page15, he says that he omits serum insulin in
>> his experiments. We assumed that he'd simply forgotton to omit this
>> heading from the data. Thus we used all the columns of data, as you
>> suggest. One point that confuses me is that in his book, on page114,
>> he mentions the >>6<< explanatory variables, whereas we have 7! Again,
>> I put this down to a slip from Ripley.
>>
>> Actually, I just realised that the max likelihood results that I gave
>> you yesterday were slightly incorrect: I should have said 3 errors for
>> both of the crab problems and 69 errors for the Pima problem. This
>> means that there is precious little difference between the Monte Carlo
>> results and max likelihood for these problems. Again, the cputime is
>> of the order of a minute or so for both problems.

David MacKay <mackay@mrao.cam.ac.uk>
Last modified: Fri Oct 11 22:48:17 1996