Class WrapperModel

  • Direct Known Subclasses:
    DefaultWrapperModel

    public abstract class WrapperModel
    extends AdapterModel
    A scoring model that wraps the other model.

    This model loads a model from an external resource during the initialization. The way of fetching the wrapped model is depended on the implementation of fetchModelMap().

    This model doesn't hold the actual parameters of the wrapped model, thus it can manage large models which are difficult to upload to ZooKeeper.

    Example configuration:

    {
        "class": "...",
        "name": "myModelName",
        "params": {
            ...
        }
     }

    NOTE: no "features" are configured in the wrapper model because the wrapped model's features will be used instead. Also note that if a "store" is configured for the wrapper model then it must match the "store" of the wrapped model.