All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.deeplearning4j.models.sequencevectors.sequence.ShallowSequenceElement Maven / Gradle / Ivy

There is a newer version: 1.0.0-M2.1
Show newest version
package org.deeplearning4j.models.sequencevectors.sequence;

/**
 * This is special shallow SequenceElement implementation, that doesn't hold labels or any other custom user-defined data
 *
 * @author [email protected]
 */
public class ShallowSequenceElement extends SequenceElement {

    public ShallowSequenceElement(double frequency, long id) {
        this.storageId = id;
        this.elementFrequency.set(frequency);
    }

    @Override
    public String getLabel() {
        return null;
    }

    @Override
    public String toJSON() {
        return null;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy