public class CGVaeReconstructionErrorWithKeyFunction<K> extends BaseVaeScoreWithKeyFunctionAdapter<K>
ReconstructionDistribution
jsonConfig, params
Constructor and Description |
---|
CGVaeReconstructionErrorWithKeyFunction(org.apache.spark.broadcast.Broadcast<org.nd4j.linalg.api.ndarray.INDArray> params,
org.apache.spark.broadcast.Broadcast<java.lang.String> jsonConfig,
int batchSize) |
Modifier and Type | Method and Description |
---|---|
org.nd4j.linalg.api.ndarray.INDArray |
computeScore(VariationalAutoencoder vae,
org.nd4j.linalg.api.ndarray.INDArray toScore) |
VariationalAutoencoder |
getVaeLayer() |
call
public CGVaeReconstructionErrorWithKeyFunction(org.apache.spark.broadcast.Broadcast<org.nd4j.linalg.api.ndarray.INDArray> params, org.apache.spark.broadcast.Broadcast<java.lang.String> jsonConfig, int batchSize)
params
- MultiLayerNetwork parametersjsonConfig
- MultiLayerConfiguration, as jsonbatchSize
- Batch size to use when scoringpublic VariationalAutoencoder getVaeLayer()
getVaeLayer
in class BaseVaeScoreWithKeyFunctionAdapter<K>
public org.nd4j.linalg.api.ndarray.INDArray computeScore(VariationalAutoencoder vae, org.nd4j.linalg.api.ndarray.INDArray toScore)
computeScore
in class BaseVaeScoreWithKeyFunctionAdapter<K>