Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/24/11 16:44:24 (14 years ago)
Author:
mkommend
Message:

#1418: worked on different ProblemData classes.

Location:
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis/3.4/Interfaces
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis/3.4/Interfaces/Classification/IClassificationProblemData.cs

    r5501 r5559  
    2020#endregion
    2121
     22using System;
    2223using System.Collections.Generic;
    2324namespace HeuristicLab.Problems.DataAnalysis {
    2425  public interface IClassificationProblemData : IDataAnalysisProblemData {
    25     string TargetVariable { get; }
    26     int NumberOfClasses { get; }
    27 
     26    string TargetVariable { get; set; }
    2827    IEnumerable<string> ClassNames { get; }
    2928    IEnumerable<double> ClassValues { get; }
     29    int Classes { get; }
    3030
    3131    string GetClassName(double classValue);
    3232    double GetClassValue(string className);
     33    void SetClassName(double classValue, string className);
    3334
    3435    double GetClassificationPenalty(string correctClass, string estimatedClass);
    3536    double GetClassificationPenalty(double correctClassValue, double estimatedClassValue);
     37    void SetClassificationPenalty(string correctClassName, string estimatedClassName, double penalty);
     38    void SetClassificationPenalty(double correctClassValue, double estimatedClassValue, double penalty);
     39
     40    event EventHandler ClassNamesChanged;
     41    event EventHandler ClassificationPenaltyChanged;
    3642  }
    3743}
  • branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis/3.4/Interfaces/IDataAnalysisProblemData.cs

    r5554 r5559  
    2929    IEnumerable<string> AllowedInputVariables { get; }
    3030
    31     int TrainingSamplesStart { get; set; }
    32     int TrainingSamplesEnd { get; set; }
    33     int TestSamplesStart { get; set; }
    34     int TestSamplesEnd { get; set; }
     31    bool AddAllowedInputVariable(string inputVariable);
     32    bool RemoveAllowedInputVariable(string inputVariable);
     33
     34    int TrainingPartitionStart { get; set; }
     35    int TrainingPartitionEnd { get; set; }
     36    int TestPartitionStart { get; set; }
     37    int TestPartitionEnd { get; set; }
    3538
    3639    IEnumerable<int> TrainingIndizes { get; }
  • branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis/3.4/Interfaces/Regression/IRegressionProblemData.cs

    r5496 r5559  
    2222namespace HeuristicLab.Problems.DataAnalysis {
    2323  public interface IRegressionProblemData : IDataAnalysisProblemData {
    24     string TargetVariable { get; }
     24    string TargetVariable { get; set; }
    2525  }
    2626}
Note: See TracChangeset for help on using the changeset viewer.