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

Java example source code file (SequenceLearningAlgorithm.java)

This example Java source code file (SequenceLearningAlgorithm.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

atomiclong, sequenceelement, sequencelearningalgorithm, string, vectorsconfiguration, weightlookuptable

The SequenceLearningAlgorithm.java Java example source code

package org.deeplearning4j.models.embeddings.learning;

import org.deeplearning4j.models.embeddings.WeightLookupTable;
import org.deeplearning4j.models.embeddings.loader.VectorsConfiguration;
import org.deeplearning4j.models.sequencevectors.interfaces.SequenceIterator;
import org.deeplearning4j.models.sequencevectors.sequence.Sequence;
import org.deeplearning4j.models.sequencevectors.sequence.SequenceElement;
import org.deeplearning4j.models.word2vec.wordstore.VocabCache;

import java.util.concurrent.atomic.AtomicLong;

/**
 * Implementations of this interface should contain sequence-related learning algorithms. Like dbow or dm.
 *
 * @author raver119@gmail.com
 */
public interface SequenceLearningAlgorithm<T extends SequenceElement> {

    String getCodeName();

    void configure(VocabCache<T> vocabCache, WeightLookupTable lookupTable, VectorsConfiguration configuration);

    void pretrain(SequenceIterator<T> iterator);

    void learnSequence(Sequence<T> sequence, AtomicLong nextRandom, double learningRate);

    boolean isEarlyTerminationHit();
}

Other Java examples (source code examples)

Here is a short list of links related to this Java SequenceLearningAlgorithm.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.