public class CGVaeReconstructionErrorWithKeyFunction<K> extends BaseVaeScoreWithKeyFunctionAdapter<K>
ReconstructionDistributionjsonConfig, 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() |
callpublic 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>