Free cookie consent management tool by TermsFeed Policy Generator

Changeset 2369 for trunk


Ignore:
Timestamp:
09/18/09 20:27:27 (15 years ago)
Author:
gkronber
Message:

Added enum ModelType (classification, regression, time-series-prognosis). #756

Location:
trunk/sources/HeuristicLab.Modeling/3.2
Files:
1 added
5 edited

Legend:

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

    r2355 r2369  
    4343      set { targetVariable = value; }
    4444    }
     45
     46    public ModelType Type { get; set; }
    4547
    4648    private List<string> inputVariables = new List<string>();
  • trunk/sources/HeuristicLab.Modeling/3.2/DefaultClassificationOperators.cs

    r2356 r2369  
    8585      model.SetResult("ValidationAccuracy", modelScope.GetVariableValue<DoubleData>("ValidationAccuracy", false).Data);
    8686      model.SetResult("TestAccuracy", modelScope.GetVariableValue<DoubleData>("TestAccuracy", false).Data);
     87      model.Type = ModelType.Classification;
    8788      return model;
    8889    }
  • trunk/sources/HeuristicLab.Modeling/3.2/DefaultRegressionOperators.cs

    r2356 r2369  
    156156      model.Dataset = ds;
    157157      model.TargetVariable = ds.GetVariableName(modelScope.GetVariableValue<IntData>("TargetVariable", true).Data);
     158      model.Type = ModelType.Regression;
    158159      model.TrainingSamplesStart = modelScope.GetVariableValue<IntData>("TrainingSamplesStart", true).Data;
    159160      model.TrainingSamplesEnd = modelScope.GetVariableValue<IntData>("TrainingSamplesEnd", true).Data;
  • trunk/sources/HeuristicLab.Modeling/3.2/DefaultTimeSeriesOperators.cs

    r2356 r2369  
    7272      model.SetResult("ValidationTheilInequalityCoefficient", modelScope.GetVariableValue<DoubleData>("ValidationTheilInequalityCoefficient", true).Data);
    7373      model.SetResult("TestTheilInequalityCoefficient", modelScope.GetVariableValue<DoubleData>("TestTheilInequalityCoefficient", true).Data);
    74 
     74      model.Type = ModelType.TimeSeriesPrognosis;
    7575      return model;
    7676    }
  • trunk/sources/HeuristicLab.Modeling/3.2/IAnalyzerModel.cs

    r2355 r2369  
    3131    Dataset Dataset { get; set; }
    3232    string TargetVariable { get; set; }
     33    ModelType Type { get; set; }
    3334    IEnumerable<string> InputVariables { get; }
    3435    IEnumerable<KeyValuePair<string, double>> Results { get; }
Note: See TracChangeset for help on using the changeset viewer.