Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/24/12 15:22:13 (12 years ago)
Author:
sforsten
Message:

#1784:

  • deleted not needed Consumer in ProblemInstanceProvider and IProblemInstanceProvider
  • changed protection level of exporter and consumer in ProblemInstanceProviderViewGeneric
  • renamed property FileExtension to FileName in ResourceClassificationInstanceProvider and ResourceRegressionInstanceProvider
  • deleted ImportProblemDataFromFile method from IDataAnalysisProblem and all classes and interfaces, which implement this method
  • removed unnecessary yield return in GetDoubleValues in the Dataset. Now it's a normal return statement
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Regression/RegressionProblemData.cs

    r7603 r7758  
    2222using System;
    2323using System.Collections.Generic;
    24 using System.IO;
    2524using System.Linq;
    2625using HeuristicLab.Common;
     
    2928using HeuristicLab.Parameters;
    3029using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    31 using HeuristicLab.Problems.Instances;
    3230
    3331namespace HeuristicLab.Problems.DataAnalysis {
     
    137135      OnChanged();
    138136    }
    139 
    140     #region Import from file
    141     public static RegressionProblemData ImportFromFile(string fileName) {
    142       TableFileParser csvFileParser = new TableFileParser();
    143       csvFileParser.Parse(fileName);
    144 
    145       Dataset dataset = new Dataset(csvFileParser.VariableNames, csvFileParser.Values);
    146       dataset.Name = Path.GetFileName(fileName);
    147 
    148       RegressionProblemData problemData = new RegressionProblemData(dataset, dataset.DoubleVariables.Skip(1), dataset.DoubleVariables.First());
    149       problemData.Name = "Data imported from " + Path.GetFileName(fileName);
    150       return problemData;
    151     }
    152     #endregion
    153137  }
    154138}
Note: See TracChangeset for help on using the changeset viewer.