Changeset 6654
- Timestamp:
- 08/12/11 08:19:02 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification/ClassificationProblemData.cs
r6440 r6654 267 267 private static IEnumerable<string> CheckVariablesForPossibleTargetVariables(Dataset dataset) { 268 268 int maxSamples = Math.Min(InspectedRowsToDetermineTargets, dataset.Rows); 269 var validTargetVariables = from v in dataset.VariableNames270 let DistinctValues = dataset.GetVariableValues(v)271 .Take(maxSamples)272 .Distinct()273 .Count()274 where DistinctValues < MaximumNumberOfClasses275 select v;269 var validTargetVariables = (from v in dataset.VariableNames 270 let distinctValues = dataset.GetEnumeratedVariableValues(v) 271 .Take(maxSamples) 272 .Distinct() 273 .Count() 274 where distinctValues < MaximumNumberOfClasses 275 select v).ToArray(); 276 276 277 277 if (!validTargetVariables.Any()) … … 283 283 284 284 private void ResetTargetVariableDependentMembers() { 285 Der gisterParameterEvents();285 DeregisterParameterEvents(); 286 286 287 287 classNames = null; … … 357 357 ClassificationPenaltiesParameter.Value.ItemChanged += new EventHandler<EventArgs<int, int>>(MatrixParameter_ItemChanged); 358 358 } 359 private void Der gisterParameterEvents() {359 private void DeregisterParameterEvents() { 360 360 TargetVariableParameter.ValueChanged -= new EventHandler(TargetVariableParameter_ValueChanged); 361 361 ClassNamesParameter.Value.Reset -= new EventHandler(Parameter_ValueChanged);
Note: See TracChangeset
for help on using the changeset viewer.