Example usage for org.apache.spark.api.java.function DoubleFlatMapFunction interface-usage

List of usage examples for org.apache.spark.api.java.function DoubleFlatMapFunction interface-usage

Introduction

In this page you can find the example usage for org.apache.spark.api.java.function DoubleFlatMapFunction interface-usage.

Usage

From source file org.apache.crunch.fn.SDoubleFlatMapFunction.java

/**
 * A Crunch-compatible abstract base class for Spark's {@link DoubleFlatMapFunction}. Subclasses
 * of this class may be used against either Crunch {@code PCollections} or Spark {@code RDDs}.
 */
public abstract class SDoubleFlatMapFunction<T> extends SparkDoFn<T, Double> implements DoubleFlatMapFunction<T> {
    @Override

From source file org.deeplearning4j.spark.impl.computationgraph.scoring.ScoreExamplesFunction.java

/**Function to score examples individually. Note that scoring is batched for computational efficiency.<br>
 * This is essentially a Spark implementation of the {@link ComputationGraph#scoreExamples(MultiDataSet, boolean)} method<br>
 * <b>Note:</b> This method returns a score for each example, but the association between examples and scores is lost. In
 * cases where we need to know the score for particular examples, use {@link ScoreExamplesWithKeyFunction}
 * @author Alex Black
 * @see ScoreExamplesWithKeyFunction