Anomaly GAN Implementation Seems to be Flawed
The AnoGan
model is not tested in PyOD, nor is an example provided, and when trying it locally it throws a cascade of "internal" errors. The test module is commented out. Apparently, there is a problem with this model yet it was released in the new version!
An example out of many:
model = AnoGAN(epochs=10, contamination=contamination)
model.fit(x_train)
Results in:
KeyError: 'The optimizer cannot recognize variable dense_26/kernel:0. This usually means you are trying to call the optimizer to update different parts of the model separately. Please call optimizer.build(variables)
with the full list of trainable variables before the training loop or use legacy optimizer `tf.keras.optimizers.legacy.{self.class.name}.'