(self, load_fn)
| 451 | class ModelWrapper: |
| 452 | '''Simple wrapper that delays loading the model, since the model isn't needed if the training data is already cached.''' |
| 453 | def __init__(self, load_fn): |
| 454 | self._load_fn = load_fn |
| 455 | self._model = None |
| 456 | |
| 457 | def __getattr__(self, name): |
| 458 | if self._model is None: |
nothing calls this directly
no outgoing calls
no test coverage detected