@Override public void setFactory(ComponentFactory factory) { // TODO unify this code with init() for now, it's used by S4 App // dynamic binding theoretically will solve this problem builder = new TopologyBuilder(factory); logger.debug("Successfully instantiated TopologyBuilder"); builder.initTopology(arffFileOption.getValue()); logger.debug("Successfully initialized SAMOA topology with name {}", arffFileOption.getValue()); }
@Override public void setFactory(ComponentFactory factory) { // TODO unify this code with init() for now, it's used by S4 App // dynamic binding theoretically will solve this problem builder = new TopologyBuilder(factory); logger.debug("Successfully instantiated TopologyBuilder"); builder.initTopology(arffFileOption.getValue()); logger.debug("Successfully initialized SAMOA topology with name {}", arffFileOption.getValue()); }
@Override protected Object doMainTask(TaskMonitor monitor, ObjectRepository repository) { // Create an array to summarize the selected measures boolean[] measureCollection = new boolean[8]; measureCollection[0] = this.generalEvalOption.isSet(); measureCollection[1] = this.f1Option.isSet(); measureCollection[2] = this.entropyOption.isSet(); measureCollection[3] = this.cmmOption.isSet(); measureCollection[4] = this.ssqOption.isSet(); measureCollection[5] = this.separationOption.isSet(); measureCollection[6] = this.silhouetteOption.isSet(); measureCollection[7] = this.statisticalOption.isSet(); BatchCmd.runBatch((ClusteringStream) getPreparedClassOption(this.streamOption), (AbstractClusterer) getPreparedClassOption(this.learnerOption), measureCollection, (int) this.instanceLimitOption.getValue(), (String) dumpFileOption.getValue()); LearningCurve learningCurve = new LearningCurve("EvaluateClustering does not support custom output file (> [filename]).\n" + "Check out the dump file to see the results (if you haven't specified, dumpClustering.csv by default)."); //System.out.println(learner.toString()); return learningCurve; } }