home | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Java example source code file (WeightedWalker.java)

This example Java source code file (WeightedWalker.java) is included in the alvinalexander.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Learn more about this Java project at its project page.

Java - Java tags/keywords

builder, graphwalker, override, randomwalker, sequenceelement, weightedwalker

The WeightedWalker.java Java example source code

package org.deeplearning4j.models.sequencevectors.graph.walkers.impl;

import org.deeplearning4j.models.sequencevectors.graph.primitives.IGraph;
import org.deeplearning4j.models.sequencevectors.graph.walkers.GraphWalker;
import org.deeplearning4j.models.sequencevectors.sequence.Sequence;
import org.deeplearning4j.models.sequencevectors.sequence.SequenceElement;

/**
 *
 * WORK IS IN PROGRESS, DO NOT USE THIS
 *
 * @author raver119@gmail.com
 */
public class WeightedWalker<T extends SequenceElement> extends RandomWalker  implements GraphWalker {

    /**
     * This method checks, if walker has any more sequences left in queue
     *
     * @return
     */
    @Override
    public boolean hasNext() {
        return super.hasNext();
    }

    /**
     * This method returns next walk sequence from this graph
     *
     * @return
     */
    @Override
    public Sequence<T> next() {
        return null;
    }

    /**
     * This method resets walker
     *
     * @param shuffle if TRUE, order of walks will be shuffled
     */
    @Override
    public void reset(boolean shuffle) {
        super.reset(shuffle);
    }

    public static class Builder<T extends SequenceElement> extends RandomWalker.Builder {

        public Builder(IGraph<T, ?> sourceGraph) {
            super(sourceGraph);
        }

    }
}

Other Java examples (source code examples)

Here is a short list of links related to this Java WeightedWalker.java source code file:



my book on functional programming

 

new blog posts

 

Copyright 1998-2019 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.