1 | #region License Information
|
---|
2 | /* HeuristicLab
|
---|
3 | * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
|
---|
4 | *
|
---|
5 | * This file is part of HeuristicLab.
|
---|
6 | *
|
---|
7 | * HeuristicLab is free software: you can redistribute it and/or modify
|
---|
8 | * it under the terms of the GNU General Public License as published by
|
---|
9 | * the Free Software Foundation, either version 3 of the License, or
|
---|
10 | * (at your option) any later version.
|
---|
11 | *
|
---|
12 | * HeuristicLab is distributed in the hope that it will be useful,
|
---|
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
15 | * GNU General Public License for more details.
|
---|
16 | *
|
---|
17 | * You should have received a copy of the GNU General Public License
|
---|
18 | * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
|
---|
19 | */
|
---|
20 | #endregion
|
---|
21 |
|
---|
22 |
|
---|
23 | using System;
|
---|
24 | namespace HeuristicLab.Problems.Instances.DataAnalysis {
|
---|
25 | public class WisconsinDiagnosticBreastCancer : UCIDataDescriptor {
|
---|
26 | public override string Filename { get { return "Wisconsin Diagnostic Breast Cancer"; } }
|
---|
27 | public override string Description {
|
---|
28 | get {
|
---|
29 | return "Data Set Information:" + Environment.NewLine
|
---|
30 | + "Results:" + Environment.NewLine
|
---|
31 | + "- predicting field 2, diagnosis: B = benign, M = malignant" + Environment.NewLine
|
---|
32 | + "- sets are linearly separable using all 30 input features" + Environment.NewLine
|
---|
33 | + "- best predictive accuracy obtained using one separating plane" + Environment.NewLine
|
---|
34 | + " in the 3-D space of Worst Area, Worst Smoothness and" + Environment.NewLine
|
---|
35 | + " Mean Texture. Estimated accuracy 97.5% using repeated" + Environment.NewLine
|
---|
36 | + " 10-fold crossvalidations. Classifier has correctly" + Environment.NewLine
|
---|
37 | + " diagnosed 176 consecutive new patients as of November 1995." + Environment.NewLine + Environment.NewLine
|
---|
38 | + "The classes have been converted in the following way" + Environment.NewLine
|
---|
39 | + "B = benign = 0" + Environment.NewLine
|
---|
40 | + "M = malignant = 1";
|
---|
41 | }
|
---|
42 | }
|
---|
43 | public override string Donor { get { return "Nick Street"; } }
|
---|
44 | public override int Year { get { return 1995; } }
|
---|
45 |
|
---|
46 | protected override string TargetVariable { get { return "Diagnosis"; } }
|
---|
47 | protected override string[] VariableNames {
|
---|
48 | get { return new string[] { "ID number", "Diagnosis", "mean radius", "mean texture", "mean perimeter", "mean area", "mean smoothness", "mean compactness", "mean concavity", "mean concave points", "mean symmetry", "mean fractal dimension", "radius SE", "texture SE", "perimeter SE", "area SE", "smoothness SE", "compactness SE", "concavity SE", "concave points SE", "symmetry SE", "fractal dimension SE", "worst radius", "worst texture", "worst perimeter", "worst area", "worst smoothness", "worst compactness", "worst concavity", "worst concave points", "worst symmetry", "worst fractal dimension" }; }
|
---|
49 | }
|
---|
50 | protected override string[] AllowedInputVariables {
|
---|
51 | get { return new string[] { "mean radius", "mean texture", "mean perimeter", "mean area", "mean smoothness", "mean compactness", "mean concavity", "mean concave points", "mean symmetry", "mean fractal dimension", "radius SE", "texture SE", "perimeter SE", "area SE", "smoothness SE", "compactness SE", "concavity SE", "concave points SE", "symmetry SE", "fractal dimension SE", "worst radius", "worst texture", "worst perimeter", "worst area", "worst smoothness", "worst compactness", "worst concavity", "worst concave points", "worst symmetry", "worst fractal dimension" }; }
|
---|
52 | }
|
---|
53 | protected override int TrainingPartitionStart { get { return 0; } }
|
---|
54 | protected override int TrainingPartitionEnd { get { return 380; } }
|
---|
55 | protected override int TestPartitionStart { get { return 380; } }
|
---|
56 | protected override int TestPartitionEnd { get { return 569; } }
|
---|
57 | }
|
---|
58 | }
|
---|