/** * It launches the algorithm * * @param lanzar Chc execute the algorithm class * @param fich String file's name */ public void execute(Chc lanzar, String fich) { if (somethingWrong) { // We do not execute the program System.err.println( "An error was found, either the data-set have numerical values or missing values."); System.err.println("Aborting the program"); // We should not use the statement: System.exit(-1); } else { // We do here the algorithm's operations // nClasses = train.getnOutputs(); // Finally we should fill the training and test output files doOutput(this.train, this.outputTr, lanzar); doOutput(this.test, this.outputTst, lanzar); EscribeBCLing e = new EscribeBCLing(); e.write( fich, lanzar.getEc_tra(), lanzar.getEc_tst(), lanzar.getP().getE().base(), lanzar.getP()); System.out.println("Algorithm Finished"); } }