Op@Operator(group="train") public final class NegTrain extends PrimitiveOp
operation| Modifier and Type | Method | Description |
|---|---|---|
static NegTrain |
create(Scope scope,
Operand<java.lang.Float> wIn,
Operand<java.lang.Float> wOut,
Operand<java.lang.Integer> examples,
Operand<java.lang.Integer> labels,
Operand<java.lang.Float> lr,
java.util.List<java.lang.Long> vocabCount,
java.lang.Long numNegativeSamples) |
Factory method to create a class to wrap a new NegTrain operation to the graph.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitequals, hashCode, toStringpublic static NegTrain create(Scope scope, Operand<java.lang.Float> wIn, Operand<java.lang.Float> wOut, Operand<java.lang.Integer> examples, Operand<java.lang.Integer> labels, Operand<java.lang.Float> lr, java.util.List<java.lang.Long> vocabCount, java.lang.Long numNegativeSamples)
scope - current graph scopewIn - input word embedding.wOut - output word embedding.examples - A vector of word ids.labels - A vector of word ids.lr - vocabCount - Count of words in the vocabulary.numNegativeSamples - Number of negative samples per example.