public class CGVaeReconstructionProbWithKeyFunction<K> extends BaseVaeReconstructionProbWithKeyFunctionAdapter<K>
jsonConfig, params
Constructor and Description |
---|
CGVaeReconstructionProbWithKeyFunction(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 |
---|---|
VariationalAutoencoder |
getVaeLayer() |
computeScore
call
public CGVaeReconstructionProbWithKeyFunction(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 VariationalAutoencoder getVaeLayer()
getVaeLayer
in class BaseVaeScoreWithKeyFunctionAdapter<K>