|
Java example source code file (CountCumSum.java)
The CountCumSum.java Java example source codepackage org.deeplearning4j.spark.text.functions; import org.apache.spark.Accumulator; import org.apache.spark.api.java.JavaRDD; import org.apache.spark.api.java.JavaSparkContext; import org.apache.spark.broadcast.Broadcast; import org.deeplearning4j.berkeley.Counter; import org.deeplearning4j.spark.text.accumulators.MaxPerPartitionAccumulator; import java.util.concurrent.atomic.AtomicLong; /** * @author jeffreytang */ @SuppressWarnings("unchecked") public class CountCumSum { // Starting variables private JavaSparkContext sc; private JavaRDD<AtomicLong> sentenceCountRDD; // Variables to fill in as we go private JavaRDD<AtomicLong> foldWithinPartitionRDD; private Broadcast<Counter Other Java examples (source code examples)Here is a short list of links related to this Java CountCumSum.java source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.