public class CbowRequestMessage extends BaseVoidMessage implements TrainingMessage, RequestMessage
| Modifier and Type | Field and Description |
|---|---|
protected double |
alpha |
protected byte[] |
codes |
protected byte |
counter |
protected int[] |
negatives |
protected int |
negSamples |
protected long |
nextRandom |
protected int[] |
syn0rows |
protected int[] |
syn1rows |
protected int |
w1 |
clipboard, messageType, originatorId, retransmitCount, role, shardIndex, storage, targetId, taskId, trainer, transport, voidConfiguration| Constructor and Description |
|---|
CbowRequestMessage(int[] syn0rows,
int[] syn1rows,
int w1,
byte[] codes,
int negSamples,
double alpha,
long nextRandom) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isJoinSupported() |
void |
joinMessage(VoidMessage message) |
void |
processMessage()
This method will be started in context of executor, either Shard, Client or Backup node
|
asBytes, asUnsafeBuffer, attachContext, extractContext, getMessageType, incrementRetransmitCount, isBlockingMessageclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCounter, getFrameId, setFrameIdasBytes, asUnsafeBuffer, attachContext, extractContext, fromBytes, getMessageType, getOriginatorId, getRetransmitCount, getTargetId, getTaskId, incrementRetransmitCount, isBlockingMessage, setOriginatorId, setTargetIdprotected byte counter
protected int w1
protected int[] syn0rows
protected int[] syn1rows
protected double alpha
protected long nextRandom
protected int negSamples
protected byte[] codes
protected int[] negatives
public CbowRequestMessage(@NonNull
int[] syn0rows,
@NonNull
int[] syn1rows,
int w1,
byte[] codes,
int negSamples,
double alpha,
long nextRandom)
public void processMessage()
VoidMessageprocessMessage 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.