Changeset 13086
- Timestamp:
- 10/29/15 18:45:15 (9 years ago)
- Location:
- branches/ClassificationModelComparison
- Files:
-
- 6 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); -
branches/ClassificationModelComparison/HeuristicLab.Problems.DataAnalysis.Views/3.4/Classification/ClassificationSolutionComparisonView.cs
r10560 r13086 81 81 82 82 IClassificationProblemData problemData = Content.ProblemData; 83 Datasetdataset = problemData.Dataset;83 var dataset = problemData.Dataset; 84 84 solutions = new List<IClassificationSolution>() { Content }; 85 85 solutions.AddRange(GenerateClassificationSolutions(problemData)); -
branches/ClassificationModelComparison/HeuristicLab.Problems.DataAnalysis.Views/3.4/HeuristicLab.Problems.DataAnalysis.Views-3.4.csproj
r13082 r13086 154 154 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.PluginInfrastructure-3.3.dll</HintPath> 155 155 </Reference> 156 <Reference Include="HeuristicLab.Problems.DataAnalysis.Symbolic-3.4, Version=3.4.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 157 <SpecificVersion>False</SpecificVersion> 158 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Problems.DataAnalysis.Symbolic-3.4.dll</HintPath> 159 <Private>False</Private> 160 </Reference> 161 <Reference Include="HeuristicLab.Problems.DataAnalysis.Symbolic.Regression-3.4, Version=3.4.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 162 <SpecificVersion>False</SpecificVersion> 163 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Problems.DataAnalysis.Symbolic.Regression-3.4.dll</HintPath> 164 <Private>False</Private> 165 </Reference> 156 166 <Reference Include="HeuristicLab.Random-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL" /> 157 167 <Reference Include="HeuristicLab.Visualization.ChartControlsExtensions-3.3"> … … 424 434 <Project>{2E782078-FA81-4B70-B56F-74CE38DAC6C8}</Project> 425 435 <Name>HeuristicLab.Algorithms.DataAnalysis-3.4</Name> 426 </ProjectReference>427 <ProjectReference Include="..\..\HeuristicLab.Problems.DataAnalysis.Symbolic.Regression\3.4\HeuristicLab.Problems.DataAnalysis.Symbolic.Regression-3.4.csproj">428 <Project>{5AC82412-911B-4FA2-A013-EDC5E3F3FCC2}</Project>429 <Name>HeuristicLab.Problems.DataAnalysis.Symbolic.Regression-3.4</Name>430 </ProjectReference>431 <ProjectReference Include="..\..\HeuristicLab.Problems.DataAnalysis.Symbolic\3.4\HeuristicLab.Problems.DataAnalysis.Symbolic-3.4.csproj">432 <Project>{3D28463F-EC96-4D82-AFEE-38BE91A0CA00}</Project>433 <Name>HeuristicLab.Problems.DataAnalysis.Symbolic-3.4</Name>434 436 </ProjectReference> 435 437 <ProjectReference Include="..\..\HeuristicLab.Problems.DataAnalysis\3.4\HeuristicLab.Problems.DataAnalysis-3.4.csproj"> -
branches/ClassificationModelComparison/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification/ConstantClassificationModel.cs
r9119 r13086 51 51 } 52 52 53 public IEnumerable<double> GetEstimatedClassValues( Dataset dataset, IEnumerable<int> rows) {53 public IEnumerable<double> GetEstimatedClassValues(IDataset dataset, IEnumerable<int> rows) { 54 54 return rows.Select(row => Constant); 55 55 }
Note: See TracChangeset
for help on using the changeset viewer.