- Timestamp:
- 10/29/15 18:45:15 (9 years ago)
- Location:
- branches/ClassificationModelComparison/HeuristicLab.Algorithms.DataAnalysis/3.4/Linear
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ClassificationModelComparison/HeuristicLab.Algorithms.DataAnalysis/3.4/Linear/OneR.cs
r10569 r13086 77 77 78 78 public static IClassificationSolution CreateOneRSolution(IClassificationProblemData problemData, int minBucketSize, IRandom random) { 79 Datasetdataset = problemData.Dataset;79 var dataset = problemData.Dataset; 80 80 var trainingIndices = problemData.TrainingIndices; 81 81 int rowCount = trainingIndices.Count(); -
branches/ClassificationModelComparison/HeuristicLab.Algorithms.DataAnalysis/3.4/Linear/OneR/OneRClassificationModel.cs
r9135 r13086 84 84 // uses sorting to return the values in the order of rows, instead of using nested for loops 85 85 // to avoid O(n²) runtime 86 public IEnumerable<double> GetEstimatedClassValues( Dataset dataset, IEnumerable<int> rows) {86 public IEnumerable<double> GetEstimatedClassValues(IDataset dataset, IEnumerable<int> rows) { 87 87 var values = dataset.GetDoubleValues(Variable, rows).ToArray(); 88 88 var rowsArray = rows.ToArray(); -
branches/ClassificationModelComparison/HeuristicLab.Algorithms.DataAnalysis/3.4/Linear/ZeroR.cs
r10568 r13086 56 56 57 57 public static IClassificationSolution CreateZeroRSolution(IClassificationProblemData problemData) { 58 Datasetdataset = problemData.Dataset;58 var dataset = problemData.Dataset; 59 59 string target = problemData.TargetVariable; 60 60 var targetValues = dataset.GetDoubleValues(target, problemData.TrainingIndices);
Note: See TracChangeset
for help on using the changeset viewer.