example of committed change's usage:
We add new model which contains only the location of the external model and loads it during the initialization.
By this procedure, large models which are difficult to upload to ZooKeeper can be available.
The new model works as the wrapper of existing models, and deligates APIs to them.
We add two classes by this patch:
- ExternalModel : a base class for models with external resources.
- URIExternalModel : an implementation of ExternalModel which loads the external model from specified URI (ex. file:, http:, etc.).
For example, if you have a model on the local disk "file:///var/models/myModel.json", the definition of URIExternalModel will be like the following.
If you use LTR with model=myURIExternalModel, the model of myModel.json will be used for scoring documents.