Skip to end of banner
Go to start of banner

Predictor -- Regression

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 25 Current »

On this Page

Overview

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

Input and Output

Expected input: An unlabeled document and the regression model. 

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

Expected upstream Snaps:

  • First input view: Any Snap that generates an unlabeled document document. For example, JSON Parser, JSON Generator, CSV Parser, CSV Generator, 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: Any Snap that uses the predicted result. For example, Aggregate, or a combination of File Writer and JSON Formatter.

Prerequisites

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

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 document that requires prediction. The second input view is for the regression model.
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.

Page lookup error: page "Anaplan Read" not found.

If you're experiencing issues please see our Troubleshooting Guide.

Page lookup error: page "Anaplan Read" not found.

If you're experiencing issues please see our Troubleshooting Guide.


Examples


Heating Load Prediction – Testing

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

Download this pipeline.

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


 Understanding 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. 

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):

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:

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


Download this pipeline.

Additional Example

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


Downloads

  File Modified
You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.
No files shared here yet.
  • Drag and drop to upload or browse for files
  • Snap Pack History

     Click to view/expand
    Release Snap Pack VersionDateType  Updates
    February 2024main25112 StableUpdated and certified against the current SnapLogic Platform release.
    November 2023main23721Nov 8, 2023StableUpdated and certified against the current SnapLogic Platform release.

    August 2023

    main22460

    Aug 16, 2023

    Stable

    Updated and certified against the current SnapLogic Platform release.

    May 2023433patches21854 Latest

    Fixed an issue with the Cross Validator (Classification) Snap where the native Windows DLL caused the Snaplex to stall

    May 2023433patches21644 Latest

    Improved an error message in the Remote Python Script Snap to explain the reason and resolution for the case where a Python script has errors.

    May 2023

    main21015 

    Stable

    Upgraded with the latest SnapLogic Platform release.

    February 2023main19844 StableUpgraded with the latest SnapLogic Platform release.
    November 2022main18944 Stable

    Upgraded with the latest SnapLogic Platform release.

    August 2022 main17386 Stable

    Upgraded with the latest SnapLogic Platform release.

    4.29429patches16809 Latest

    Removed the log4j dependency from the ML Core Snaps due to security vulnerabilities.

    4.29main15993 StableUpgraded with the latest SnapLogic Platform release.
    4.28main14627 Stable

    Upgraded with the latest SnapLogic Platform release.

    4.27427patches13948 Latest

    Fixed an issue with the following Snaps, where a deadlock occurred when data is loaded from both the input views.

    4.27main12833 StableUpgraded with the latest SnapLogic Platform release.
    4.26main11181 StableUpgraded with the latest SnapLogic Platform release.
    4.25main9554 StableUpgraded with the latest SnapLogic Platform release.
    4.24main8556 StableUpgraded with the latest SnapLogic Platform release.
    4.23main7430 StableUpgraded with the latest SnapLogic Platform release.
    4.22main6403 StableUpgraded with the latest SnapLogic Platform release.
    4.21snapsmrc542 StableUpgraded with the latest SnapLogic Platform release.
    4.20 Patchmlcore8770 Stable

    Adds the log4j dependency to the ML Core Snaps to resolve the "Could not initialize class org.apache.log4j.LogManager" error. 

    4.20snapsmrc535 StableUpgraded with the latest SnapLogic Platform release.
    4.19snapsmrc528 StableUpgraded with the latest SnapLogic Platform release.
    4.18snapsmrc523 StableUpgraded with the latest SnapLogic Platform release.
    4.17 PatchALL7402 Latest

    Pushed automatic rebuild of the latest version of each Snap Pack to SnapLogic UAT and Elastic servers.

    4.17snapsmrc515
     
    Latest
    • New Snap: Introducing the Clustering Snap that performs exploratory data analysis to find hidden patterns or groupings in data.
    • Enhanced the AutoML Snap. You can now:
      • Select algorithms to derive the top models.
      • Input the best model generated by another AutoML Snap from a previous execution.
      • View an interactive HTML report that contains statistics of up to 10 models.
    • Added the Snap Execution field to all Standard-mode Snaps. In some Snaps, this field replaces the existing Execute during preview check box.
    4.16snapsmrc508
     
    StableNew Snap: Introducing the AutoML Snap, which lets you automate the process of selecting machine learning algorithms and tuning hyperparameters. This Snap gives the best predictive model within the specified time limit.
    4.15snapsmrc500
     
    Stable
    • New Snap Pack. Perform data modeling operations such as model training, cross-validation, and model-based predictions. Additionally, you can also execute Python scripts remotely. Snaps in this Snap Pack are: 
      • Cross Validator -- Classification
      • Cross Validator -- Regression
      • Predictor -- Classification
      • Predictor -- Regression
      • Remote Python Script
      • Trainer -- Classification
      • Trainer -- Regression
    • Releases the Remote Python Executor account and the Remote Python Executor Dynamic account for the Remote Python Script Snap.

    • No labels