congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
Tuple.getFirst
Code IndexAdd Tabnine to your IDE (free)

How to use
getFirst
method
in
de.jungblut.math.tuple.Tuple

Best Java code snippets using de.jungblut.math.tuple.Tuple.getFirst (Showing top 7 results out of 315)

origin: de.jungblut.math/tjungblut-math

@SuppressWarnings("unchecked")
@Override
public int compareTo(Tuple<FIRST, SECOND> o) {
 if (o.getFirst() instanceof Comparable && getFirst() instanceof Comparable) {
  return ((Comparable<FIRST>) getFirst()).compareTo(o.getFirst());
 } else {
  return 0;
 }
}
origin: de.jungblut.jrpt/jrpt

@Override
public void constructWithPayload(Stream<Tuple<DoubleVector, VALUE>> pairs) {
 pairs.forEach((v) -> add(v.getFirst(), v.getSecond()));
}
origin: de.jungblut.common/thomasjungblut-common

  @Override
  public CostGradientTuple call() throws Exception {
    return evaluateBatch(parameters, featureOutcome.getFirst(),
        featureOutcome.getSecond());
  }
}
origin: de.jungblut.common/thomasjungblut-common

/**
 * Constructs the similarity aggregation by seed tokens to expand and a given
 * bipartite graph. The bipartite graph is represented as a three tuple, which
 * consists of the vertices (called (candidate-) terms or entities) on the
 * first item, the context vertices on the second item and the edges between
 * those is a NxM matrix, where n is the entity tokens count and m is the
 * number of the context vertices. Alpha is the constant weighting factor used
 * throughout the paper (usually 0.5). The distance measurer to be used must
 * be also defined.
 */
public IterativeSimilarityAggregation(String[] seedTokens,
                   Tuple<String[], DoubleMatrix> bipartiteGraph, double alpha,
                   DistanceMeasurer distance) {
  this.seedTokens = seedTokens;
  this.termNodes = bipartiteGraph.getFirst();
  // make sure we transpose to have a better distance lookup
  this.weightMatrix = bipartiteGraph.getSecond().transpose();
  this.alpha = alpha;
  this.similarityMeasurer = new SimilarityMeasurer(distance);
  init();
}
origin: de.jungblut.common/thomasjungblut-common

if (tuple != null) {
  if (tuple.getFirst() < globalCost) {
    globalCost = tuple.getFirst();
    globalBestPosition = tuple.getSecond();
origin: de.jungblut.common/thomasjungblut-common

    .getFirst().getDimension());
observe(first.getFirst(), first.getSecond(), numDistinctClasses,
    tokenPerClass, numDocumentsPerClass);
int numDocumentsSeen = 1;
while ((first = Iterables.consumeNext(featureIterator, outcomeIterator)) != null) {
  observe(first.getFirst(), first.getSecond(), numDistinctClasses,
      tokenPerClass, numDocumentsPerClass);
  numDocumentsSeen++;
origin: de.jungblut.common/thomasjungblut-common

  node.children[cIndex] = build(filtered.getFirst(),
      filtered.getSecond(), newPossibleFeatures, level + 1);
  cIndex++;
    bestSplit.getNumericalSplitValue(), false);
if (filterNumeric.getFirst().isEmpty()
    || filterNumericHigher.getFirst().isEmpty()) {
  newPossibleFeatures.remove(bestSplitIndex);
} else {
AbstractTreeNode lower = build(filterNumeric.getFirst(),
    filterNumeric.getSecond(), new TIntHashSet(newPossibleFeatures),
    level + 1);
AbstractTreeNode higher = build(filterNumericHigher.getFirst(),
    filterNumericHigher.getSecond(),
    new TIntHashSet(newPossibleFeatures), level + 1);
de.jungblut.math.tupleTuplegetFirst

Popular methods of Tuple

  • getSecond
  • <init>

Popular in Java

  • Running tasks concurrently on multiple threads
  • startActivity (Activity)
  • getContentResolver (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Notification (javax.management)
  • Top 17 PhpStorm Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now