Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/24/12 15:22:13 (13 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
Location:
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Clustering
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Clustering/ClusteringProblem.cs

    r7259 r7758  
    3838      ProblemData = new ClusteringProblemData();
    3939    }
    40 
    41     public override void ImportProblemDataFromFile(string fileName) {
    42       ClusteringProblemData problemData = ClusteringProblemData.ImportFromFile(fileName);
    43       ProblemData = problemData;
    44     }
    4540  }
    4641}
  • branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Clustering/ClusteringProblemData.cs

    r7603 r7758  
    2121
    2222using System.Collections.Generic;
    23 using System.IO;
    2423using HeuristicLab.Common;
    2524using HeuristicLab.Core;
    2625using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    27 using HeuristicLab.Problems.Instances;
    2826
    2927namespace HeuristicLab.Problems.DataAnalysis {
     
    9189      : base(dataset, allowedInputVariables) {
    9290    }
    93 
    94 
    95     #region Import from file
    96     public static ClusteringProblemData ImportFromFile(string fileName) {
    97       TableFileParser csvFileParser = new TableFileParser();
    98       csvFileParser.Parse(fileName);
    99 
    100       Dataset dataset = new Dataset(csvFileParser.VariableNames, csvFileParser.Values);
    101       dataset.Name = Path.GetFileName(fileName);
    102 
    103       ClusteringProblemData problemData = new ClusteringProblemData(dataset, dataset.DoubleVariables);
    104       problemData.Name = "Data imported from " + Path.GetFileName(fileName);
    105       return problemData;
    106     }
    107     #endregion
    10891  }
    10992}
Note: See TracChangeset for help on using the changeset viewer.