Package com.greentea.relaxation.jnmf.qualitycontrol

Examples of com.greentea.relaxation.jnmf.qualitycontrol.GuessedRealPair


      List<Comparable> notGuessedIds = new ArrayList<Comparable>();
      List<Comparable> guessedIds = new ArrayList<Comparable>();

      for (Comparable id : guessedRealPairs.keySet())
      {
         GuessedRealPair guessedRealPair = guessedRealPairs.get(id);
         if (!guessedRealPair.isGuessedEqualsReal())
         {
            notGuessedIds.add(id);

         }
         else
View Full Code Here


      List<Vector<Object>> notGuessedSamplesRows = new ArrayList<Vector<Object>>();

      int errors = 0;
      for (int i = 0; i < parentDataset.size(); ++i)
      {
         GuessedRealPair guessedRealPair = guessedRealPairs.get(parentDataset.get(i).get(0));

         List<Vector<Object>> rows = null;
         if (guessedRealPair.isGuessedEqualsReal())
         {
            rows = guessedSamplesRows;
         }
         else
         {
            rows = notGuessedSamplesRows;
            errors++;
         }

         Vector<Object> row = new Vector<Object>();

         Row input = parentDataset.get(i);

         for (int j = 0; j < metadata.getFirstOutColumnIndex(); ++j)
         {
            row.add(input.get(j));
         }

         row.add(outputColumn.getCategoryValueByIndex(guessedRealPair.getGuessed()));

         row.add(outputColumn.getCategoryValueByIndex(guessedRealPair.getReal()));

         rows.add(row);
      }

      for (Vector<Object> row : notGuessedSamplesRows)
View Full Code Here

         forecastPerformer.analyze(pair.getInput());

         int realClass = JNMFMathUtils.indexOfMaxElement(pair.getOutput());
         int guessedClass = forecastPerformer.getIndexOfMaxOutput();

         guessedRealPairs.put(pair.getId(), new GuessedRealPair(guessedClass, realClass));

         for (int j = 0; j < outputsCount; ++j)
         {
            if (j == realClass)
            {
View Full Code Here

TOP

Related Classes of com.greentea.relaxation.jnmf.qualitycontrol.GuessedRealPair

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.