Free cookie consent management tool by TermsFeed Policy Generator

Changeset 14109 for trunk


Ignore:
Timestamp:
07/19/16 14:21:31 (8 years ago)
Author:
mkommend
Message:

#2627: Adapted constant name for result and renamed the infix formatter / parser unit test.

Location:
trunk/sources
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/NonlinearRegression/NonlinearRegression.cs

    r14024 r14109  
    4242  [StorableClass]
    4343  public sealed class NonlinearRegression : FixedDataAnalysisAlgorithm<IRegressionProblem> {
    44     private const string LinearRegressionModelResultName = "Regression solution";
     44    private const string RegressionSolutionResultName = "Regression solution";
    4545    private const string ModelStructureParameterName = "Model structure";
    4646    private const string IterationsParameterName = "Iterations";
     
    8585    protected override void Run() {
    8686      var solution = CreateRegressionSolution(Problem.ProblemData, ModelStructure, Iterations);
    87       Results.Add(new Result(LinearRegressionModelResultName, "The nonlinear regression solution.", solution));
     87      Results.Add(new Result(RegressionSolutionResultName, "The nonlinear regression solution.", solution));
    8888      Results.Add(new Result("Root mean square error (train)", "The root of the mean of squared errors of the regression solution on the training set.", new DoubleValue(solution.TrainingRootMeanSquaredError)));
    8989      Results.Add(new Result("Root mean square error (test)", "The root of the mean of squared errors of the regression solution on the test set.", new DoubleValue(solution.TestRootMeanSquaredError)));
  • trunk/sources/HeuristicLab.Tests/HeuristicLab.Problems.DataAnalysis.Symbolic-3.4/InfixExpressionParserTest.cs

    r14024 r14109  
    3131    [TestCategory("Problems.DataAnalysis.Symbolic")]
    3232    [TestProperty("Time", "short")]
    33     public void StandardInterpreterTestTypeCoherentGrammarPerformance() {
     33    public void InfixExpressionParserTestFormatting() {
    3434      var formatter = new InfixExpressionFormatter();
    3535      var parser = new InfixExpressionParser();
     
    3737      Console.WriteLine(formatter.Format(parser.Parse("3*3")));
    3838      Console.WriteLine(formatter.Format(parser.Parse("3 * 4")));
    39       Console.WriteLine(formatter.Format(parser.Parse("123E-03")));
     39      Console.WriteLine(formatter.Format(parser.Parse("123E-03")  ));
    4040      Console.WriteLine(formatter.Format(parser.Parse("123e-03")));
    4141      Console.WriteLine(formatter.Format(parser.Parse("123e+03")));
Note: See TracChangeset for help on using the changeset viewer.