prototorch_models/examples/cli/gmlvq.py

13 lines
313 B
Python
Raw Normal View History

"""GLVQ example using the MNIST dataset."""
2021-05-21 15:10:36 +00:00
from prototorch.models import ImageGLVQ
from prototorch.models.data import train_on_mnist
2021-05-21 15:10:36 +00:00
from pytorch_lightning.utilities.cli import LightningCLI
class GLVQMNIST(train_on_mnist(batch_size=64), ImageGLVQ):
"""Model Definition."""
2021-05-21 15:10:36 +00:00
cli = LightningCLI(GLVQMNIST)