K
- Type of key, associated with each example. Used to keep track of which score belongs to which examplepublic abstract class BaseVaeReconstructionProbWithKeyFunctionAdapter<K> extends BaseVaeScoreWithKeyFunctionAdapter<K>
jsonConfig, params
Constructor and Description |
---|
BaseVaeReconstructionProbWithKeyFunctionAdapter(org.apache.spark.broadcast.Broadcast<org.nd4j.linalg.api.ndarray.INDArray> params,
org.apache.spark.broadcast.Broadcast<java.lang.String> jsonConfig,
boolean useLogProbability,
int batchSize,
int numSamples) |
Modifier and Type | Method and Description |
---|---|
org.nd4j.linalg.api.ndarray.INDArray |
computeScore(VariationalAutoencoder vae,
org.nd4j.linalg.api.ndarray.INDArray toScore) |
call, getVaeLayer
public BaseVaeReconstructionProbWithKeyFunctionAdapter(org.apache.spark.broadcast.Broadcast<org.nd4j.linalg.api.ndarray.INDArray> params, org.apache.spark.broadcast.Broadcast<java.lang.String> jsonConfig, boolean useLogProbability, int batchSize, int numSamples)
params
- MultiLayerNetwork parametersjsonConfig
- MultiLayerConfiguration, as jsonuseLogProbability
- If true: use log probability. False: use raw probability.batchSize
- Batch size to use when scoringnumSamples
- Number of samples to use when calling VariationalAutoencoder.reconstructionLogProbability(INDArray, int)
public org.nd4j.linalg.api.ndarray.INDArray computeScore(VariationalAutoencoder vae, org.nd4j.linalg.api.ndarray.INDArray toScore)
computeScore
in class BaseVaeScoreWithKeyFunctionAdapter<K>