|
Algorithm 1 Training the VAE-WACGAN model |
| 1: |
initialize network parameters |
| 2: |
repeat |
| 3: |
for
do
|
| 4: |
random mini-batch from dataset |
| 5: |
|
| 6: |
|
| 7: |
|
| 8: |
|
| 9: |
// Update the parameters of the Discriminator |
| 10: |
|
| 11: |
|
| 12: |
|
| 13: |
|
| 14: |
end for
|
| 15: |
// Update the parameters of the Encoder and Decoder |
| 16: |
|
| 17: |
|
| 18: |
|
| 19: |
|
| 20: |
|
| 21: |
|
| 22: |
until has converged to 0.5 |