Export Model to Workspace

This operator saves a trained model and stores it as a work file in the workspace. The format of the exported model is Spark Pipelines.

Export Model to Workspace operator icon.png

Information at a Glance

Note: This operator can only be used with TIBCO® Data Virtualization and Apache Spark 3.2 or later.

Parameter

Description
Category Tools
Data source type TIBCO® Data Virtualization
Sends output to other operators No
Data processing tool TIBCO® DV, Apache Spark 3.2 or later

Input

An input is a trained model operator to export.

Configuration

The following table provides the configuration details for the Export Model to Workspace operators.

Parameter Description
Notes Notes or helpful information about this operator's parameter settings. When you enter content in the Notes field, a yellow asterisk appears on the operator.
File Name Specify the name for the exported model file. Note that the .model file extension should be omitted because the file extension is automatically appended to the model file name.
Note: The File Name must be unique for each operator.

For more information about the variables used for the default name, see Workflow Variables.

Description Enter a brief description of the model file for the current workflow.
Overwrite? Specify whether to overwrite an existing model file.
  • When set to Yes, the existing model file is overwritten (If the model file already exists with the same name). A new version of the model file is created in the workspace, and previous versions are still accessible through the work file version-control option.

  • When set to No, the model file is not overwritten. If the model file with the same name already exists, the operator fails with an error message that notifies the user of the existing file.

Output

Visual Output
  • Summary: A text field displaying the summary of the output file.
Output to successive operators
None. This is a terminal operator.

Example

The following example uses the golf data set to build the Naive Bayes model and then exports the model to the workspace by using the Export Model to Workspace operator.

Export Model to Workspace operator workflow
Data
golf: This data set contains the following information:
  • Multiple columns namely outlook, temperature, wind, humidity, and play.
  • Multiple rows (14 rows).
Parameter Setting
The parameter settings for the operator are as follows:
  • File Name: nb_model

  • Description: Export model file for the golf data set.

  • Overwrite?: Yes

Output
The following figure displays the result for the Export Model to Workspace operator.
Export Model to Workspace operator output - Summary tab