Update LiRaMLVQ example script
This commit is contained in:
parent
ca4c9da10a
commit
7d2af9c0ae
@ -29,15 +29,9 @@ if __name__ == "__main__":
|
|||||||
# Initialize the model
|
# Initialize the model
|
||||||
model = pt.models.GMLVQ(hparams)
|
model = pt.models.GMLVQ(hparams)
|
||||||
|
|
||||||
# Model summary
|
|
||||||
print(model)
|
|
||||||
|
|
||||||
# Callbacks
|
# Callbacks
|
||||||
vis = pt.models.VisSiameseGLVQ2D(train_ds, border=0.1)
|
vis = pt.models.VisSiameseGLVQ2D(train_ds, border=0.1)
|
||||||
|
|
||||||
# Namespace hook for the visualization to work
|
|
||||||
model.backbone = model.omega_layer
|
|
||||||
|
|
||||||
# Setup trainer
|
# Setup trainer
|
||||||
trainer = pl.Trainer(max_epochs=200, callbacks=[vis])
|
trainer = pl.Trainer(max_epochs=200, callbacks=[vis])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user