Free cookie consent management tool by TermsFeed Policy Generator

source: branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/TrentMcConaghy/TrentMcConaghyInstanceProvider.cs @ 7805

Last change on this file since 7805 was 7805, checked in by sforsten, 12 years ago

#1784: changes have been applied, according to the review comments of mkommend

File size: 2.3 KB
Line 
1#region License Information
2/* HeuristicLab
3 * Copyright (C) 2002-2012 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
22using System;
23using System.Collections.Generic;
24using System.Linq;
25using HeuristicLab.Problems.DataAnalysis;
26
27namespace HeuristicLab.Problems.Instances.Regression {
28  public class TrentMcConaghyInstanceProvider : ResourceRegressionInstanceProvider {
29    public override string Name {
30      get { return "Trent McConaghy Benchmark Problems"; }
31    }
32    public override string Description {
33      get {
34        return "Paper: Deterministic Symbolic Regression Technology, Genetic Programming Theory and Practice IX" + Environment.NewLine
35          + "High-Dimensional Statistical Modeling and Analysis of Custom Integrated Circuits" + Environment.NewLine
36          + "Authors: T. McConaghy" + Environment.NewLine
37          + "Website: http://trent.st/ffx/";
38      }
39    }
40    public override Uri WebLink {
41      get { return new Uri("http://trent.st/ffx/"); }
42    }
43    public override string ReferencePublication {
44      get { return ""; }
45    }
46
47    protected override string FileName { get { return "TrentMcConaghy"; } }
48
49    public override IRegressionProblemData LoadData(IDataDescriptor id) {
50      IRegressionProblemData regData = base.LoadData(id);
51      string targetVar = regData.InputVariables.First().Value;
52      IEnumerable<string> allowedInputVars = regData.InputVariables.Where(x => !x.Equals(regData.TargetVariable)).Select(x => x.Value);
53      RegressionProblemData newRegData = new RegressionProblemData(regData.Dataset, allowedInputVars, targetVar);
54
55      return regData;
56    }
57  }
58}
Note: See TracBrowser for help on using the repository browser.