|
Java example source code file (EmbeddingLayer.java)
The EmbeddingLayer.java Java example source codepackage org.deeplearning4j.nn.conf.layers; import lombok.*; /**Embedding layer: feed-forward layer that expects single integers per example as input (class numbers, in range 0 to numClass-1) * as input. This input has shape [numExamples,1] instead of [numExamples,numClasses] for the equivalent one-hot representation. * Mathematically, EmbeddingLayer is equivalent to using a DenseLayer with a one-hot representation for the input; however, * it can be much more efficient with a large number of classes (as a dense layer + one-hot input does a matrix multiply * with all but one value being zero).<br> * <b>Note: can only be used as the first layer for a network Other Java examples (source code examples)Here is a short list of links related to this Java EmbeddingLayer.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.