Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

On this Page

Table of Contents
maxLevel32
excludeOlder Versions|Additional Resources|Related Links|Related Information

Overview

This is a Transform type Snap that enables you to predict the target the target field for an unlabeled datasetdocument. An unlabeled dataset document is one that does not have a regression label field. So the  So, the Snap reads this unlabeled dataset document and predicts the regression field, which is the target the target field. Predictions  Predictions are made based on a regression model. You can build the regression model using the the regression model built by the Trainer (Regression) Snap.

Image RemovedImage Added

Input and Output

Expected input: An unlabeled

dataset

document and the regression model

for predicting the regression data

Expected output: Predictions from the regression model based on the input

dataset

document

Expected upstream Snaps:

  • First input view: Any Snap that generates an unlabeled
dataset document is usable as an upstream Snap
  • document document. For example,
CSV Generator
  • JSON Parser, JSON Generator,
XML
  • CSV Parser, CSV Generator,
Copy
  • Mapper, and so on.
  • Second input view: Any Snap that reads and outputs the regression model. For example, a combination of File Reader, and JSON Parser.

Expected downstream Snaps:

 CSV/JSON Formatter Snap and File Writer Snap can be used to write the output to file

Any Snap that uses the predicted result. For example, Aggregate, or a combination of File Writer and JSON Formatter.

Prerequisites

The input

dataset

document must be in tabular format (no nested structure). 

  • This Snap automatically derives the schema (field names and types) from the first row. Therefore, the first row must not have any missing values.
  • Configuring Accounts

    Accounts are not used with this Snap.

    Configuring Views

    Input

    This Snap has exactly two document input views. The first input view is for the unlabeled dataset that unlabeled document that requires prediction. The second input view is for the regression model to be used for the predictionmodel.
    OutputThis Snap has exactly one document output view.
    ErrorThis Snap has at most one document error view.

    Troubleshooting

    None.

    Limitations and Known Issues

    None.

    Modes


    Snap Settings


    LabelRequired. The name for the Snap. Modify this to be more specific, especially if there are more than one of the same Snap in the pipeline.

    Snap Execution


    Select one of the following three modes in which the Snap executes:

    • Validate & Execute: Performs limited execution of the Snap, and generates a data preview during Pipeline validation. Subsequently, performs full execution of the Snap (unlimited records) during Pipeline runtime.

    • Execute only: Performs full execution of the Snap during Pipeline execution without generating preview data.

    • Disabled: Disables the Snap and all Snaps that are downstream from it.

    Default ValueExecute only

    Example: Validate & Execute



    Examples


    Heating Load Prediction – Testing

    The model trained in the Heating Load Prediction – Model Training example pipeline is tested against an unlabeled dataset. 

    Image Added

    Download this pipeline.


    Note

    To understand the dataset and the process prior to testing the model see the following examples:


    Expand
    titleUnderstanding the pipeline

    In this example, the unlabeled dataset is created using the CSV Generator Snap. This dataset is used as the data input for the Predictor (Regression) Snap. The target field (heating load) is to be predicted for this dataset. 

    Image Added

    The model trained in the Heating Load Prediction – Model Training example is used as the model input. The File Reader Snap is configured to read this model from the SLDB. The JSON Parser Snap is used to parse the output from the File Reader Snap. Below is a preview of the output from the JSON Parser Snap (the model):

    Image Added

    Model Testing

    To test a model trained on a classification dataset, the Predictor (Regression) Snap must be used. 

    The Predictor (Regression) Snap requires two inputs:

    • An unlabeled dataset for the data input
    • The ML model trained on the labeled dataset for the model input

    The Predictor Snap is configured as shown below:

    Image Added

    Based on its configuration, the output from the Snap includes one class prediction per document. This output is as shown below:

    Image Added


    Download this pipeline.

    Additional Example

    The following use case demonstrates a real-world scenario for using this Snap:


    Downloads

    Multiexcerpt include macro
    namedownload_instructions
    pageOpenAPI

    Attachments
    patterns*.slp,*.zip

    Snap History

    Insert excerpt
    ML Core Snap Pack
    ML Core Snap Pack
    nopaneltrue