Examples of labels()


Examples of org.apache.mahout.classifier.df.data.Dataset.labels()

        RegressionResultAnalyzer regressionAnalyzer = new RegressionResultAnalyzer();
        double[][] results = new double[resList.size()][2];
        regressionAnalyzer.setInstances(resList.toArray(results));
        log.info("{}", regressionAnalyzer);
      } else {
        ResultAnalyzer analyzer = new ResultAnalyzer(Arrays.asList(dataset.labels()), "unknown");
        for (double[] r : resList) {
          analyzer.addInstance(dataset.getLabelString(r[0]),
            new ClassifierResult(dataset.getLabelString(r[1]), 1.0));
        }
        log.info("{}", analyzer);
View Full Code Here

Examples of org.apache.mahout.df.data.Dataset.labels()

    log.info("Sequential classification...");
    long time = System.currentTimeMillis();

    Random rng = RandomUtils.getRandom();
    ResultAnalyzer analyzer = analyze ? new ResultAnalyzer(Arrays.asList(dataset.labels()), "unknown") : null;

    if (dataFS.getFileStatus(dataPath).isDir()) {
      //the input is a directory of files
      testDirectory(outputPath, converter, forest, dataset, analyzer, rng);
    else {
View Full Code Here

Examples of org.apache.mahout.df.data.Dataset.labels()

    log.info("Sequential classification...");
    long time = System.currentTimeMillis();

    Random rng = RandomUtils.getRandom();
    ResultAnalyzer analyzer = analyze ? new ResultAnalyzer(Arrays.asList(dataset.labels()), "unknown") : null;

    if (dataFS.getFileStatus(dataPath).isDir()) {
      //the input is a directory of files
      testDirectory(outputPath, converter, forest, dataset, analyzer, rng);
    else {
View Full Code Here

Examples of org.boco.seamwebappgen.annotations.ShowInForm.labels()

            attr.setRows(annotation.rows());
          }

          if (annotation.type() == AttributeImplementationType.LISTBOX)
          {
            for (int i = 0; i < annotation.labels().length; i++)
            {
              attr.addLabel(annotation.labels()[i]);
            }
          }
View Full Code Here

Examples of org.boco.seamwebappgen.annotations.ShowInForm.labels()

          if (annotation.type() == AttributeImplementationType.LISTBOX)
          {
            for (int i = 0; i < annotation.labels().length; i++)
            {
              attr.addLabel(annotation.labels()[i]);
            }
          }

          attr.setHelp(annotation.help());
          attr.setRequired(annotation.required());
View Full Code Here

Examples of org.boco.seamwebappgen.annotations.ShowInForm.labels()

              attr.setRows(annotation.rows());
            }

            if (annotation.type() == AttributeImplementationType.LISTBOX)
            {
              for (int i = 0; i < annotation.labels().length; i++)
              {
                attr.addLabel(annotation.labels()[i]);
              }
            }
          }
View Full Code Here

Examples of org.boco.seamwebappgen.annotations.ShowInForm.labels()

            if (annotation.type() == AttributeImplementationType.LISTBOX)
            {
              for (int i = 0; i < annotation.labels().length; i++)
              {
                attr.addLabel(annotation.labels()[i]);
              }
            }
          }
          else
          {
View Full Code Here

Examples of org.boco.seamwebappgen.annotations.ShowInForm.labels()

          attr.setImplementationType(showAnnotation.type());

          Vector<String> tmp1 = new Vector<String>();
          tmp1 = new Vector<String>();
          for (int i = 0; i < showAnnotation.labels().length; i++)
          {
            tmp1.add(showAnnotation.labels()[i]);
          }
          attr.setLabels(tmp1);
        }
View Full Code Here

Examples of org.boco.seamwebappgen.annotations.ShowInForm.labels()

          Vector<String> tmp1 = new Vector<String>();
          tmp1 = new Vector<String>();
          for (int i = 0; i < showAnnotation.labels().length; i++)
          {
            tmp1.add(showAnnotation.labels()[i]);
          }
          attr.setLabels(tmp1);
        }
        else
          attr.setImplementationType(AttributeImplementationType.TEXT);
View Full Code Here

Examples of org.xbill.DNS.Name.labels()

  Name n = new Name("A.B.c.d.");
  Name n2 = new Name(n, 5);

  assertFalse(n2.isAbsolute());
  assertFalse(n2.isWild());
  assertEquals(0, n2.labels());
  assertEquals(0, n2.length());
    }

    public void test_concatenate_basic() throws NameTooLongException, TextParseException
    {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.