Ignore:
Timestamp:
05/24/12 11:07:05 (10 years ago)
Author:
mkommend
Message:

#1081: Implemented CSV problems instances provider for time series prognosis problems.

Location:
branches/HeuristicLab.TimeSeries/HeuristicLab.Problems.Instances.DataAnalysis/3.3/TimeSeries
Files:
3 added
1 copied

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.TimeSeries/HeuristicLab.Problems.Instances.DataAnalysis/3.3/TimeSeries/TimeSeriesPrognosisInstanceProvider.cs

    r7889 r7890  
    2929
    3030namespace HeuristicLab.Problems.Instances.DataAnalysis {
    31   public abstract class RegressionInstanceProvider : IProblemInstanceProvider<IRegressionProblemData> {
     31  public abstract class TimeSeriesPrognosisInstanceProvider : IProblemInstanceProvider<ITimeSeriesPrognosisProblemData> {
    3232
    33     public IRegressionProblemData LoadData(string path) {
     33    public ITimeSeriesPrognosisProblemData LoadData(string path) {
    3434      TableFileParser csvFileParser = new TableFileParser();
    3535      csvFileParser.Parse(path);
     
    4040      IEnumerable<string> allowedInputVars = csvFileParser.VariableNames.Where(x => !x.Equals(targetVar));
    4141
    42       IRegressionProblemData regData = new RegressionProblemData(dataset, allowedInputVars, targetVar);
     42      ITimeSeriesPrognosisProblemData regData = new TimeSeriesPrognosisProblemData(dataset, allowedInputVars, new List<string> { targetVar });
    4343
    4444      int trainingPartEnd = csvFileParser.Rows * 2 / 3;
     
    5858    }
    5959
    60     public void SaveData(IRegressionProblemData instance, string path) {
     60    public void SaveData(ITimeSeriesPrognosisProblemData instance, string path) {
    6161      StringBuilder strBuilder = new StringBuilder();
    6262
     
    8383
    8484    public abstract IEnumerable<IDataDescriptor> GetDataDescriptors();
    85     public abstract IRegressionProblemData LoadData(IDataDescriptor descriptor);
     85    public abstract ITimeSeriesPrognosisProblemData LoadData(IDataDescriptor descriptor);
    8686
    8787    public abstract string Name { get; }
Note: See TracChangeset for help on using the changeset viewer.