Home > TNNT_1_07 > Datasets > Classification > Cancer_data_gen.m

Cancer_data_gen

PURPOSE ^

Wisconsin Breast Cancer Data Generation

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

Wisconsin Breast Cancer Data Generation

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 %Wisconsin Breast Cancer Data Generation
0002 
0003 %Encoding:
0004 %===========
0005 
0006 %There are 9 input attributes, all discrete on a scale 1 - 10 (integer)
0007 %and 1 binary output attribute (2=benign, 4=malignant).
0008 %This encoding is used directly, except that the values are scaled
0009 %to a 0...1 range and that the output is represented with two units.
0010 %There are 16 missing values for attribute 6; they are encoded as 0.3 since
0011 %the average value of that attribute is rougly 3.5.
0012 
0013 clear all;
0014 
0015 bcw=load('breast-cancer-wisconsin.data');
0016 
0017 EncodeMethod='Linear';
0018 DecodeMethod='Linear';
0019 InputSpikeRange=[2 8];
0020 OutputSpikeRange=[18 28];
0021 InputRange=[min(min(bcw(:,2:10))) max(max(bcw(:,2:10)))];
0022 OutputRange=[min(bcw(:,end)) max(bcw(:,end))];
0023 Inputs=bcw(1:599,2:10);
0024 Outputs=bcw(1:599,end);
0025 
0026 TestFlag=1;
0027 TestingInputs=bcw(600:699,2:10);
0028 TestingOutputs=bcw(600:699,end);
0029 
0030 clear bcw;
0031 save('Cancer');

Generated on Wed 02-Apr-2008 15:16:32 by m2html © 2003