|
Java example source code file (WeightedRandomWalkGraphIteratorProvider.java)
The WeightedRandomWalkGraphIteratorProvider.java Java example source codepackage org.deeplearning4j.graph.iterator.parallel; import org.deeplearning4j.graph.api.IGraph; import org.deeplearning4j.graph.api.NoEdgeHandling; import org.deeplearning4j.graph.iterator.GraphWalkIterator; import org.deeplearning4j.graph.iterator.RandomWalkIterator; import org.deeplearning4j.graph.iterator.WeightedRandomWalkIterator; import java.util.ArrayList; import java.util.List; import java.util.Random; /**Weighted random walk graph iterator provider: given a weighted graph (of type {@code IGraph<?,? extends Number>}), * split up the generation of weighted random walks for parallel learning. Specifically: with N threads and V vertices: * - First iterator generates weighted random walks starting at vertices 0 to V/N * - Second iterator generates weighted random walks starting at vertices V/N+1 to 2*V/N * - and so on * @param <V> Vertex type * @see WeightedRandomWalkIterator */ public class WeightedRandomWalkGraphIteratorProvider<V> implements GraphWalkIteratorProvider Other Java examples (source code examples)Here is a short list of links related to this Java WeightedRandomWalkGraphIteratorProvider.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.