Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/10/09 14:11:37 (15 years ago)
Author:
gkronber
Message:

Added properties for the separation in training/validation/test set to HL.Modeling.IModel. #712

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.SupportVectorMachines/3.2/SupportVectorRegression.cs

    r2251 r2270  
    162162      modelScopeCreator.AddVariable(new HeuristicLab.Core.Variable("SubScopes", new IntData(1)));
    163163      main.AddSubOperator(modelScopeCreator);
    164      
     164
    165165      SequentialSubScopesProcessor seqSubScopesProc = new SequentialSubScopesProcessor();
    166166      IOperator modelProcessor = CreateModelProcessor();
     
    238238      nuBranch.Name = "NuLoop";
    239239      nuBranch.GetVariableInfo("Condition").ActualName = "RepeatNuLoop";
    240      
     240
    241241      nuBranch.AddSubOperator(nuLoop);
    242242      nuLoop.AddSubOperator(nuBranch);
     
    362362      progOp.RemoveVariableInfo("Result");
    363363      progOp.AddVariableInfo(new VariableInfo("Value", "Value", typeof(IntData), VariableKind.In | VariableKind.Out));
    364       progOp.Code = "Value.Data = "+value+";";
     364      progOp.Code = "Value.Data = " + value + ";";
    365365      progOp.GetVariableInfo("Value").ActualName = paramName;
    366366      return progOp;
     
    443443      model.Dataset = ds;
    444444      model.TargetVariable = ds.GetVariableName(bestModelScope.GetVariableValue<IntData>("TargetVariable", true).Data);
     445      model.TrainingSamplesStart = bestModelScope.GetVariableValue<IntData>("TrainingSamplesStart", true).Data;
     446      model.TrainingSamplesEnd = bestModelScope.GetVariableValue<IntData>("TrainingSamplesEnd", true).Data;
     447      model.ValidationSamplesStart = bestModelScope.GetVariableValue<IntData>("ValidationSamplesStart", true).Data;
     448      model.ValidationSamplesEnd = bestModelScope.GetVariableValue<IntData>("ValidationSamplesEnd", true).Data;
     449      model.TestSamplesStart = bestModelScope.GetVariableValue<IntData>("TestSamplesStart", true).Data;
     450      model.TestSamplesEnd = bestModelScope.GetVariableValue<IntData>("TestSamplesEnd", true).Data;
    445451
    446452      ItemList evaluationImpacts = bestModelScope.GetVariableValue<ItemList>("VariableEvaluationImpacts", false);
Note: See TracChangeset for help on using the changeset viewer.