public class CountFunction<T extends SequenceElement> extends java.lang.Object implements org.apache.spark.api.java.function.Function<Sequence<T>,Pair<Sequence<T>,java.lang.Long>>
Modifier and Type | Field and Description |
---|---|
protected org.apache.spark.Accumulator<Counter<java.lang.Long>> |
accumulator |
protected org.nd4j.parameterserver.distributed.training.TrainingDriver<? extends org.nd4j.parameterserver.distributed.messages.TrainingMessage> |
driver |
protected SparkElementsLearningAlgorithm |
ela |
protected boolean |
fetchLabels |
protected org.apache.spark.broadcast.Broadcast<VectorsConfiguration> |
vectorsConfigurationBroadcast |
protected org.apache.spark.broadcast.Broadcast<org.nd4j.parameterserver.distributed.conf.VoidConfiguration> |
voidConfigurationBroadcast |
Constructor and Description |
---|
CountFunction(org.apache.spark.broadcast.Broadcast<VectorsConfiguration> vectorsConfigurationBroadcast,
org.apache.spark.broadcast.Broadcast<org.nd4j.parameterserver.distributed.conf.VoidConfiguration> voidConfigurationBroadcast,
org.apache.spark.Accumulator<Counter<java.lang.Long>> accumulator,
boolean fetchLabels) |
Modifier and Type | Method and Description |
---|---|
Pair<Sequence<T>,java.lang.Long> |
call(Sequence<T> sequence) |
protected org.apache.spark.Accumulator<Counter<java.lang.Long>> accumulator
protected boolean fetchLabels
protected org.apache.spark.broadcast.Broadcast<org.nd4j.parameterserver.distributed.conf.VoidConfiguration> voidConfigurationBroadcast
protected org.apache.spark.broadcast.Broadcast<VectorsConfiguration> vectorsConfigurationBroadcast
protected transient SparkElementsLearningAlgorithm ela
protected transient org.nd4j.parameterserver.distributed.training.TrainingDriver<? extends org.nd4j.parameterserver.distributed.messages.TrainingMessage> driver
public CountFunction(@NonNull org.apache.spark.broadcast.Broadcast<VectorsConfiguration> vectorsConfigurationBroadcast, @NonNull org.apache.spark.broadcast.Broadcast<org.nd4j.parameterserver.distributed.conf.VoidConfiguration> voidConfigurationBroadcast, @NonNull org.apache.spark.Accumulator<Counter<java.lang.Long>> accumulator, boolean fetchLabels)