Skip to main content
Previous sectionNext section

SET ML CONFIGURATION

Sets an ML configuration as the default.

Synopsis

SET ML CONFIGURATION ml-configuration-name

Arguments

ml-configuration-name The name of the ML configuration.

Description

The SET ML CONFIGURATION command sets the specified ML configuration as the system default for all ensuing TRAIN MODEL statements. Only one ML configuration can be set as system default by each SET ML CONFIGURATION statement.

Required Security Privileges

Calling SET ML CONFIGURATION requires a USE object privilege; otherwise, there is a SQLCODE –99 error (Privilege Violation). You can determine if the current user has USE privilege by invoking the %CHECKPRIV command or the $SYSTEM.SQL.Security.CheckPrivilege() method.

Examples

CREATE MODEL H2OMODEL PREDICTING (label) FROM data
SET ML CONFIGURATION %H2O
TRAIN MODEL H2OMODEL
Copy code to clipboard

See Also