示例#1
0
        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());
        }
示例#2
0
 public Runtime Search(IBaseAttributeSelectionEvaluator <ASEvaluation> eval)
 {
     return(rt.Filters.UnsupervisedAttribute.Remove.
            AttributeIndicesArray(SearchIndexes(eval)).
            InvertSelection(true).RunFilter());
 }