public class DistributedCbowDotMessage extends BaseVoidMessage implements DistributedMessage
| Modifier and Type | Field and Description |
|---|---|
protected float |
alpha |
protected byte[] |
codes |
protected short |
negSamples |
protected int[] |
rowsA |
protected int[] |
rowsB |
protected boolean |
useHS |
protected int |
w1 |
clipboard, messageType, originatorId, retransmitCount, role, shardIndex, storage, targetId, taskId, trainer, transport, voidConfiguration| Constructor and Description |
|---|
DistributedCbowDotMessage() |
DistributedCbowDotMessage(long taskId,
int[] rowsA,
int[] rowsB,
int w1,
byte[] codes,
boolean useHS,
short negSamples,
float alpha) |
DistributedCbowDotMessage(long taskId,
int rowA,
int rowB)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
processMessage()
This method calculates dot of gives rows, with averaging applied to rowsA, as required by CBoW
|
asBytes, asUnsafeBuffer, attachContext, extractContext, getMessageType, incrementRetransmitCount, isBlockingMessage, isJoinSupported, joinMessageclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasBytes, asUnsafeBuffer, attachContext, extractContext, fromBytes, getMessageType, getOriginatorId, getRetransmitCount, getTargetId, getTaskId, incrementRetransmitCount, isBlockingMessage, isJoinSupported, joinMessage, setOriginatorId, setTargetIdprotected int[] rowsA
protected int[] rowsB
protected int w1
protected boolean useHS
protected short negSamples
protected float alpha
protected byte[] codes
public DistributedCbowDotMessage()
@Deprecated public DistributedCbowDotMessage(long taskId, int rowA, int rowB)
public DistributedCbowDotMessage(long taskId,
@NonNull
int[] rowsA,
@NonNull
int[] rowsB,
int w1,
@NonNull
byte[] codes,
boolean useHS,
short negSamples,
float alpha)
public void processMessage()
processMessage in interface VoidMessageCopyright © 2017. All rights reserved.