[80] | 1 | %AUTO_MPG Car/miles-per-gallon, 398 objects, 6 features, 2 classes |
---|
| 2 | % |
---|
| 3 | % A = AUTO_MPG |
---|
| 4 | % |
---|
| 5 | % Load the dataset in A. This is the 'auto-mpg' dataset of the UCI |
---|
| 6 | % Machine Learning Repository, //www.ics.uci.edu/~mlearn/MLRepository.html |
---|
| 7 | % |
---|
| 8 | % See also DATASETS, PRDATASETS |
---|
| 9 | |
---|
| 10 | % Copyright: R.P.W. Duin, r.p.w.duin@prtools.org |
---|
| 11 | % Faculty EWI, Delft University of Technology |
---|
| 12 | % P.O. Box 5031, 2600 GA Delft, The Netherlands |
---|
| 13 | |
---|
| 14 | % $Id: auto_mpg.m,v 1.1.1.1 2003/05/16 11:20:35 bob Exp $ |
---|
| 15 | |
---|
[119] | 16 | function a = auto_mpg |
---|
[80] | 17 | |
---|
| 18 | prdatasets(mfilename,1); |
---|
[81] | 19 | a = pr_dataset('auto_mpg'); |
---|
[119] | 20 | a = setname(a,'Car-miles-per-gallon'); |
---|
[80] | 21 | |
---|
| 22 | a = setlablist(a,str2mat('< 25 mpg ','> 25 mpg')); |
---|
| 23 | a = setfeatlab(a,str2mat(... |
---|
| 24 | 'cylinders: multi-valued discrete', ... |
---|
| 25 | 'displacement: continuous', ... |
---|
| 26 | 'weight: continuous', ... |
---|
| 27 | 'acceleration: continuous', ... |
---|
| 28 | 'model year: multi-valued discrete', ... |
---|
| 29 | 'origin: multi-valued discrete')); |
---|