Reference documentation and code samples for the Retail v2 API class ModelService.
Service for performing CRUD operations on models.
Recommendation models contain all the metadata necessary to generate a set of
models for the Predict() API. A model is queried
indirectly via a ServingConfig, which associates a model with a
given Placement (e.g. Frequently Bought Together on Home Page).
This service allows you to do the following:
Initiate training of a model.
Pause training of an existing model.
List all the available models along with their metadata.
public static void BindService(ServiceBinderBase serviceBinder, ModelService.ModelServiceBase serviceImpl)
Register service method with a service binder with or without implementation. Useful when customizing the service binding logic.
Note: this method is part of an experimental API that can change or be removed without any prior notice.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe ModelService class in the Retail v2 API facilitates CRUD operations for recommendation models, which are used to generate models for the \u003ccode\u003ePredict()\u003c/code\u003e API.\u003c/p\u003e\n"],["\u003cp\u003eThis service allows users to initiate and pause model training, list available models with their metadata, and manage their tuning schedules.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the API documentation available is 2.12.0, and the provided list shows version history from 2.12.0 all the way down to 1.0.0.\u003c/p\u003e\n"],["\u003cp\u003eThe ModelService class inherits members from the \u003ccode\u003eobject\u003c/code\u003e class, including methods like \u003ccode\u003eGetHashCode()\u003c/code\u003e, \u003ccode\u003eGetType()\u003c/code\u003e, \u003ccode\u003eMemberwiseClone()\u003c/code\u003e, and \u003ccode\u003eToString()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThere are two primary \u003ccode\u003eBindService\u003c/code\u003e methods in the ModelService class, allowing for service definition creation and registration, supporting server-side handling logic.\u003c/p\u003e\n"]]],[],null,[]]