public int[] SearchIndexes(IBaseAttributeSelectionEvaluator <ASEvaluation> eval) { var eimpl = eval.Impl; eimpl.buildEvaluator(rt.Impl); var indexes = new List <int>(Impl.search(eimpl, rt.Impl)); var classidx = rt.ClassIndex; indexes.Add(classidx); Console.WriteLine("Keeping indexes: " + String.Join(", ", indexes)); return(indexes.ToArray()); }
public Runtime Search(IBaseAttributeSelectionEvaluator <ASEvaluation> eval) { return(rt.Filters.UnsupervisedAttribute.Remove. AttributeIndicesArray(SearchIndexes(eval)). InvertSelection(true).RunFilter()); }