import logging
from .verb_registry import Verb, hyrax_verb
[docs]
logger = logging.getLogger(__name__)
@hyrax_verb
[docs]
class Model(Verb):
"""Resolves the model class that is defined in the config file.
This will return a reference to the model class."""
[docs]
@staticmethod
[docs]
def setup_parser(parser):
"""Not implemented"""
pass
"""Not implemented"""
logger.error("Running model from the cli is unimplemented")
[docs]
def run(self):
"""Fetch and return the model _class_. Does not create an instance of
the model class.
"""
from hyrax.models.model_registry import fetch_model_class
config = self.config
model_cls = fetch_model_class(config)
return model_cls