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

Java example source code file (VectorsListener.java)

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

sequenceelement, sequencevectors, vectorslistener

The VectorsListener.java Java example source code

package org.deeplearning4j.models.sequencevectors.interfaces;

import org.deeplearning4j.models.embeddings.wordvectors.WordVectors;
import org.deeplearning4j.models.sequencevectors.SequenceVectors;
import org.deeplearning4j.models.sequencevectors.enums.ListenerEvent;
import org.deeplearning4j.models.sequencevectors.sequence.SequenceElement;

/**
 * This interface describes Listeners to SequenceVectors and its derivatives.
 *
 * @author raver119@gmail.com
 */
public interface VectorsListener<T extends SequenceElement> {

    /**
     * This method is called prior each processEvent call, to check if this specific VectorsListener implementation is viable for specific event
     *
     * @param event
     * @param argument
     * @return TRUE, if this event can and should be processed with this listener, FALSE otherwise
     */
    boolean validateEvent(ListenerEvent event, long argument);

    /**
     * This method is called at each epoch end
     *
     * @param event
     * @param sequenceVectors
     */
    void processEvent(ListenerEvent event, SequenceVectors<T> sequenceVectors, long argument);
}

Other Java examples (source code examples)

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