Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/20/09 10:09:59 (15 years ago)
Author:
gkronber
Message:

Moved problem injectors from GP.StructureIdentification projects into HeuristicLab.Modeling and made some necessary adjustments (project name, references, plugin dependencies). #635

Location:
trunk/sources/HeuristicLab.Modeling/3.2
Files:
2 added
1 edited
6 moved

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Modeling/3.2

    • Property svn:ignore
      •  

        old new  
        11bin
        22obj
         3*.user
  • trunk/sources/HeuristicLab.Modeling/3.2/ClassificationProblemInjector.cs

    r1854 r1856  
    2424using System.Text;
    2525using System.Xml;
    26 using Core = HeuristicLab.Core;
     26using HeuristicLab.Core;
    2727using HeuristicLab.Data;
    2828
    29 namespace HeuristicLab.GP.StructureIdentification.Classification {
    30   public class ProblemInjector : HeuristicLab.GP.StructureIdentification.ProblemInjector {
     29namespace HeuristicLab.Modeling {
     30  public class ClassificationProblemInjector : ProblemInjector {
    3131
    3232    public override string Description {
    3333      get {
    34         return "Problem injector for classification structure identification.";
     34        return "Problem injector for classification problems.";
    3535      }
    3636    }
    3737
    38     public ProblemInjector()
     38    public ClassificationProblemInjector()
    3939      : base() {
    4040      AddVariableInfo(new Core.VariableInfo("TargetClassValues", "TargetClassValues", typeof(ItemList<DoubleData>), Core.VariableKind.New));
  • trunk/sources/HeuristicLab.Modeling/3.2/ProblemInjector.cs

    r1854 r1856  
    2424using System.Text;
    2525using System.Xml;
    26 using Core = HeuristicLab.Core;
     26using HeuristicLab.Core;
    2727using HeuristicLab.Data;
    28 using HeuristicLab.Operators;
    2928using HeuristicLab.DataAnalysis;
    3029
    31 namespace HeuristicLab.GP.StructureIdentification {
    32   public class ProblemInjector : Core.OperatorBase {
     30namespace HeuristicLab.Modeling {
     31  public class ProblemInjector : OperatorBase {
    3332    public override string Description {
    34       get { return @"Injects the necessary variables for a structure identification problem."; }
     33      get { return @"Injects the necessary variables for a data-based modeling problem."; }
    3534    }
    3635
    3736    public ProblemInjector()
    3837      : base() {
    39       AddVariableInfo(new Core.VariableInfo("Dataset", "Dataset", typeof(Dataset), Core.VariableKind.New));
     38      AddVariableInfo(new VariableInfo("Dataset", "Dataset", typeof(Dataset), VariableKind.New));
    4039      GetVariableInfo("Dataset").Local = true;
    41       AddVariable(new Core.Variable("Dataset", new Dataset()));
     40      AddVariable(new Variable("Dataset", new Dataset()));
    4241
    43       AddVariableInfo(new Core.VariableInfo("TargetVariable", "TargetVariable", typeof(IntData), Core.VariableKind.New));
     42      AddVariableInfo(new VariableInfo("TargetVariable", "TargetVariable", typeof(IntData), VariableKind.New));
    4443      GetVariableInfo("TargetVariable").Local = true;
    45       AddVariable(new Core.Variable("TargetVariable", new IntData()));
     44      AddVariable(new Variable("TargetVariable", new IntData()));
    4645
    47       AddVariableInfo(new Core.VariableInfo("AllowedFeatures", "Indexes of allowed input variables", typeof(ItemList<IntData>), Core.VariableKind.New));
     46      AddVariableInfo(new VariableInfo("AllowedFeatures", "Indexes of allowed input variables", typeof(ItemList<IntData>), VariableKind.New));
    4847      GetVariableInfo("AllowedFeatures").Local = true;
    49       AddVariable(new Core.Variable("AllowedFeatures", new ItemList<IntData>()));
     48      AddVariable(new Variable("AllowedFeatures", new ItemList<IntData>()));
    5049
    51       AddVariableInfo(new Core.VariableInfo("TrainingSamplesStart", "TrainingSamplesStart", typeof(IntData), Core.VariableKind.New));
     50      AddVariableInfo(new VariableInfo("TrainingSamplesStart", "TrainingSamplesStart", typeof(IntData), VariableKind.New));
    5251      GetVariableInfo("TrainingSamplesStart").Local = true;
    53       AddVariable(new Core.Variable("TrainingSamplesStart", new IntData()));
     52      AddVariable(new Variable("TrainingSamplesStart", new IntData()));
    5453
    55       AddVariableInfo(new Core.VariableInfo("TrainingSamplesEnd", "TrainingSamplesEnd", typeof(IntData), Core.VariableKind.New));
     54      AddVariableInfo(new VariableInfo("TrainingSamplesEnd", "TrainingSamplesEnd", typeof(IntData), VariableKind.New));
    5655      GetVariableInfo("TrainingSamplesEnd").Local = true;
    57       AddVariable(new Core.Variable("TrainingSamplesEnd", new IntData()));
     56      AddVariable(new Variable("TrainingSamplesEnd", new IntData()));
    5857
    59       AddVariableInfo(new Core.VariableInfo("ValidationSamplesStart", "ValidationSamplesStart", typeof(IntData), Core.VariableKind.New));
     58      AddVariableInfo(new VariableInfo("ValidationSamplesStart", "ValidationSamplesStart", typeof(IntData), VariableKind.New));
    6059      GetVariableInfo("ValidationSamplesStart").Local = true;
    61       AddVariable(new Core.Variable("ValidationSamplesStart", new IntData()));
     60      AddVariable(new Variable("ValidationSamplesStart", new IntData()));
    6261
    63       AddVariableInfo(new Core.VariableInfo("ValidationSamplesEnd", "ValidationSamplesEnd", typeof(IntData), Core.VariableKind.New));
     62      AddVariableInfo(new VariableInfo("ValidationSamplesEnd", "ValidationSamplesEnd", typeof(IntData), VariableKind.New));
    6463      GetVariableInfo("ValidationSamplesEnd").Local = true;
    65       AddVariable(new Core.Variable("ValidationSamplesEnd", new IntData()));
     64      AddVariable(new Variable("ValidationSamplesEnd", new IntData()));
    6665
    67       AddVariableInfo(new Core.VariableInfo("TestSamplesStart", "TestSamplesStart", typeof(IntData), Core.VariableKind.New));
     66      AddVariableInfo(new VariableInfo("TestSamplesStart", "TestSamplesStart", typeof(IntData), VariableKind.New));
    6867      GetVariableInfo("TestSamplesStart").Local = true;
    69       AddVariable(new Core.Variable("TestSamplesStart", new IntData()));
     68      AddVariable(new Variable("TestSamplesStart", new IntData()));
    7069
    71       AddVariableInfo(new Core.VariableInfo("TestSamplesEnd", "TestSamplesEnd", typeof(IntData), Core.VariableKind.New));
     70      AddVariableInfo(new VariableInfo("TestSamplesEnd", "TestSamplesEnd", typeof(IntData), VariableKind.New));
    7271      GetVariableInfo("TestSamplesEnd").Local = true;
    73       AddVariable(new Core.Variable("TestSamplesEnd", new IntData()));
     72      AddVariable(new Variable("TestSamplesEnd", new IntData()));
    7473    }
    7574
    76     public override Core.IView CreateView() {
     75    public override IView CreateView() {
    7776      return new ProblemInjectorView(this);
    7877    }
    7978
    80     public override Core.IOperation Apply(Core.IScope scope) {
    81       foreach(Core.VariableInfo info in VariableInfos) {
     79    public override IOperation Apply(IScope scope) {
     80      foreach(VariableInfo info in VariableInfos) {
    8281        if(info.Local) {
    83           Core.IVariable var = GetVariable(info.FormalName);
    84           if(var != null) scope.AddVariable(new Core.Variable(info.ActualName, (Core.IItem)var.Value.Clone()));
     82          IVariable var = GetVariable(info.FormalName);
     83          if(var != null) scope.AddVariable(new Variable(info.ActualName, (IItem)var.Value.Clone()));
    8584        }
    8685      }
  • trunk/sources/HeuristicLab.Modeling/3.2/ProblemInjectorView.Designer.cs

    r1854 r1856  
    2020#endregion
    2121
    22 namespace HeuristicLab.GP.StructureIdentification {
     22namespace HeuristicLab.Modeling {
    2323  partial class ProblemInjectorView {
    2424    /// <summary>
  • trunk/sources/HeuristicLab.Modeling/3.2/ProblemInjectorView.cs

    r1854 r1856  
    2929using HeuristicLab.Core;
    3030using HeuristicLab.Data;
    31 using HeuristicLab.Operators;
    3231using HeuristicLab.DataAnalysis;
    3332
    34 namespace HeuristicLab.GP.StructureIdentification {
     33namespace HeuristicLab.Modeling {
    3534  public partial class ProblemInjectorView : ViewBase {
    3635    public ProblemInjector ProblemInjector {
  • trunk/sources/HeuristicLab.Modeling/3.2/TimeSeriesProblemInjector.cs

    r1854 r1856  
    2424using System.Text;
    2525using System.Xml;
    26 using Core = HeuristicLab.Core;
     26using HeuristicLab.Core;
    2727using HeuristicLab.Data;
    28 using HeuristicLab.Operators;
    2928using HeuristicLab.DataAnalysis;
    3029
    31 namespace HeuristicLab.GP.StructureIdentification.TimeSeries {
    32   public class ProblemInjector : HeuristicLab.GP.StructureIdentification.ProblemInjector {
     30namespace HeuristicLab.Modeling {
     31  public class TimeSeriesProblemInjector : ProblemInjector {
    3332
    3433    public override string Description {
    3534      get {
    36         return "Problem injector for time series structure identification.";
     35        return "Problem injector for time series problems.";
    3736      }
    3837    }
    3938
    40     public ProblemInjector()
     39    public TimeSeriesProblemInjector()
    4140      : base() {
    4241      AddVariableInfo(new Core.VariableInfo("Autoregressive", "Autoregressive modelling includes previous values of the target variable to predict future values.", typeof(BoolData), Core.VariableKind.New));
Note: See TracChangeset for help on using the changeset viewer.