Product Selector

Fusion 5.12
    Fusion 5.12

    Machine Learning Stage

    Table of Contents

    The Machine Learning query pipeline stage uses a trained machine learning model to analyze a field or fields of a Request object and stores the results of analysis in a new field added to either the Request or the Context object.

    In order to use the Machine Learning Stage, you must train a machine learning model. There are two different ways to train a model:

    When specifying field names, multiple field names are supported, in this format: field1:weight,field2:weight,field3:weight

    Use a machine learning model to generate a prediction about a query.

    skip - boolean

    Set to true to skip this stage.

    Default: false

    label - string

    A unique label for this stage.

    <= 255 characters

    condition - string

    Define a conditional script that must result in true or false. This can be used to determine if the stage should process or not.

    modelId - stringrequired

    The ID of the ML model stored in the Fusion blob store. If you trained a model using a Fusion Job, by default the model ID will be the same as the job name.

    >= 1 characters

    queryFeatureFieldName - stringrequired

    Name of Request fields to feed into the model. Can be a single field name, or multiple field names are supported in this format: field1:weight,field2:weight,field3:weight

    >= 1 characters

    Default: q

    predictionFieldName - stringrequired

    Name of the Request field to store the prediction

    >= 1 characters

    defaultValue - string

    Value to provide if a prediction cannot be made

    failOnError - boolean

    Flag to indicate if this stage should throw an exception if an error occurs while generating a prediction for a document.

    Default: false

    storeInContext - boolean

    Flag to indicate that the prediction should be set as a context property instead of setting a field on the document.

    Default: false