/** * Main method for testing this class. * * @param args the options */ public static void main(String[] args) { runEvaluator(new CfsSubsetEval(), args); } }
/** Creates a default CfsSubsetEval */ public ASEvaluation getEvaluator() { return new CfsSubsetEval(); }
/** Creates a default CfsSubsetEval */ public ASEvaluation getEvaluator() { return new CfsSubsetEval(); }
/** * Main method for testing this class. * * @param args the options */ public static void main(String[] args) { runEvaluator(new CfsSubsetEval(), args); } }
/** Creates a default CfsSubsetEval */ public ASEvaluation getEvaluator() { return new CfsSubsetEval(); }
/** Creates a default CfsSubsetEval */ public ASEvaluation getEvaluator() { return new CfsSubsetEval(); }
/** Creates a default CfsSubsetEval */ public ASEvaluation getEvaluator() { return new CfsSubsetEval(); }
/** Creates a default CfsSubsetEval */ public ASEvaluation getEvaluator() { return new CfsSubsetEval(); }
/** Creates a default CfsSubsetEval */ public ASEvaluation getEvaluator() { return new CfsSubsetEval(); }
/** Creates a default CfsSubsetEval */ public ASEvaluation getEvaluator() { return new CfsSubsetEval(); }
/** * returns the default attribute evalautor (fully configured) for the * attribute selection panel. * * @return the default attribute evaluator, CfsSubsetEval by default */ public static Object getASEvaluator() { Object result; result = getObject("ASEvaluation", weka.attributeSelection.CfsSubsetEval.class.getName(), weka.attributeSelection.ASEvaluation.class); if (result == null) { result = new weka.attributeSelection.CfsSubsetEval(); } return result; }
/** * returns the default attribute evalautor (fully configured) for the * attribute selection panel. * * @return the default attribute evaluator, CfsSubsetEval by default */ public static Object getASEvaluator() { Object result; result = getObject("ASEvaluation", weka.attributeSelection.CfsSubsetEval.class.getName(), weka.attributeSelection.ASEvaluation.class); if (result == null) { result = new weka.attributeSelection.CfsSubsetEval(); } return result; }
/** * set options to their default values */ protected void resetOptions() { m_trainSelector = new weka.attributeSelection.AttributeSelection(); setEvaluator(new CfsSubsetEval()); setSearch(new BestFirst()); m_SelectedAttributes = null; }
/** * set options to their default values */ protected void resetOptions() { m_trainSelector = new weka.attributeSelection.AttributeSelection(); setEvaluator(new CfsSubsetEval()); setSearch(new BestFirst()); m_SelectedAttributes = null; }
/** * constructor. Sets defaults for each member varaible. Default attribute * evaluator is CfsSubsetEval; default search method is BestFirst. */ public AttributeSelection() { setFolds(10); setRanking(false); setXval(false); setSeed(1); setEvaluator(new CfsSubsetEval()); setSearch(new GreedyStepwise()); m_selectionResults = new StringBuffer(); m_selectedAttributeSet = null; m_attributeRanking = null; }
/** * constructor. Sets defaults for each member varaible. Default attribute * evaluator is CfsSubsetEval; default search method is BestFirst. */ public AttributeSelection() { setFolds(10); setRanking(false); setXval(false); setSeed(1); setEvaluator(new CfsSubsetEval()); setSearch(new GreedyStepwise()); m_selectionResults = new StringBuffer(); m_selectedAttributeSet = null; m_attributeRanking = null; }
.setValue(new weka.attributeSelection.CfsSubsetEval()); } else {
/** * Select attributes using BestFirst search to reduce * the number of parameters per instance of a dataset * * @param data input set of instances * @return resampled set of instances */ public static Instances selectAttributes(Instances data) { final AttributeSelection filter = new AttributeSelection(); Instances filteredIns = null; // Evaluator final CfsSubsetEval evaluator = new CfsSubsetEval(); evaluator.setMissingSeparate(true); // Assign evaluator to filter filter.setEvaluator(evaluator); // Search strategy: best first (default values) final BestFirst search = new BestFirst(); filter.setSearch(search); // Apply filter try { filter.setInputFormat(data); filteredIns = Filter.useFilter(data, filter); } catch (Exception e) { IJ.log("Error when resampling input data with selected attributes!"); e.printStackTrace(); } return filteredIns; }
/** * Select attributes using BestFirst search to reduce * the number of parameters per instance of a dataset * * @param data input set of instances * @return resampled set of instances */ public static Instances selectAttributes(Instances data) { final AttributeSelection filter = new AttributeSelection(); Instances filteredIns = null; // Evaluator final CfsSubsetEval evaluator = new CfsSubsetEval(); evaluator.setMissingSeparate(true); // Assign evaluator to filter filter.setEvaluator(evaluator); // Search strategy: best first (default values) final BestFirst search = new BestFirst(); filter.setSearch(search); // Apply filter try { filter.setInputFormat(data); filteredIns = Filter.useFilter(data, filter); } catch (Exception e) { IJ.log("Error when resampling input data with selected attributes!"); e.printStackTrace(); } return filteredIns; }
.setValue(new weka.attributeSelection.CfsSubsetEval()); } else {