Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/27/11 15:31:51 (13 years ago)
Author:
mkommend
Message:

#1600: Added possibility to create regression solutions from regression models.

Location:
trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/NeuralNetwork
Files:
2 edited

Legend:

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

    r6580 r6603  
    2222using System;
    2323using System.Collections.Generic;
    24 using System.IO;
    2524using System.Linq;
    26 using System.Text;
    2725using HeuristicLab.Common;
    2826using HeuristicLab.Core;
    2927using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    3028using HeuristicLab.Problems.DataAnalysis;
    31 using SVM;
    3229
    3330namespace HeuristicLab.Algorithms.DataAnalysis {
     
    147144    }
    148145
     146    public INeuralNetworkEnsembleRegressionSolution CreateRegressionSolution(IRegressionProblemData problemData) {
     147      return new NeuralNetworkEnsembleRegressionSolution(problemData, this);
     148    }
     149    IRegressionSolution IRegressionModel.CreateRegressionSolution(IRegressionProblemData problemData) {
     150      return CreateRegressionSolution(problemData);
     151    }
     152
    149153    #region events
    150154    public event EventHandler Changed;
  • trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/NeuralNetwork/NeuralNetworkModel.cs

    r6577 r6603  
    2222using System;
    2323using System.Collections.Generic;
    24 using System.IO;
    2524using System.Linq;
    26 using System.Text;
    2725using HeuristicLab.Common;
    2826using HeuristicLab.Core;
    2927using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    3028using HeuristicLab.Problems.DataAnalysis;
    31 using SVM;
    3229
    3330namespace HeuristicLab.Algorithms.DataAnalysis {
     
    140137    }
    141138
     139    public INeuralNetworkRegressionSolution CreateRegressionSolution(IRegressionProblemData problemData) {
     140      return new NeuralNetworkRegressionSolution(problemData, this);
     141    }
     142    IRegressionSolution IRegressionModel.CreateRegressionSolution(IRegressionProblemData problemData) {
     143      return CreateRegressionSolution(problemData);
     144    }
     145
    142146    #region events
    143147    public event EventHandler Changed;
Note: See TracChangeset for help on using the changeset viewer.