Changeset 14099 for trunk/sources/HeuristicLab.Problems.DataAnalysis
- Timestamp:
- 07/18/16 16:21:24 (8 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/HeuristicLab.Problems.DataAnalysis-3.4.csproj
r14095 r14099 176 176 <Compile Include="Interfaces\ITransformation.cs" /> 177 177 <Compile Include="Interfaces\ITransformationMapper.cs" /> 178 <Compile Include="Interfaces\Regression\IConfidenceRegressionModel.cs" /> 179 <Compile Include="Interfaces\Regression\IConfidenceRegressionSolution.cs" /> 178 180 <Compile Include="Interfaces\Regression\IRegressionEnsembleModel.cs"> 179 181 <SubType>Code</SubType> -
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Regression/ConfidenceBoundRegressionSolution.cs
r14095 r14099 30 30 /// </summary> 31 31 [StorableClass] 32 public class Confidence BoundRegressionSolution : RegressionSolution, IConfidenceBoundRegressionSolution {32 public class ConfidenceRegressionSolution : RegressionSolution, IConfidenceRegressionSolution { 33 33 protected readonly Dictionary<int, double> varianceEvaluationCache; 34 34 35 public new IConfidence BoundRegressionModel Model {36 get { return (IConfidence BoundRegressionModel)base.Model; }35 public new IConfidenceRegressionModel Model { 36 get { return (IConfidenceRegressionModel)base.Model; } 37 37 set { base.Model = value; } 38 38 } 39 39 40 40 [StorableConstructor] 41 protected Confidence BoundRegressionSolution(bool deserializing)41 protected ConfidenceRegressionSolution(bool deserializing) 42 42 : base(deserializing) { 43 43 varianceEvaluationCache = new Dictionary<int, double>(); 44 44 } 45 protected Confidence BoundRegressionSolution(ConfidenceBoundRegressionSolution original, Cloner cloner)45 protected ConfidenceRegressionSolution(ConfidenceRegressionSolution original, Cloner cloner) 46 46 : base(original, cloner) { 47 47 varianceEvaluationCache = new Dictionary<int, double>(original.varianceEvaluationCache); 48 48 } 49 public Confidence BoundRegressionSolution(IConfidenceBoundRegressionModel model, IRegressionProblemData problemData)49 public ConfidenceRegressionSolution(IConfidenceRegressionModel model, IRegressionProblemData problemData) 50 50 : base(model, problemData) { 51 51 varianceEvaluationCache = new Dictionary<int, double>(problemData.Dataset.Rows); … … 53 53 54 54 public override IDeepCloneable Clone(Cloner cloner) { 55 return new Confidence BoundRegressionSolution(this, cloner);55 return new ConfidenceRegressionSolution(this, cloner); 56 56 } 57 57 -
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Interfaces/Regression/IRegressionModel.cs
r14095 r14099 21 21 22 22 using System.Collections.Generic; 23 23 24 namespace HeuristicLab.Problems.DataAnalysis { 24 25 public interface IRegressionModel : IDataAnalysisModel { … … 27 28 string TargetVariable { get; } 28 29 } 29 30 public interface IConfidenceBoundRegressionModel : IRegressionModel {31 IEnumerable<double> GetEstimatedVariances(IDataset dataset, IEnumerable<int> rows);32 }33 30 } -
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Interfaces/Regression/IRegressionSolution.cs
r14095 r14099 44 44 double TestRootMeanSquaredError { get; } 45 45 } 46 47 public interface IConfidenceBoundRegressionSolution : IRegressionSolution {48 new IConfidenceBoundRegressionModel Model { get; }49 50 IEnumerable<double> EstimatedVariances { get; }51 IEnumerable<double> EstimatedTrainingVariances { get; }52 IEnumerable<double> EstimatedTestVariances { get; }53 IEnumerable<double> GetEstimatedVariances(IEnumerable<int> rows);54 }55 46 }
Note: See TracChangeset
for help on using the changeset viewer.