public class SkipGramRequestMessage extends BaseVoidMessage implements TrainingMessage, RequestMessage
| Modifier and Type | Field and Description |
|---|---|
protected double |
alpha |
protected byte[] |
codes |
protected byte |
counter |
protected int[] |
negatives |
protected short |
negSamples |
protected long |
nextRandom |
protected int[] |
points |
protected int |
w1 |
protected int |
w2 |
clipboard, messageType, originatorId, retransmitCount, role, shardIndex, storage, targetId, taskId, trainer, transport, voidConfiguration| Modifier | Constructor and Description |
|---|---|
protected |
SkipGramRequestMessage() |
|
SkipGramRequestMessage(int w1,
int w2,
int[] points,
byte[] codes,
short negSamples,
double lr,
long nextRandom) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isJoinSupported() |
void |
joinMessage(VoidMessage message) |
void |
processMessage()
This method does actual training for SkipGram algorithm
|
asBytes, asUnsafeBuffer, attachContext, extractContext, getMessageType, incrementRetransmitCount, isBlockingMessageclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetCounter, getFrameId, setFrameIdasBytes, asUnsafeBuffer, attachContext, extractContext, fromBytes, getMessageType, getOriginatorId, getRetransmitCount, getTargetId, getTaskId, incrementRetransmitCount, isBlockingMessage, setOriginatorId, setTargetIdprotected double alpha
protected int w1
protected int w2
protected int[] points
protected byte[] codes
protected int[] negatives
protected short negSamples
protected long nextRandom
protected byte counter
protected SkipGramRequestMessage()
public SkipGramRequestMessage(int w1,
int w2,
int[] points,
byte[] codes,
short negSamples,
double lr,
long nextRandom)
public void processMessage()
processMessage in interface VoidMessagepublic boolean isJoinSupported()
isJoinSupported in interface VoidMessageisJoinSupported in class BaseVoidMessagepublic void joinMessage(VoidMessage message)
joinMessage in interface VoidMessagejoinMessage in class BaseVoidMessageCopyright © 2017. All rights reserved.